hdftotdf [ parameter=value ... ] [ inputfile outputfile ] hdftotdf [ parameter=value ... ] [ inputfile ... directory ] nctdf [ parameter=value ... ] [ inputfile outputfile ] nctdf [ parameter=value ... ] [ inputfile ... directory ]
Parameters are: include_vars, short_names.
hdftotdf and nctdf import HDF and netCDF formatted datasets, respectively, to TeraScan datasets (see datasets). HDF (Hierarchical Data Format) was developed by the National Center for Supercomputing Applications at the University of Illinois at Urbana-Champaign. netCDF (network Common Data Format) was developed by Unidata Programs at the University Corporation for Atmospheric Research. Both of these dataset formats are public domain analogs to the TeraScan dataset format (see datasets). Each has independently produced a library of functions, and in some cases utility programs, to read, write, and manipulate multi-dimension, multi-type, multi-variable datasets. HDF has several interfaces built around 8- or 24-bit images, scientific data, tabulated data, etc. hdftotdf only imports the Scientific Data Set (SDS) format of HDF.
Input datasets can be any valid HDF/SDS or netCDF datasets. One output TeraScan dataset is created for each input dataset. The input and output dataset variables have the same size data representation (e.g. , all 8-bit types are imported to GP_BYTE, all 16-bit types are imported to GP_SHORT, etc). All variable and global attribute information is imported as well as dimension names and scales.
Specifies the list of variables to import. Variable names must be specified exactly, and cannot be longer than 31 characters. Wildcards cannot be used.
The default is to export all variables.
hdftotdf only. Indicates whether to use short or long variable names in the output dataset. The default is short_names=yes, which uses the names returned by SDgetinfo(). If short_names=no, names from SDgetdatastrs() are used.
impbin, impasc, tdftohdf, expasc, expbin, printvar, datasets, contents.
TDF A1 -> tdftohdf -> HDF H -> hdftotdf -> TDF A2 TDF A1 -> tdfnc -> HDF H -> nctdf -> TDF A2There are certain features in TeraScan datasets that do not convert easily into HDF or netCDF. These features include dimension coordinates, dimension scale and offset, dimension variable, and attribute units. tdftohdf/hdftotdf and tdfnc/nctdf encode/decode a number of added attributes in order for A1 and A2 to be nearly identical. See tdftohdf to see how these additional attributes are created. The hidden parameters fake_left, fake_mid, and fake_right are supported by hdftotdf and nctdf in order to decode these additional attributes.
The HDF source code and documentation, which also includes the netCDF library interface and documentation, may be obtained via public domain anonymous FTP to NCSA:
1) ftp ftp.ncsa.uiuc.edu or ftp 128.174.20.50
2) log in using "anonymous" for the name
3) enter your local login name for the password
Documentation that may be particularly helpful: About_3.3r3 Getting Started with HDF HDF Reference Manual NCSA HDF Calling Interfaces and Utilities
Addresses: National Center for Supercomputing Applications 152 Computing Applications Bldg. 605 E. Springfield Ave. Champaign, IL 61820
Unidata Program Center P.O. Box 3000 Boulder, CO 80307-3000:
Last Update: $Date: 2002/05/07 23:21:15 $