Documentation for /home/davin/idl/socware/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

general/CDF/

cdf2idltype.pro


Routines

top source cdf2idltype

result = cdf2idltype(code)

NAME: cdf2idltype PURPOSE: Return an IDL type number given a CDF data type CALLING SEQUENCE: idl_type = cdf2idltype(code) INPUT: code = the CDF data type code for that variable OUTPUT: idl_type = the type number for the appropriate IDL variable CDF_TYPE IDL_TYPE 'CDF_UINT1' 1 (byte) 'CDF_UCHAR' 1 (byte) 'CDF_BYTE' 2 (int) 'CDF_INT1' 2 (int) 'CDF_INT2' 2 (int) 'CDF_INT4' 3 (long) 'CDF_FLOAT' 4 (float) 'CDF_REAL4' 4 (float) 'CDF_DOUBLE' 5 (double) 'CDF_REAL8' 5 (double) 'CDF_CHAR' 7 (string) 'CDF_UINT2' 12 (unsigned int) 'CDF_UINT4' 13 (unsigned long) 'CDF_INT8' 14 (long64) 'CDF_UINT8' 15 (unsigned long64) There are some CDF types that have no corresponding IDL type, e.g., CDF_BYTE and CDF_INT1 are signed bytes, here we return a type code of 2 (signed integer), The EPOCH and TT2000 are not handled here, and will return a code of 0 HISTORY: 26-nov-2013, jmm, jimm@ssl.berkeley.edu $LastChangedBy: jimm $ $LastChangedDate: 2013-11-26 12:22:47 -0800 (Tue, 26 Nov 2013) $ $LastChangedRevision: 13597 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/general/CDF/cdf2idltype.pro $

Parameters

code

File attributes

Modification date: Thu Feb 13 16:43:50 2014
Lines: 22