sunnypoy.blogg.se

Download cdf files
Download cdf files








id = CDF_CREATE( 'Temperature.cdf',, /CLOBBER ) att_id = CDF_ATTCREATE(id, 'Title', /GLOBAL) CDF_ATTPUT, id, att_id, 0, 'My Fancy CDF' att1_id = CDF_ATTCREATE(id, 'Planet', /GLOBAL) CDF_ATTPUT, id, 'Planet', 0, 'Mars' time_id = CDF_VARCREATE(id, 'Time',, $ /REC_VARY) att2_id = CDF_ATTCREATE(id, 'Time Standard', /VARIABLE_SCOPE) times are every half hour starting a 8 am GMT. The following example demonstrates the basic procedure for creating a CDF file.

#Download cdf files code#

For example, in this code snippet IDL converts the string “12” to a floating-point 12.0 before writing it: varid= CDF_VARCREATE(fileid, 'VarName',$ DIM=,/CDF_FLOAT) CDF_VARPUT, fileid, 'VarName', '12' Reference by variable ID Code Examples Values are converted to the appropriate type before being written to a CDF file.

download cdf files

If the structure of the CDF file is already known, you do not need to call the inquiry routines-only CDF_OPEN, CDF_ATTGET, CDF_VARGET, and CDF_CLOSE are needed. Optionally, retrieve the names, scope, and other information about the CDF file's attributes. Retrieve the names, types, sizes, and other information about the variables in the CDF file.

download cdf files

The following table lists the basic commands needed to read data from a CDF file: CDF_OPENĬall this function to find the general information about the contents of the CDF file.Ĭall this function to obtain further information about the CDF file Write the appropriate data to the CDF file. Optionally, use attributes to describe the data. CDF_CREATE contains a number of keywords which affect the internal format of the new CDF file.ĭefine the variables to be used in the file. The following table lists the basic IDL commands needed to create a new CDF file:Ĭall this procedure to begin creating a new file. IDL’s CDF routines all begin with the prefix “CDF_”. CDF is a product of the National Space Science Data Center (NSSDC). The Common Data Format (CDF) is a file format that facilitates the storage and retrieval of multi-dimensional scientific data.

download cdf files

Tip: For information on the current CDF version, enter the following at the IDL prompt: HELP, 'cdf', /DLM








Download cdf files