[Dart-dev] DART/branches Revision: 12751
dart at ucar.edu
dart at ucar.edu
Mon Jul 16 10:55:51 MDT 2018
nancy at ucar.edu
2018-07-16 10:55:51 -0600 (Mon, 16 Jul 2018)
166
add my instructions for building the hdf-eos libs, and
rearrange the set lines in the mkmf so all the ones needed
to be changed by the user are together at the top.
Added: DART/branches/radiance/observations/obs_converters/AIRS/BUILDME
===================================================================
--- DART/branches/radiance/observations/obs_converters/AIRS/BUILDME (rev 0)
+++ DART/branches/radiance/observations/obs_converters/AIRS/BUILDME 2018-07-16 16:55:51 UTC (rev 12751)
@@ -0,0 +1,114 @@
+#!/bin/sh -v
+
+#
+# nsc 11 mar 2013
+# updated 16 jul 2018
+#
+
+# change this to true to try the ftp
+# to download a new version. this may have
+# moved locations - i haven't verified it recently.
+
+if ( `false` ); then
+ # get the files. i got this by:
+
+ ftp edhs1.gsfc.nasa.gov
+ # (log in as 'anonymous' and your email as the password)
+ cd /edhs/hdfeos/latest_release
+ mget *
+ quit
+
+ # mar 2013, the dir contents:
+ #
+ # hdf-4.2.6.tar.gz
+ # HDF-EOS2.18v1.00.tar.Z
+ # HDF-EOS2.18v1.00_TestDriver.tar.Z
+ # HDF_EOS_REF.pdf
+ # HDF_EOS_UG.pdf
+ # jpegsrc.v6b.tar.gz
+ # zlib-1.2.5.tar.gz
+ #
+ # (i skipped a 'windows' dir).
+ #
+
+ for i in *.tar.gz
+ do
+ tar -zxvf $i
+ done
+fi
+
+#
+# start with smaller libs, work up to HDF-EOS.
+#
+
+# this is probably appropriate for a mac osx system.
+# set it to your home or work directory on cheyenne.
+
+set BASEDIR = /Users/$USER
+#set BASEDIR = /glade/u/home/$USER
+
+# make the target install dirs
+mkdir -p ${BASEDIR}/eos/{lib,bin,man,man/man1}
+
+echo zlib:
+
+cd zlib-1.2.5
+./configure --prefix=${BASEDIR}/eos
+make clean
+make
+make test
+make install
+cd ..
+
+echo jpeg:
+
+cd jpeg-6b
+./configure --prefix=${BASEDIR}/eos --with-zlib=${BASEDIR}/eos
+make clean
+make
+make test
+make install
+make install-lib
+cd ..
+
+echo hdf:
+
+cd hdf-4.2.6
+./configure --prefix=${BASEDIR}/eos --with-zlib=${BASEDIR}/eos --with-jpeg=${BASEDIR}/eos
+make clean
+make
+# (there is apparently no 'make test')
+make install
+cd ..
+
+echo hdf-eos:
+
+cd hdfeos
+./configure CC='gfortran -Df2cFortran' --prefix=${BASEDIR}/eos --with-zlib=${BASEDIR}/eos --with-jpeg=${BASEDIR}/eos
+# (the CC= is crucial)
+make clean
+make
+# (i didn't build the test drivers so i didn't do make test)
+make install
+cd ..
+
+echo exiting early
+exit 0
More information about the Dart-dev
mailing list