hdf2raw.c File Reference

Command line tool that extracts the data of a SDS issued of an HDF file, and write it as binary. Usage: s [-v] [-overwrite] -isds=<sds index>=""> -of=<output file>=""> <input file>="">. More...

#include <stdio.h>
#include "mfhdf.h"

Defines

#define MAX_NAME_LENGTH   200

Functions

size_t hdf_sizeof (const int32 data_type)
 returns the memory size used by the given hdf data type
int main (int argc, char *argv[])
 command line tool entry point

Detailed Description

Command line tool that extracts the data of a SDS issued of an HDF file, and write it as binary. Usage: s [-v] [-overwrite] -isds=<sds index>=""> -of=<output file>=""> <input file>="">.

Author:
Nicolas PASCAL, CGTD ICARE
Version:
1.0.0
Date:
2006-03-15

----------------------------------------------------------------------------

History : 2006-03-15 : creation

----------------------------------------------------------------------------


Function Documentation

size_t hdf_sizeof ( const int32  data_type  ) 

returns the memory size used by the given hdf data type

Parameters:
data_type the type code used in HDF files (DFNT_CHAR8, DFNT_UCHAR8...)
Returns:
the size (in bytes) used by one value of this type

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

command line tool entry point

Parameters:
argc as usual
argv[] as usual
Returns:
0 if all works fine, -1 either

References hdfatt::data, hdf_sizeof(), and verbose.


Generated on Wed Feb 10 10:13:49 2010 for hdf_tools.kdevelop by  doxygen 1.6.1