Ocean Color Forum - Not logged in
Forum Ocean Color Home Help Search Login
Previous Next Up Topic SeaDAS / SeaDAS 6.x - General Questions / Seadas 6.2: L1A to L1B processing problems (locked) (3942 hits)
By Alisa Date 2010-12-20 09:48 Edited 2010-12-20 09:50
Hello
I installed 6.2 RC1 version of Seadas on my Ubuntu 10.04 and tried to modify my script (working well for 6.1 version) for it.
Modified text of script is in attached txt file

When trying to run it - i get next:
_______________________________________
Determining required definitive attitude and ephemeris files...
/home/jessica/Seadas_62_RC1/run/scripts/modis_definitive_atteph.csh terra 2010335092000 2010335092500

Checking local hard disk for required definitive attitude and ephemeris files...
Present on hard disk: AM1ATTN0.A2010335.0800.002
Present on hard disk: AM1EPHN0.A2010335.0800.002

All required definitive attitude and ephemeris files found on your hard disk.

att_file1: /home/jessica/Seadas_62_RC1/run/var/modis/atteph/2010/335/AM1ATTN0.A2010335.0800.002
att_file2: NULL
eph_file1: /home/jessica/Seadas_62_RC1/run/var/modis/atteph/2010/335/AM1EPHN0.A2010335.0800.002
eph_file2: NULL

Input  Level 1A   : ./2010335.0920.005_MOD01.hdf
Output Geolocation: ./2010335.0920_T.GEO

Satellite: terra
Year: 2010  Day: 335  Hour: 09  Minute: 20
*Terrain Correction Enabled*

Word too long.
modis_L1A_extract.csh: ERROR: File 2010335.0920_T.GEO does not exist. Exiting.

modis_L1B.csh: ERROR: File ./2010335.0920_T_Balt.L1A_LAC does not exist.

Usage: modis_L1B.csh MODIS_L1A_file MODIS_GEO_file [OPTIONS]

Options:

  -b                        Use base of input filename for output filenames
                            (without -b, output filenames are automatically determined)
  -o L1B_1KM_filename       Output MODIS L1B 1KM HDF filename
  -h L1B_HKM_filename       Output MODIS L1B HKM HDF filename
  -q L1B_QKM_filename       Output MODIS L1B QKM HDF filename
  -rlut REFL_LUT_filepath   Full path and filename of Reflective LUT file
  -elut EMIS_LUT_filepath   Full path and filename of Emissive LUT file
  -qlut QA_LUT_filepath     Full path and filename of QA LUT file
  -delete-1km               Delete 1km resolution L1B file
  -delete-hkm               Delete 500m resolution L1B file
  -delete-qkm               Delete 250m resolution L1B file
  -save-log                 Save processing log file(s)
_________________________________________________

And also when i try to process L1A file to L1B through GUI - i have the similar problem:

___________________________________

Input  Level 1A   : /media/1TB_data/MODIS/test/L1A_to_L1B/2010335.0920.005_MOD01.L1A_LAC
Output Geolocation: /media/1TB_data/MODIS/test/L1A_to_L1B/2010335.0920.GEO

Satellite: terra
Year: 2010  Day: 335  Hour: 09  Minute: 20
*Terrain Correction Enabled*

Word too long.

exit_status=            1
SeaDAS>
_______________________________________________

Where can be a problem? It seem it is on stage of generation of GEO file...

Thank you

By @sean Date 2010-12-20 15:08
I cannot replicate your error, however the error you posted suggests that a shell limit is encountered (word too long).
This may be due to the "sed" command in the modis_GEO.csh script - which is quite long even before the variable substitution.
We'll look into breaking the sed command into smaller chunks and perhaps the problem will be resolved.

Sean
By gwyn Date 2010-12-20 17:16
That error usually means there is more than 1024 characters in a single variable.

Please do the following to help us track down the problem:

echo $PATH

csh -vx modis_GEO.csh $FILE -o $GEOFILE >&  modis_GEO.log
(with appropriate filenames)

Thanks,
Gwyn (who wrote that script)
By dmoonan Date 2010-12-20 17:31
I had the same problem.
I resolved it by temporarily changing to the directory where the files were located, running the modis_GEO script, then changing back.
By Alisa Date 2010-12-21 16:46
thanks for your reply, Gwyn

sorry, i am not an expert in scripting.. what exactly should i do? I tried to run your command - but only get some error messages like "modis_GEO.csh: No such file or directory" or "csh: not found"

if i simply run "csh -vx modis_GEO.csh 2010335.0920.005_MOD01.L1A_LAC -o 2010335.0920.GEO >&  modis_GEO.log" from console - i get log file with "modis_GEO.csh: No such file or directory"
i do something wrong probably. modis_GEO.csh separately is running with list of options available.. it exists, of course.

Could you so please make full correct script for this filename, i will run it..
2010335.0920.005_MOD01.L1A_LAC

Sorry :-)
By dmoonan Date 2010-12-21 21:11
Hi Alisa,

What's happening is you are telling the system to run a command shell on "modis_GEO.csh" in the *current directory*
So, csh is returning telling you it can't find modis_GEO.csh

if modis_GEO.csh is in your path, you just need to run:

$ modis_GEO.csh 2010335.0920.005_MOD01.L1A_LAC -o 2010335.0920.GEO

if it is not in your path, then do:

$ /my_seadas_installation_dir/run/scripts/modis_GEO.csh 2010335.0920.005_MOD01.L1A_LAC -o 2010335.0920.GEO

(substitute your seadas installation directory for 'my_seadas_installation_dir')
If the SeaDAS environment is set up correctly, then the scripts directory should already be in your path.

Try also

$ which modis_GEO.csh

Mine says:
$ which modis_GEO.csh
/home/myhomedir/seadas6.2/run/scripts/modis_GEO.csh

Hope this helps,
Dan
By gwyn Date 2010-12-21 22:10
Alisa -

Sorry for the late reply; I only just saw your message.  If you're not in the same directory as modis_GEO.csh or 2010335.0920.005_MOD01.L1A_LAC, you'll need to say exactly where they are.  The full command will display on your terminal when you run it in the SeaDAS gui.

It may not matter in the long run; Sean is pretty sure the sed command is the problem, and is breaking it into pieces for the next release.

Gwyn
By Yongjiu Date 2012-01-01 15:33
can i ask questions?
this l1a to l1b script work for modis terra?
can it work for modis aqua?
Previous Next Up Topic SeaDAS / SeaDAS 6.x - General Questions / Seadas 6.2: L1A to L1B processing problems (locked) (3942 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