Build instructions for MOD09 2007/07/03 Liam.Gumley@ssec.wisc.edu Test system: terra.ssec.wisc.edu (Dual Intel Xeon, 2GB RAM) Install directory: /data1/gumley/MOD09 Shell: tcsh LINUX VERSION ------------- $ uname -a Linux terra 2.6.9-42.0.2.ELsmp #1 SMP Thu Aug 17 18:00:32 EDT 2006 i686 i686 i386 GNU/Linux $ more /etc/redhat-release Red Hat Enterprise Linux WS release 4 (Nahant Update 4) $ echo $SHELL /bin/tcsh COMPILER VERSIONS ----------------- $ gcc --version gcc (GCC) 3.2.1 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ which gcc /usr/local/bin/gcc $ pgf90 -V pgf90 5.2-1 Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. Copyright 2000-2004, STMicroelectronics, Inc. All Rights Reserved. $ which pgf90 /usr/pgi/linux86/5.2/bin/pgf90 NOTE: We use pgf90 exclusively, not pgf77. We have not tested g77 or g95. HOW TO BUILD MOD09 SCIENCE CODE ------------------------------- NOTE: The following instructions assume you have built the SDP toolkit as described in BUILD_TOOLKIT.txt. (1) The MOD09 DB tarfile was obtained from ftp://kratmos.gsfc.nasa.gov/pub/eric/DB/mod09dbv1.0.tar.gz (2) The environment variables required for compiling science code which calls the SDPTK were set as follows: % source /data1/gumley/MOD09/TOOLKIT/bin/linux/pgs-dev-env.csh (3) The MOD09 DB science code was built as follows: gzip -dc mod09dbv1.0.tar.gz | tar xvf - cp MOD_PR09.mk_linux DB_processing/bin/MOD09_L2_v5.3.18 cd DB_processing/bin/MOD09_L2_v5.3.18 $PGSBIN/smfcompile -f MODIS_37092.t -r -i (<-- this needs to be done only once) make -f MOD_PR09.mk_linux clean make -f MOD_PR09.mk_linux You should now have a statically linked executable file named MOD_PR09DB.exe, e.g., $ ls -l *.exe -rwxr-xr-x 1 gumley users 3222988 Jul 3 13:20 MOD_PR09DB.exe (4) The MODIS L1B 1KM destriping code was built as follows: cp MOD_PRDS1KM.mk_linux DB_processing/bin/MOD_PRDS1KM cd DB_processing/bin/MOD_PRDS1KM $PGSBIN/smfcompile -f MODIS_39500.t -r -i (<-- this needs to be done only once) make -f MOD_PRDS1KM.mk_linux clean make -f MOD_PRDS1KM.mk_linux You should now have a statically linked executable file named MOD_PR1KMDS.exe, e.g., $ ls -l *.exe -rwxr-xr-x 1 gumley users 1411764 Jul 3 15:17 MOD_PRDS1KM.exe (5) The MODIS L1B 500M destriping code was built as follows: cp MOD_PRDS500M.mk_linux DB_processing/bin/MOD_PRDS500M cd DB_processing/bin/MOD_PRDS500M make -f MOD_PRDS500M.mk_linux clean make -f MOD_PRDS500M.mk_linux You should now have a statically linked executable file named MOD_PR500MDS.exe, e.g., $ ls -l *.exe -rwxr-xr-x 1 gumley users 1411674 Jul 3 15:19 MOD_PRDS500M.exe