SeaDAS Banner Image

MODISL1DB Manual Installation Instructions

Step  What To Do How To Do It
1. In an xterm window, create a MODISL1DB root directory (name it anything you like), and enter that directory: > mkdir modisl1db
> cd modisl1db
2. ftp the MODISL1DB tar files from the closest ftp mirror into your new SeaDAS directory:

USA:
samoa.gsfc.nasa.gov
(dir: seadas/modisl1db/modisl1db/)

> ftp samoa.gsfc.nasa.gov
anonymous
user@hostname
binary
cd seadas/modisl1b/modisl1b
ls
get modisl1db_xxx.tar.gz   (where xxx is linux, macintel, or macppc)
get seadas_dem_modis.tar.gz   (optional for geolocation terrain correction)
get seadas_benchmarks.tar.gz   (optional benchmark script and Level 0 Aqua file)
quit
3. Uncompress and extract all the SeaDAS tar files: > gunzip -c modisl1db_xxx.tar.gz | tar xvpf -
> gunzip -c seadas_dem_modis.tar.gz | tar xvpf - > gunzip -c seadas_benchmarks.tar.gz | tar xvpf -
4. To conserve disk space, you may now want to remove the *.gz files: > rm *.gz
5. Depending on your shell, add the following lines to your .cshrc, .tcshrc, or .bashrc file, where "PATH_TO_MODISL1DB" is the full directory path of your MODISL1DB directory (e.g. /home/zaphod/modisl1db): bash shells:
export DBHOME=PATH_TO_MODISL1DB
source $DBHOME/scripts/modisl1db_env.bash
ulimit -Ss unlimited (add this line for OS X only)


csh/tcsh shells:
setenv DBHOME PATH_TO_MODISL1DB
source $DBHOME/scripts/modisl1db_env.csh
limit stacksize unlimited (add this line for OS X only)
6. *source* the init file you just modified: > source ~/.bashrc (for bash shells)
> source ~/.cshrc (for csh and some tcsh shells)
> source ~/.tcshrc (for some tcsh shells)
7. The MODISL1DB installation is now complete and you can execute one of the 4 main wrapper scripts to process your data: > modis_L0_to_L1A_GEO.csh   L0_PDS_file
> modis_L1A_extract.csh   -help
> modis_L1A_to_GEO.csh   L1A_file
> modis_L1A_to_L1B.csh  L1A_file   GEO_file
8. It is also recommended that you set up a weekly cronjob to download new utcpole.dat and leapsec.dat files (modis_update_utcpole_leapsec.csh) and a daily cronjob to check for new calibration LUTs (modis_update_luts.csh). Remember to invoke a shell to run the scripts within cron in order to set the MODISL1DB environment variables. Example crontab lines for csh shell installations:

  0 0 * * 0 /bin/csh -c "/path_to_scripts/modis_update_utcpole_leapsec.csh -quiet"   0 0 * * * /bin/csh -c "/path_to_scripts/modis_update_luts.csh aqua -quiet"   0 0 * * * /bin/csh -c "/path_to_scripts/modis_update_luts.csh terra -quiet"
> crontab -e



Curator: OceanColor Webmaster

Authorized by: gene carl feldman

NASA logo

Privacy Policy and Important Notices

Updated: 10 December 2009