Not logged inOcean Color Forum
Forum Ocean Color Home Help Search Login
Up Topic SeaDAS / MODIS Direct Broadcast Support / Fetching attitude and ephemeris file automatically (locked)
- By Katja.H Date 2011-06-03 08:45
Hello,

I would like to use the possibility of the Modis_GEO.csh wrapper script to
automatically fetch the ephemeris and attitude files needed.

Without downloading the necessary ephemeris and attitude files manually, the call of

> modis_GEO.csh  T2011137092530.L1A_LAC

results in an error because the files are not found (see log files attached)
but a download does not start.
I get

> Determining required definitive attitude and ephemeris files...
> /home/eosnpp/PROGRAMMES/modisl1db1.7/run/scripts/modis_definitive_atteph.csh terra 2011137092530 2011137093208


> Checking local hard disk for required definitive attitude and ephemeris files...
> ls: Zugriff auf Treffer. nicht möglich: Datei oder Verzeichnis nicht
> gefunden (i.e. ls: access to strike not possible: file or directory not found)
> ls: Zugriff auf Treffer. nicht möglich: Datei oder Verzeichnis nicht
> gefunden (i.e. ls: access to strike not possible: file or directory not found)




> Present on hard disk: Treffer. (Treffer = strike/hit)
> Present on hard disk: Treffer.


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


> att_file1: Treffer.
> att_file2: NULL
> eph_file1: Treffer.
> eph_file2: NULL




Do I have to add an option to force the download? If not, do you know what the
problem is?

To check if I am able to download files, I tried 

/usr/bin/wget --timeout=60 --tries=4 --retr-symlinks -q \
   http://oceandata.sci.gsfc.nasa.gov/Ancillary/LUTs/modis/leapsec.dat

*** http TRANSFER SUCCESSFUL for leapsec.dat ***

and this works fine.

Thanks in advance,
Katja
- By gwyn Date 2011-06-03 15:42
Katja,

It almost looks like the download directory wasn't found.  By default attitude & ephemeris files are downloaded to $SEADAS/run/var/modis/atteph, but it could have been set differently.  Try:

ls -ld $MODIS_ATTEPH

We can see exactly what the atteph script is doing:

csh -vx /home/eosnpp/PROGRAMMES/modisl1db1.7/run/scripts/modis_definitive_atteph.csh terra 2011137092530 2011137093208 >& atteph.log
- By Katja.H Date 2011-06-06 04:13
Gwyn,

thanks a lot !

$MODIS_ATTEPH should be fine:

>ls -ld $MODIS_ATTEPH


/home/eosnpp/PROGRAMMES/modisl1db1.7/run/var/modis/atteph/

The log file (attached) created with your command was the right idea, I guess.

I found:

> echo ${attephdir}/${startyear}/${startdoy}/
> /home/eosnpp/PROGRAMMES/modisl1db1.7/run/var/modis/atteph/2011/137/
> echo ${attephdir}/${startyear}/${startdoy}/${att1}
> echo: Kein Treffer.
> echo $att_file1
> Treffer.


I saw the if statement beginning in line 300 of modis_definitve_atteph.csh and
I've added a german case.

This is how it looks like now:

>if ($att_file1 == "directorio" || $att_file1 == "correspondencia." ||
>    $att_file1 == "correspondance." || $att_file1 == "match." ||
>    $att_file1 == "match" || $att_file1 == "directory" ||
>    $att_file1 == "error" || $att_file1 == "Treffer." ) set att_file1 = missing
>if ($att_file2 == "directorio" || $att_file2 == "correspondencia." ||
>    $att_file2 == "correspondance." || $att_file2 == "match." ||
>    $att_file2 == "match" || $att_file2 == "directory" ||
>    $att_file2 == "error" || $att_file2 == "Treffer." ) set att_file2 = missing
>if ($eph_file1 == "directorio" || $eph_file1 == "correspondencia." ||
>    $eph_file1 == "correspondance." || $eph_file1 == "match." ||
>    $eph_file1 == "match" || $eph_file1 == "directory" ||
>    $eph_file1 == "error" || $eph_file1 == "Treffer.") set eph_file1 = missing
>if ($eph_file2 == "directorio" || $eph_file2 == "correspondencia." ||
>    $eph_file2 == "correspondance." || $eph_file2 == "match." ||
>    $eph_file2 == "match" || $eph_file2 == "directory" ||
>    $eph_file2 == "error" || $eph_file2 == "Treffer.") set eph_file2 = missing


After this, I rerun

> modis_GEO.csh /media/x18877/MODIS/LEVEL1A/T2011137092530.L1A_LAC


and this time, the programm download the missing files and successfully
generates the geolocation files :-)

Thank you very much !
It really helps a lot to have this forum !

Cheers,
Katja
Attachment: atteph.log_before (18k)
Attachment: atteph.log_after (27k)
- By gwyn Date 2011-06-06 08:31 Edited 2011-06-06 08:52
Glad that worked!

We'll add "Treffer." to our scripts, too.

In an ideal world our code would be language-independent, but we just don't have those kinds of resources!  Thanks for finding that.

Gwyn
Up Topic SeaDAS / MODIS Direct Broadcast Support / Fetching attitude and ephemeris file automatically (locked)



Responsible NASA Official: Gene C. Feldman
Curator: OceanColor Webmaster
Authorized by: Gene C. Feldman
Updated: 03 July 2013
Privacy Policy and Important Notices NASA logo