|
|
|
|
| |
|
The ITT Visual Information Solutions Code Contribution Library allows you to share images, data, technical white papers, and more with other members of the IDL & ENVI communities.
You can quickly access product Toolkits and Plug-ins to empower your IDL and ENVI applications. Listings can include code samples and documentation to help you jump start your programming or application development.
|
| |
|
Recent Code Contributions
|
|
 |
envi_zone_stats |
|
|
After downloading the file for this toolkit copy the .sav file to the "save_add" and new functionality button is under Vector->Zone Stats. This module Compute a Zonal Statistic over a single band file (Classification image, NDVI or Generic Band..) using Zones (or delimitated areas) coming from whatever vector file imported in ENVI. The result of the computation, (that algorithm involves the envi vector_to_roi), will be in a widget table exportable in ascii file. Concerning the statistics, the algorithm take in consideration if the input image file has an ignore_value set in the header, in this case those values are excluded from the statistic. It is possible to run the procedure in batch mode using this syntax:
vecfname = 'C:\..path..\counties_.evf' pvecs = envi_evf_open(vecfname) fname = 'C:\..path..\washdc_x.bil' envi_open_file, fname, r_fid=fid
out_report = 'C:\..path..\report.txt' envi_zone_stat_doit, fid=fid, vec=*pvecs, $ pos=0, $ attribute_column=0, $ out_report=out_report, $ records=records
| File size |
27 K |
| Downloads |
19 |
| Date |
Thu 06/18/2009 @ 03:27 |
| Author |
Stefano Gagliano |
| EMail |
sgagliano@ittvis.com |
|
|
RATING: DOWNLOAD
|
|
|
 |
NIfTI file reader/writer |
|
|
This is a simple DLM to read and write uncompressed NIfTI format files. Right now it is only for 32-bit Linux, compiled with IDL 6.4 but should work with later versions as well. NIfTI is an extension to ANALYZE 7.5 and is widely used in the neuroimaging world.
Please report any bugs or features you'd like to see. When it seems to be working I'll create versions for Windows and Mac as well (64-bit, too)
| File size |
280 K |
| Downloads |
21 |
| Date |
Wed 06/17/2009 @ 10:58 |
| Author |
Ron Kneusel |
| EMail |
rkneusel@ittvis.com |
|
|
RATING: DOWNLOAD
|
|
|
 |
envi_asd_reflectance |
|
|
This Routine allows you to read ASD file format coming from a FieldSpec spectrometer. Put this file in the save_add folder and find the new button under the spectral menu. With this routine you can open ASD native format in terms of wavelength and reflectance and import it in ENVI using the Spectral Library Viewer. If *.asd files are all of the same type is it possible to select all of them and get a unique ENVI spectral library file with Nl = number of imported files. Is it olso possible to read ASD files in batch mode using the sintax:
envi_asd_reader, fname, r_fid=r_fid, Header=Header, wl=wl envi_file_query, r_fid, ns=ns, nl=nl, dims=dims data = envi_get_data(fid=r_fid, dims=dims, pos=0) DN_rad = data[*,0] Ref_Cal = data[*,1] reflect = DN_rad/Ref_Cal iplot, wl, reflect, yrange=[0,1]
This module is made in collaboration with Dr. Luca Innocenti from the University of Firenze, Italy. Please contact me for any feedback.
| File size |
14 K |
| Downloads |
22 |
| Date |
Tue 06/16/2009 @ 03:52 |
| Author |
Stefano Gagliano |
| EMail |
sgagliano@ittvis.com |
|
|
RATING: DOWNLOAD
|
|
|
 |
