Version 1.1 |
||||||||||||||||
The binary dumper utility dumps HDF-EOS objects in binary format.
This is useful for feeding the output of it into existing program, which
does not understand HDF, for example: custom software and COTS products.
|
||||||||||||||||
README: |
||||||||||||||||
This is a beta release of the "bindmp" utility. 1. Setup the system flag The HDFSYS flag is set by the user basing on the platform used. The list below gives what it should be for each supported platform:
e.g. setenv HDFSYS DEC_ALPHA 2. Set up the compiler option. The CFLAGS flag is set by the user basing on the platform used. The list below gives what it should be for each supported platform:
e.g. setenv CFLAGS "-O -std" This utility can be build on UNIX from the source code provided in the file bindmp.c by first modifying the "comp" script by supplying the correct location of the HDF library and include files on your system and the proper compiler options from the list below. e.g. cc -std1 -L/home/urmila/hdfeos/lib -L/home/urmila/hdf/lib -I/home/urmila/hdfeos/include -I/home/urmila/hdf/include $1 -lhsfeos -lGctp -lmfhdf -ldf -o $2 -lm -lz 3. To build executable bindmp. e.g. comp bindmp.c bindmp Run instruction. See informaiton in the file "bindmp.man". The file "bindmp.man" is a text version of a manpage for the bindmp utility. |
||||||||||||||||
bindmp.man |
||||||||||||||||
NAME binmp - Dumps data of a HDF-EOS object
binary. SYNOPSIS bindmp <options> <object_name> <file_name> <output_file> DESCRIPTION bindmp creates an output file which contains Binary data for a specified HDF- EOS object, and it also includes the information about rank and dimension For GRID and SWATH objects. For a POINT object, bindmp writes values of data of a specified level or all levels in the object.REQUIRED INPUTS object_name level_number, field_name or -all For Point Data level_number and field_name or either one of the option or -all should be given. file_name output_file OPTIONS -l <level_number> (for point data
only) -f field_name -all EXAMPLES 1. Writes the data from the object SWATH1 in HDF-EOS file "SwathFile.hdf". bindmp -f Temperature SWATH1 SwathFile.hdf swath.out. 2. Write the data from object "UTM" which is in the HDF-EOS
file "Gridc_Test.hdf". bindmp -all UTM Gridc_Test.hdf grid.out. (grid.out is the output file where all the data will be dumped in the binary format). --- write specified field from the object "UTM" which is in the HDF-EOS file "Gridc_Test.hdf". bindmp -f Voltage UTM Gridc_Test.hdf grid.out. 3. Write the data from the object "Balloon Data" which is in the HDF-EOS file "balloon_sp.hdfeos". ---write all fields, all levels from the object "Balloon Data" , using the default format. bindmp -all "Balloon Data" balloon_sp.hdfeos point.out. (point.out is the output file where all the data will be dumped in the binary format). ---write specified level information from the object "Balloon
Data" which is in the HDF-EOS file "balloon_sp.hdfeos". bindmp -l 2 "Balloon Data" balloon_sp.hdfeos point.out. ---write specified level along with the field specified field name from the object "Balloon Data" which is in the HDF-EOS file "balloon_sp.hdfeos". bindmp -l 2 -f Time "Balloon Data" balloon_sp.hdfeos point.out.
|
||||||||||||||||
Information Contact: Urmila_Prasad@sesda.com
Responsible NASA Official: Richard.Ullman@gsfc.nasa.gov Web Curator: (George) Schwenke@rattler.gsfc.nasa.gov Last Updated on: July 2,2001 |
||||||||||||||||