SDP TOOLKIT INSTALLATION NOTES ------------------------------ Liam.Gumley@ssec.wisc.edu, 2006/02/03 This is how I installed the SDP tookit on redback (Rocks 3.3.0 64-bit). C compiler was gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42) F90 compiler was pgf90 6.1-1 64-bit target on x86-64 Linux (1) The toolkit tarfiles were obtained as follows: % cd /modisnfs1/MODIS/gumley % mkdir toolkits % cd toolkits % mkdir tarfiles % cd tarfiles % ftp edhs1.gsfc.nasa.gov (anonymous, guest) quote site group sdptk quote site gpass ecs-tkit cd sdptk The following files were downloaded: HDF4.2r0.tar.Z hdf5-1.6.2.tar.Z HDF-EOS2.12v1.00.tar.Z HDF-EOS5.1.8.tar.Z jpegsrc.v6b.tar.Z SDPTK5.2.12v1.00.tar.Z szip1.1.tar.gz zlib-1.2.1.tar.Z (2) The toolkit was built as follows: % cd /modisnfs1/MODIS/gumley/toolkits % gzip -dc tarfiles/SDPTK5.2.12v1.00.tar.Z | tar xvf - % cd TOOLKIT % bin/INSTALL -f90 -fc_path /usr/pgi/linux86-64/6.1/bin/pgf90 Notes: (1) there is no need to build HDF, HDF-EOS, etc. before building the toolkit, since the toolkit install script builds them as part of the process. (3) the FORTRAN-90 version of the toolkit was built for use with the Portland compiler (pgf90). (4) because pgf90 was used to build the toolkit, it *must* be used to build the science code (do *not* use pgf77). To set the environment variables requires for SDPTK development: % source /modisnfs1/MODIS/gumley/toolkits/TOOLKIT/bin/linux/pgs-dev-env.csh or $ . /modisnfs1/MODIS/gumley/toolkits/TOOLKIT/bin/linux/pgs-dev-env.ksh (3) The toolkit SMF message files were created as follows: % $PGSBIN/smfcompile -f /home/gumley/OPS/MODIS/shared/src_L2/MODIS_39500.t -f77 -i -r Options -i and -r redirect the include and message files to directories $PGSBIN and $PGSMSG, respectively. (4) The leapsec.dat and utcpole.dat files were updated as follows: % cd /modisnfs1/MODIS/gumley/toolkits % update_leapsec_utcpole.csh (5) The MAPI toolkit was built as follows: % cd /modisnfs1/MODIS/gumley/toolkits/TOOLKIT % gzip -dc ../tarfiles/mapi2.3.4.tar.Z | tar xvf - % cd mapi2.3.4 % setenv APIHOME $PWD % setenv API_DIR $APIHOME % setenv API_INC $APIHOME/h % setenv API_LIB $APIHOME/lib % setenv API_SRC $APIHOME/srclib % rm lib/libmapi.a % make -f makemapi.linux.mk