|
The first program (hdfread.f) offered below offers a comprehensive demonstration of upacking all the elements of a LEVEL-1B HDF file using the HDF4 interface.
- notes:
- Not compatable with HDF5.
- All binaries were built using HDF4.1r5 libraries for
- UNIX - SUN Solaris 7 and newer (32b application),
- Red Hat's unix emulator cygwin (32b application), and
- Windows 32 platforms.
Unpacking Programs ( FORTRAN & C )
- hdfread
- operates on a MAS level-1B HDF4 data file.
- The contents of the global attributes and scientific data sets
- can optionally be displayed on a monitor.
- Works with MAS & MASTER 50 channel and old MAS 12 channel HDF4 Level 1B data files.
- Binaries:
- hdfread (SUN) [ ~756kB ]
- hdfread.exe (WIN32) [ ~753kB ]
- hdfread.exe requires cygwin1.dll [ ~971kB ]
- note: cygwin1.dll must be installed within the windows path (e.g. c:/WINDOWS/system32 )
- Dependencies:
- hdread.f [ ~14kB ]
- constant.i [ ~14kB ], the include file needed by hdfread.f
- HDF4.1r5
- Typical build
- note: Assumes HDF library installed in /usr/local .
- SUN Fortran 77 compiler:
- f77 -o hdfread hdfread.f -lV77 -i4 -r4 \
- -L /usr/local/lib -lmfhdf -ldf -ljpeg -lz -L/usr/lib -lnsl
- or
- GNU Fortran 77 compiler:
- g77 -o hdfread hdfread.f -w -I /usr/local/include \
- -L /usr/local/lib -lmfhdf -ldf -ljpeg -lz -L/usr/lib -lnsl
- hdf_subsetting
- Operates on MAS/MASTER 50 channel level-1B HDF4 data file.
- Creates output hdf files of user time or scanline specified subsets.
- POSIX-compliant source code.
- Binaries:
- hdf_subsetting (SUN) [ ~741kB ]
- hdf_subsetting.exe (Win32) [ ~459kB ]
- hdf_subsetting.exe (cygwin for WIN32) [ ~704kB ]
- hdf_subsetting.exe for cygwin requires cygwin1.dll [ ~971kB ]
- note: cygwin1.dll must be installed within the windows path (e.g. c:/WINDOWS/system32 )
- Dependencies:
- hdf_subsetting.c [ ~ 76kB ]
- HDF4.1 libraries
- An ANSI C compiler ( known builds with SUN, GNU C 2.95 (or newer) & Visual C++ 6.0 compilers )
- Typical build
- note: Assumes HDF library installed in /usr/local ,
- source contains C++ style comments.
- SUN ANSI C compiler:
- cc -w -xCC -o hdf_subsetting hdf_subsetting.c -DUNIX -I/usr/local/include \
- -lm -L /usr/local/lib -lmfhdf -ldf -ljpeg -lz -L/usr/lib -lnsl
- GUN C compiler:
- gcc -w -o hdf_subsetting hdf_subsetting.c -DUNIX -I/usr/local/include \
- -lm -L /usr/local/lib -lmfhdf -ldf -ljpeg -lz -L/usr/lib -lnsl
- Visual C++ 6.0 compiler:
- -o hdf_subsetting hdf_subsetting.c -DWIN32 -Ic:\hdflib\HDF41r5\loca\include \
- -L\c:\hdflib\HDF41r5\lib -lmfhdf -ldf -ljpeg -lz
- masimages
- Operates on a MAS/MASTER level-1B HDF4 file of flight line data.
- Optionally creates either ASCII or binary files of 32b (4B)
- floating point data of the following types:
- calibrated radiance
- latitude, longitude
- sensor zenith angle, and sensor azimuth angle
- solar zenith angle, and solar azimuth angle
- Works with MAS/MASTER 50 channel HDF4 data files (may not work with old MAS 12 channel data).
- Binaries:
- masimages (SUN) [ ~786kB ]
- masimages.exe (WIN32) [ ~776kB ]
- masimages.exe requires cygwin1.dll [ ~971kB ]
- note: cygwin1.dll must be installed within the windows path (e.g. c:/WINDOWS/system32 )
- Dependencies:
- masimages.f [ ~77kB ]
- constant.i [ ~14kB ], the include file needed by masimages.f
- HDF4.1r3
- Typical build
- note: Assumes HDF library installed in /usr/local .
- SUN Fortran 77 compiler:
- f77 -o masimages masimages.f -lV77 -i4 -r4 \
- -L /usr/local/lib -lmfhdf -ldf -ljpeg -lz -L/usr/lib -lnsl
- or
- GNU Fortran 77 compiler:
- g77 -o masimages masimages.f -w -I /usr/local/include \
-
- -L /usr/local/lib -lmfhdf -ldf -ljpeg -lz -L/usr/lib -lnsl
- masrad
- Extracts calibrated radiance values for an entire, or partial,
- MAS scene and writes them to a disk file in Band Inter-Leave (BIL) fashion.
- Works with MAS/MASTER 50 channel and MAS 12 channel HDF4 data files.
- POSIX-compliant source code.
- Binaries:
- masrad (SUN) [ ~693kB ]
- masrad.exe (Win32) [ ~442kB ]
- masrad.exe (cygwin for Win32) [ ~662kB ]
- masrad.exe for cygwin requires cygwin1.dll [ ~971kB ]
- note: cygwin1.dll must be installed within the windows path (e.g. c:/WINDOWS/system32 )
- Dependencies
- masrad.c [ ~25kB ]
- HDF4.1 libraries
- An ANSI C compiler ( known builds with SUN, GNU C 2.95 (or newer) & Visual C++ 6.0 compilers )
- Typical build
- note: Assumes HDF library installed in /usr/local .
- SUN ANSI C compiler:
- cc -o masrad masrad.c -DUNIX -L/usr/local/lib -lmfhdf -ldf -ljpeg -lz -L/usr/lib -lnsl
- or
- GNU C 2.95 (or newer) compiler:
- gcc -o masrad masrad.c -DUNIX -L /usr/local/lib -lmfhdf -ldf -ljpeg -lz -L/usr/lib -lnsl
- or
- Visual C++ 6.0 compiler:
- -o masrad masrad.c -DWIN32 -Lc:\HDF41r5\lib -lmfhdf -ldf -ljpeg -lz
|
|