X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 19 Jul 2011 12:51 PM by  anon
FLAASH parameters input file
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
19 Jul 2011 12:51 PM
    Hi there. I've been working with ENI for a couple weeks now and just recently FLAASH. I'm trying to make some corrections for some landsat datasets. I've read up on FLAASH and after tinkering with some of the parameters, it seems pretty straight forward. Unfortunately, I'm running into some errors. While the program is running, I keep getting the same warning about every 30 seconds: ENVI Warning Problems were found with the following lines to the FLAASH input file: E:\hank's_stuff\42_30\2002\aug_10\FLAASH\tile_template.txt eniacc.prj.radiance_file = E:\hank's_stuff\42_30\2002\aug_10\BIP\radiance_layers enviacc.prj.modtran_directory = E:\hank's_stuff\42_30\2002\aug_10\FLAASH\ After clicking "OK", I notice that my output reflectance file name has been changed from E:\hank's_stuff\42_30\2002\aug_10\FLAASH\reflectance_values to E:\hank's_stuff\42_30\2002\aug_10\FLAASH\tmp After a while (~50%) the Rootname is changed from "FLAASH" to "tile#" where # starts at 0 and increases by one every time the warning occurs. Followed by that warning is another warning that askes me if I want to overwrite the "tmp" reflectance file that it decided to change to in the first place. If I allow it to overwrite and continue, I have tp keep overwriting the "tmp" file until I'm 100% done. Then I receive the following error: mosaic_error: An error has occured during processing Error: "Variable is undefined: INTERLEAVE." The result may be invalid. The only files that ed up being created after all of this is just the _journal and _templates. I suspect my input radiance image is not correct, but I don't know what the correct thing is. I simply made a layer stack of a set of bands converted to radiance and converted the entire layer to BIP format. I also had to edit the envi header file where I changed the band names and wavelength values. Other than that it seems like I might be making some obvious mistake about my input/output files or paths. Here's my template file: ; ;ENVI FLAASH PARAMETERS TEMPLATE (4.8) ;Written Tue Jul 19 11:12:03 2011 ; ; Project Parameters enviacc.prj.radiance_file = E:\hank's_stuff\42_30\2002\aug_10\BIP\radiance_layers enviacc.prj.reflect_file = E:\hank's_stuff\42_30\2002\aug_10\FLAASH\reflectance enviacc.prj.filter_func_file = C:\Program Files (x86)\ITT\IDL\IDL80\products\envi48\filt_func\tm.sli enviacc.prj.filter_func_file_index = 0 enviacc.prj.water_band_choice = 1.13 enviacc.prj.red_channel = 5 enviacc.prj.green_channel = 6 enviacc.prj.blue_channel = 0 enviacc.prj.water_abs_channel = 0 enviacc.prj.water_ref_channel = 0 enviacc.prj.kt_upper_channel = 1 enviacc.prj.kt_lower_channel = 5 enviacc.prj.kt_cutoff = 0.1000 enviacc.prj.kt_ratio = 0.4500 enviacc.prj.cirrus_channel = 0 enviacc.prj.water_retrieval = 0 enviacc.prj.user_stem_name = test_ enviacc.prj.modtran_directory = E:\hank's_stuff\42_30\2002\aug_10\FLAASH\ ; ; MODTRAN Parameters enviacc.modtran.visvalue = 100.0000 enviacc.modtran.f_resolution = 15.0000 enviacc.modtran.day = 10 enviacc.modtran.month = 8 enviacc.modtran.year = 2002 enviacc.modtran.gmt = 18.1192 enviacc.modtran.latitude = 43.2000 enviacc.modtran.longitude = -117.3021 enviacc.modtran.sensor_altitude = 705.0000 enviacc.modtran.ground_elevation = 1.0000 enviacc.modtran.view_zenith_angle = 180.0000 enviacc.modtran.view_azimuth = 0.0000 enviacc.modtran.atmosphere_model = 2 enviacc.modtran.aerosol_model = 6 enviacc.modtran.multiscatter_model = 2 enviacc.modtran.disort_streams = 8 enviacc.modtran.co2mix = 390.0000 enviacc.modtran.water_column_multiplier = 1.0000 ; ; Image Parameters enviacc.img.nspatial = 7991 enviacc.img.nlines = 7241 enviacc.img.data_type = 4 enviacc.img.margin1 = 0 enviacc.img.margin2 = 0 enviacc.img.nskip = 0 enviacc.img.pixel_size = 30.0000 enviacc.img.sensor_name = Landsat TM5 ; ; Analysis Parameters enviacc.ana.aerosol_scaleht = 1.5000 enviacc.ana.use_adjacency = 1 enviacc.ana.output_scale = 10000.0000 enviacc.ana.polishing_res = 0 enviacc.ana.aerosol_retrieval = 1 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 ; ; Spectral Parameters enviacc.spc.wavelength_units = micron enviacc.spc.lambda = [ 2.2250, 11.4500, 1.6750, 0.8400, 0.6550, 0.5700, 0.4850] enviacc.spc.fwhm = [ -1.000000, -1.000000, -1.000000, -1.000000, -1.000000, -1.000000, -1.000000] enviacc.img.p_input_scale = [ 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000, 1.0000]

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    19 Jul 2011 01:02 PM
    You can't include the thermal band (the 11.45um) when using FLAASH and it would be better if the bands were in short to long wave (.48, .57, .65, .84, 1.67, 2.22). If you are using ENVI 4.7 or later, you can open the Landsat file using the metadata file (_mtl.txt) and then use the Landsat calibration tool to calibrate to radiance units of W/m^2*sr*um. The file will be processed as a multi-band file so there is no need to stack the bands manually. Then use a scale factor of 10 in FLAASH to get to units of um/cm^2*sr*nm.

    Deleted User



    New Member


    Posts:
    New Member


    --
    19 Jul 2011 01:56 PM
    Thanks for the useful tips and quick response! I tried your suggestions a moment ago. It appears that I'm running into more/less the same warnings, errors, and end result. The only difference now is the initial warning looks like this: ENVI warning Calculated solar elevation for given date, time, lat, long, is very small. With a value of approximately : 12.82. I've checked my date, time, lat, and long values, which all seem correct. If by solar elevation it means sun elevation, then that is not good. The sun elevation should be around 54. I keep getting all of the other warnings and errors mentioned earlier.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    20 Jul 2011 08:34 AM
    You might need to contact ITT Technical Support directly so they can work with your files.

    Deleted User



    New Member


    Posts:
    New Member


    --
    03 Aug 2011 08:52 AM
    So apparently if I don't change the output directory for of FLAASH files, majority of the warning/errors go away. Also, it seems that FLAASH doesn't like the scene center location in DD coords. Once I run the program, it attempts to convert DD to DMS and yields an incorrect location. When I input the coords in DMS this is no longer a problem. Anyways, all is well now. Thanks.

    Deleted User



    New Member


    Posts:
    New Member


    --
    12 Oct 2011 02:45 AM
    Hay. Kindly tell how you get file ENVI FLAASH PARAMETERS TEMPLATE plz plz plz plz plz plz tell as soon as possible i need it urgently plz

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    12 Oct 2011 10:37 AM
    The template is created after you enter all the parameters in the FLAASH dialog. After you enter the parameters in the dialog, you select the 'Save...' button to save the template to use at a later time. Or if you just run the FLAASH process (after entering the parameters), a template.txt is created in the output directory along with the results from the FLAASH process.
    You are not authorized to post a reply.