Shuangyan He New Member
Posts:3  
25 Apr 2017 10:05 AM |
|
When I tried to using ENVI FLAASH to do the atmospheric correction for MISR data over water, it reminded me to input the 'filter Function File' in Multispectral Settings. After I input the sensor spectral response file, it reminded me the error of 'Attempt to subscript FF_WL with < LONG ( 1)> is out of range'. Is this because the MISR sensor has limited bands, as it only has four bands of 446, 558, 672 and 866nm? Thanks!
|
|
|
|
MariM Veteran Member
Posts:2396  
25 Apr 2017 10:22 AM |
|
I think the error might be related to your filter function. How did you create it? It is possible to use FLAASH with 4 band data but you will not be able to perform water or aerosol retrieval, so those should be set to No or None. Alternately, you can use Quac which also provides very good results with less need to know all of the parameters required for FLAASH. If you do use Quac, be sure to create a mask of background pixels and include it when you process the file.
|
|
|
|
Shuangyan He New Member
Posts:3  
25 Apr 2017 10:47 AM |
|
Hi Mari, I prepared the filter function file according to the file at 'https://misr.jpl.nasa.gov/Mission/valwork/cal_data/response/profiles.txt' by removing the first 18 rows, and the second E0 column. So it finally turns out to be a four column matrix text file. Is it right in this way? Thanks! Thanks for the tips for the Quac, I did tried this on my image, but I did not creat a mask of background pixels.
|
|
|
|
MariM Veteran Member
Posts:2396  
25 Apr 2017 11:19 AM |
|
Yes that response file looks correct. So you created a text file from this and imported it to the Spectral Library viewer to create an ENVI spectral library (.sli), correct? My ascii looked like this: 365 2.20E-05 7.62E-06 2.08E-05 5.27E-05 365.5 2.37E-05 9.28E-06 2.26E-05 5.70E-05 366 2.54E-05 1.09E-05 2.43E-05 6.13E-05 366.5 2.70E-05 1.25E-05 2.61E-05 6.54E-05 That should work. Can you post the contents of your template.txt and the last few lines of the journal.txt where the error occurs?
|
|
|
|
Shuangyan He New Member
Posts:3  
27 Apr 2017 08:47 AM |
|
Hi Mari, I chose the text file as the input for Filter Function File of the Multispectral Settings, then I run the FLAASH. I did not creat an ENVI spectral library (.sli), actually I dont know how to creat the sli file using the text file for the MISR sensor. Could you please tell me how to creat the sli file? After I run the FLAASH, I got the error of 'Attempt to subscript FF_WL with < LONG ( 1)> is out of range'. The last few line of my template.txt file are : ; GParameters Parameters enviacc.gparameters.gfact = 0 enviacc.gparameters.gval = 0.0000 enviacc.gparameters.use_lr_method = 0 enviacc.gparameters.multikernel = 1 enviacc.gparameters.autoroi = auto enviacc.gparameters.selarg = a ; ; Spectral Parameters enviacc.spc.wavelength_units = nanometer enviacc.spc.lambda = [ 446.4000, 557.5000, 671.7000, 866.4000] enviacc.spc.fwhm = [ -1.000000, -1.000000, -1.000000, -1.000000] enviacc.img.p_input_scale = [ 1.0000, 1.0000, 1.0000, 1.0000] I did not set up the fwhm, is this my problem? How should I fset up this, thanks a lot !!!
|
|
|
|
MariM Veteran Member
Posts:2396  
27 Apr 2017 01:30 PM |
|
It is not a problem if you do not define the fwhm values. A gaussian response will be used instead. I think the problem is that you are not using an ENVI spectral library for your filter function. You need a filter function file that looks like those from the \envi5x\resource\filterfuncs directory. You will need to read your ascii file using the Spectral LIbrary Viewer using the Import->ascii option. There is also a help article discussing what is expected in the filter function here: http://www.harrisgeospati...D/18529/Default.aspx
|
|
|
|
Shuangyan He New Member
Posts:3  
01 May 2017 10:24 AM |
|
Hi Mari, thanks for for your help! I saved my fileter function to the ENVI spectral library, and then ran the FLAASH. I got my last error solved, but I got anther error as: ACC error: Ismooth2: Generating smoothed image IDL error: ACC_LSMOOTH2: Cannot continue with smoothing calculation. ACC_LSMOOTH2 <( 9)> ACC_HYPER2 <(618)> ACC_ACC <(191)> ENVI_ACC_EVENT <(3179)> EVENT_FLAASH_PROCESS_MANAGER <( 274)> $MAIN$ <( 0)> The last few lines of my template file are: ; Analysis Parameters enviacc.ana.aerosol_scaleht = 1.5000 enviacc.ana.use_adjacency = 1 enviacc.ana.output_scale = 10000.0000 enviacc.ana.output_diagnostic_files = 0 enviacc.ana.auto_save_template = 1 enviacc.ana.polishing_res = 9 enviacc.ana.aerosol_retrieval = 0 enviacc.ana.calc_wl_correction = 0 enviacc.ana.reuse_modtran_calcs = 0 enviacc.ana.use_square_slit_function = 0 enviacc.ana.convolution_method = fft enviacc.ana.use_tiling = 1 enviacc.ana.tile_size = 100.0000 ; ; GParameters Parameters enviacc.gparameters.gfact = 0 enviacc.gparameters.gval = 0.0000 enviacc.gparameters.use_lr_method = 0 enviacc.gparameters.multikernel = 1 enviacc.gparameters.autoroi = auto enviacc.gparameters.selarg = a ; ; Spectral Parameters enviacc.spc.wavelength_units = nanometer enviacc.spc.lambda = [ 446.4000, 557.5000, 671.7000, 866.4000] enviacc.spc.fwhm = [ -1.000000, -1.000000, -1.000000, -1.000000] enviacc.img.p_input_scale = [ 10.0000, 10.0000, 10.0000, 10.0000] Thank YOU! Shuangyan
|
|
|
|