Ocean Color Forum - Not logged in
Forum Ocean Color Home Help Search Login
Previous Next Up Topic SeaDAS / MODIS Direct Broadcast Support / modis_L1A_to_L1B ERROR (locked) (26270 hits)
By Ryan Weatherbee Date 2006-06-13 14:45
Hi,

I just updated to SeaDAS 4.9.4 last night, and this morning I noticed my real-time MODIS processing failed.  The first problem I see in my logs is when modis_L1A_to_L1B.csh starts ... I get the following error:

modis_L1A_to_L1B.csh: ERROR: One or more of the default LUTs does not exist. Exiting.

Default Reflective LUT file: /home/xtuser/seadas/data/modisa/cal/MYD02_Reflective_LUTs.V5.0.7.1b.hdf
Default Emissive LUT file: /home/xtuser/seadas/data/modisa/cal/MYD02_Emissive_LUTs.V5.0.7.1b.hdf
Default QA LUT file: /home/xtuser/seadas/data/modisa/cal/MYD02_QA_LUTs.V5.0.7.1b.hdf

These files. however, do exist in the those directories.  I did a printenv on the variables described in README.modis_L1A_to_L1B and got the following:
[xtuser@clack seadas]$ printenv AQUA_REFL_LUT
/home/xtuser/seadas/data/modisa/cal/MYD02_Reflective_LUTs.V5.0.7.12a.hdf
[xtuser@clack seadas]$ printenv AQUA_EMIS_LUT
/home/xtuser/seadas/data/modisa/cal/MYD02_Emissive_LUTs.V5.0.7.12a.hdf
[xtuser@clack seadas]$ printenv AQUA_QA_LUT
/home/xtuser/seadas/data/modisa/cal/MYD02_QA_LUTs.V5.0.7.12a.hdf
[xtuser@clack seadas]$ printenv TERRA_REFL_LUT
/home/xtuser/seadas/data/modist/cal/MOD02_Reflective_LUTs.V5.0.6.16.hdf
[xtuser@clack seadas]$ printenv TERRA_EMIS_LUT
/home/xtuser/seadas/data/modist/cal/MOD02_Emissive_LUTs.V5.0.6.16.hdf
[xtuser@clack seadas]$ printenv TERRA_QA_LUT
/home/xtuser/seadas/data/modist/cal/MOD02_QA_LUTs.V5.0.6.16.hdf

All these files do exist with a date stamp of Jun 13 (day I installed the new SeaDAS).

Are these the correct LUTs it should be using?  Do I need to update my environmental variables?

Thanks,
Ryan
By Ryan Weatherbee Date 2006-06-13 15:11
Opps,

I need to ammend my last e-mail a bit ... the hdf files that modis_L1a_to_L1B.csh said were missing (i.e. the ones ending in ...1b.hdf) are indeed missing from data/modisa/cal.

So - my questions are now: Are these the ones the program is supposed to be using?  How can I download them, is so?

Thanks,
Ryan
By mike Date 2006-06-13 16:18
Ryan, unless you have a specific reason not to do so, you should be using the latest MODIS calibration LUTs available on our ftp server. The simplest way to update your Aqua and Terra LUTs is to use the Update menu in the main SeaDAS GUI window. After updating the LUT(s), source the $SEADAS/config/seadas.env file in all open xterms.

You can also run the $SEADAS/etc/modis_update_luts.csh script as a daily cron job to ensure you always have the latest LUTs.

The LUTS can also be manually downloaded from:

ftp://oceans.gsfc.nasa.gov/MODISA/CAL/
ftp://oceans.gsfc.nasa.gov/MODIST/CAL/
By Ryan Weatherbee Date 2006-06-13 16:45
Hi Mike,

Thanks. I ran update from the GUI and it says I have the most recent LUTs ... which were already on my computer.  So, I guess my problem isn't that I don't have the up-to-date LUTs, it is that that modis_L1A_to_L1B.csh script is looking for something else.  I call the script as follows:

modis_L1A_to_L1B.csh $l1afile $geofile

Before upgrading SeaDAS this would cause the script to look in the 'cal' directory for the latest LUT (which does seem to be defined correctly in the environmenal variables) ... but now it seems to be looking for an older/non-exisitant version, as I described in my original e-mail.

Any ideas why this might be so?
Ryan
By mike Date 2006-06-13 16:52
I'm not sure what's going on, but I think the simplest solution is to simply edit the $SEADAS/config/seadas.env text file and update the LUTs to match the following:

/home/xtuser/seadas/data/modisa/cal/MYD02_Reflective_LUTs.V5.0.7.12a.hdf
/home/xtuser/seadas/data/modisa/cal/MYD02_Emissive_LUTs.V5.0.7.12a.hdf
/home/xtuser/seadas/data/modisa/cal/MYD02_QA_LUTs.V5.0.7.12a.hdf
/home/xtuser/seadas/data/modist/cal/MOD02_Reflective_LUTs.V5.0.6.16.hdf
/home/xtuser/seadas/data/modist/cal/MOD02_Emissive_LUTs.V5.0.6.16.hdf
/home/xtuser/seadas/data/modist/cal/MOD02_QA_LUTs.V5.0.6.16.hdf

Make sure you do actually have these files. After you've done this, log out and log back in...
By Ryan Weatherbee Date 2006-06-13 17:00
Those LUTs were already defined in my seadas.env file ... I will log out and wait and see what happens with the next pass though.

Ryan
By mike Date 2006-06-13 19:54
Ryan, yes completely logging out and back in might fix it. Also make sure your shell init file (probably .bashrc or .cshrc) isn't sourcing a seadas.env file from a previous SeaDAS or MODISL1DB installation.
By Ryan Weatherbee Date 2006-06-14 16:18 Edited 2006-06-14 16:22
OK - most of my problem seems to be fixed now ... and it was my fault - I have a copy of seadas.env I use within a script which my satellite reception scripts kick off, and I hadn't updated the LUT file paths in that script.  However I am now getting a different message when I run msl12 that says:

Loading polarization file /home/xtuser/seadas/data/modist/cal/polcor_modist_748.hdf
Loading polarization file /home/xtuser/seadas/data/modist/cal/polcor_modist_869.hdf
Processing scan #     0 (1 of 4600) after      1 seconds

Loading SSES table for sst from /home/xtuser/seadas/data/modist/cal/sst_sses_modist.hdf
-E- sst.c:  Error opening file /home/xtuser/seadas/data/modist/cal/sst_sses_modist.hdf.

This file does not exist in that location, but there are other sst files such as:
sst4_modist.dat
sst_modist.dat
sst_mside_modist.dat

Does one of these files replace sst_sses_modist.hdf?  Where is this file defined ... I don't see it in seadas.env?  I see that a similar file DOES appear in the Aqua cal directory (sst_sses_modisa.hdf), which explains why my Aqua processing doesn't seem to be affected.

Thanks,
Ryan
By mike Date 2006-06-14 16:30
Hi Ryan, if you don't have the file it probably means you didn't install SeaDAS 4.9 update01. Please install ALL 4 seadas updates in succession. The updates are here:

ftp://samoa.gsfc.nasa.gov/seadas/seadas/

You can also get the file immediately:

ftp://samoa.gsfc.nasa.gov/seadas/pub/sst_sses_modist.hdf
By Ryan Weatherbee Date 2006-06-14 16:43
Mike,

I just downloaded Seadas the day before yesterday - I thought it included all the patches to date.  When I start seadas it says 4.9.4.  When I installed I didn't install any of the patches individually.

Just want to clarify whether installing the patches should be necessary.

I'll grab the file from the ftp dir in the mean time.

Thanks,
Ryan
By Ryan Weatherbee Date 2006-06-14 16:50
I just looked at a recent install of SeaDAS 4.9.4 on a different machine, at it is also missing the sst_sses_modist.hdf file.  Is it possible it was left out of the disstribution tar file? 

Thanks,
Ryan
By mike Date 2006-06-14 17:00
Yes Ryan we mistakenly left it out of the distribution file.. thanks for helping to track this down. I just updated our seadas_processing.tar.gz file to include the missing files. There is no need to re-download this entire file or re-apply the updates.. you can just grab the two missing files here:

ftp://samoa.gsfc.nasa.gov/seadas/pub/sst_sses_modist.hdf
ftp://samoa.gsfc.nasa.gov/seadas/pub/sst4_sses_modist.hdf
By Ryan Weatherbee Date 2006-06-14 17:48
Mike,

Glad to help - seems like everything is working normally now.

Thanks,
Ryan
Previous Next Up Topic SeaDAS / MODIS Direct Broadcast Support / modis_L1A_to_L1B ERROR (locked) (26270 hits)



Responsible NASA Official: Gene C. Feldman
Curator: OceanColor Webmaster
Authorized by: Gene C. Feldman
Updated: 27 November 2007
Privacy Policy and Important Notices NASA logo