hyperion_tools.sav |
|
|
The Hyperion Tools module is designed to facilitate the use of Hyperion data in ENVI. Its most basic functionality is to covert Level 1R HDF and Level 1G/1T HDF and GeoTIFF datasets into ENVI format files that contain wavelength, full width half maximum, and bad band information. Also included are options specific to each input dataset format that further aid in using Hyperion data within ENVI. To add the toolkit to your ENVI installation, place the hyperion_tools.sav file in your ENVI save_add directory and then restart ENVI. To access the tools, go to File->Open External File->EO-1->Hyperion Tools. Basic Usage ========= For L1R data, click on “Input HDF” and select your L1R file. Then click on “Output Path” and select a destination folder for the new ENVI format version of the data. Click “Apply” to start the conversion process. In this mode, the conversion tool will place raw radiance data in the new ENVI file in BIL format and will include averaged wavelength and FWHM values. The new file shares the same rootname as the input HDF, but the extension is “.dat”. For L1G/1T data, click on “Input MTL” and select the “.L1G” or “.LIT” metadata file that is packaged with the HDF or GeoTIFF files. Then click on “Output Path” and select a destination folder for the new ENVI format version of the data. Click “Apply” to start the conversion process. In this mode, the conversion tool will place the radiance data in the new ENVI file in BSQ format and will include averaged wavelength and FWHM values. The new file shares the same rootname as the input files, but the extension is “.dat”. All 242 files must be in the same folder as the MTL metadata file for the conversion to take place. Level 1R Options ============= Attempt Georeferencing -> If there is a metadata (.MET) file packaged with the L1R HDF that resides in the same folder as the HDF file, and it shares the same rootname as the HDF, the toolkit will parse the geographic coordinates for the four corners and include them in the new ENVI format file. The projection is only pseudo-geographic. Also, not all metadata files contain coordinates for the four corners, so the georeferencing might not work. Use Flag Mask Correction -> A small number of Hyperion’s detectors are malfunctioning, which often results in vertical “striping” in the image across all bands. Invoking this option gives you an image where the striping has been removed by replacing the bad values with the average of the good values on either side of them. The correction is done on the fly as the original data is retrieved from the HDF and is placed in the new ENVI format file. Output ENVI Mask Image -> This option instructs the toolkit to create an ENVI mask image (1=good data, 0=bad data) for the data set that suppresses the data acquired by the malfunctioning detectors. This especially helps when carrying out PCA rotations, Fourier Transforms, and Hourglass Processing with raw data that has not been flag-corrected. The mask image has the same basic rootname as the converted data file, but has “_mask.dat” appended to it. Output FLAASH Scale Factors -> A small text file is generated in the specified output folder that contains scale factors necessary to correctly input Hyperion data into FLAASH. Interpolate Data to Common Wavelength Set -> Each detector in Hyperion’s pushbroom array has slightly different band center and FWHM values for each band. This option performs a linear interpolation across all detectors on a pixel by pixel, spectrum by spectrum, band by band basis to a common set of wavelengths. The Bad Bands List is honored in this process as well to ensure the best possible results. WARNING: The interpolation process can easily take an hour to complete because of how thorough it is. The option accepts the converted data file as input and creates a new BIP output file. This new file has the same basic rootname as the converted data file, but has “_interpolated.dat” appended to it. Included wavelengths represent the new common set of band centers. Averaged values are used for FWHM. Delete Interpolation Input File-> This option deletes the original file used as input for the interpolation process, leaving only the interpolated file. Select this option only if you do not plan on working with the basic converted output file (raw or flag-corrected data). Level 1G/1T Options =============== Output ENVI Mask Image -> This option instructs the toolkit to create an ENVI mask image (1=good data, 0=bad data) for the data set that suppresses the “black” background present in the georeferenced imagery. This is useful for almost all ENVI processing since the background values are not part of the original dataset. The mask image has the same basic rootname as the converted data file, but has “_mask.dat” appended to it. Convert BSQ Output to BIP Interleave -> Because of how ENVI assembles the composite output file from the input GeoTIFFs, the native interleave is BSQ. FLAASH and other spectral processing routines prefer or require BIL or BIP interleave. This option converts the output file to BIP (creating a new file in the process) and then deletes the original. This new file has the same basic rootname as the converted data file, but has “_bip.dat” appended to it. Output FLAASH Scale Factors -> A small text file is generated in the specified output folder that contains scale factors necessary to correctly input Hyperion data into FLAASH. =====NOTE===== To use toolkit output in FLAASH, go into the header file for the output and remove the first seven bands from the Bad Bands List. When FLAASH is done, go into the header file for the new output and put the seven bands back on the list.
| File size |
139 K |
| Downloads |
177 |
| Date |
Wed 06/10/2009 @ 06:41 |
| Author |
Devin White |
| EMail |
|
|
|
RATING: DOWNLOAD
|
|
|
 |
EPOC.zip |
|
|
The ENVI Plugin for Ocean Color (EPOC) is an HDF file conversion and georeferencing utility for data sets that are currently distributed through the OceanColor web site (http://oceancolor.gsfc.nasa.gov) or created using the SeaWiFS Data Analysis System (SeaDAS, http://oceancolor.gsfc.nasa.gov/seadas/). Level 1A, Level 2, and Level 3 SMI data sets are supported for five sensors: MODIS Aqua, MODIS Terra, SeaWiFS, CZCS, and OCTS. The plugin works on all operating systems that can run IDL and ENVI. Suggestions for improvements are welcome. Installation instructions are in the user guide. If the plugin is installed correctly, there should be an “Ocean Color” group in the ENVI menu system under File->Open External File. ***New version uploaded on 01/20/09*** Added support for HiRes MODIS data sets (HMODISA, HMODIST). ***New version uploaded on 06/10/09*** Major upgrade in the area of georeferencing support. EPOC now uses the same projection engine as MCTK. Reprojections will now be significantly faster, but results *will* be different than in previous versions. This includes automatic bowtie correction for MODIS data. Because the engine involves proprietary ENVI source code, source code for EPOC can no longer be distributed.
| File size |
1836 K |
| Downloads |
171 |
| Date |
Wed 06/10/2009 @ 06:30 |
| Author |
Devin White |
| EMail |
|
|
|
RATING: DOWNLOAD
|
|
|
Content contained in the ITT Visual Information Solutions Code Contribution Library, third party applications, and use case library are not warranted, supported or cleared for export by ITT Visual Information Solutions. For additional details on ITT Visual Information Solutions’ legal statements: www.ittvis.com/company/PermissionsLegal.
|
|
|
|
|
|