|
LeoNetCDF software for manipulating with files in NetCDF format (reading, writing, altering and transforming in and out XML format). Free download:
LeoNetCDF.exe Content: Introduction NetCDF format. User interface XML conversion. Service. |
XML syntactic compatible with NetCDF format.
<n_records>n</n_records> where n is number of the records. <dimension>...</dimension> open and close content of one dimension. Supposed to be set in file before first variable tag. <attribute>...</attribute> open and close content of one attribute global or local for variable. <variable>...</variable> open and close content of one variable. <name>name of element</name> name of dimension, attribute or variable. <type>double</type> type of data of attribute or variable there are six different formats of data available:
char - string in ANSI format, <adata>1, 2, 3, 4,5 </adata> contains data of the attribute. Has to be inside of the tag attribute. <vdata>1.e3, 2e4, 3.6e5, 4,5 </vdata> contains data of the variable. Has to be inside of the tag variable and after type tag records are space or comma divided. Comment tags these LeoNetCDF will write into XML file but those will be ignored during the reading: <LeoNetCDF> - shows that LeoNetCDF software application wrote this file. <file><name>C:/example.cdf</name><size>320001</size></file> - gives name of original NetCDF file and its size. Ignored during reading. <n_dimensions>n</n_dimensions> where n is number of the dimensions. Ignored when reading. Actual numbers of dimensions are considered correct. <n_attributes>n</n_attributes> where n is number of the attributes. Ignored when reading. Actual numbers of attributes are considered correct. <n_variables>n</n_variables> where n is number of the variables. Ignored when reading. Actual numbers of variables are considered correct. Here is an valid example of content of simple XML file that can be converted in NetCDF format by LeoNetCDF software application : <n_records>9</n_records> <dimension><name>tP</name><size>2</size></dimension> <dimension><name>r</name><size>0</size></dimension> <attribute><name>record</name><type>char</type><adata>time - price</adata></attribute> <attribute><name>time unit</name><type>char</type><adata>years since Jan. 1970</adata></attribute> <attribute><name>price unit</name><type>char</type><adata>USD</adata></attribute> <variable> <name>oil</name> <attribute><name>unit</name><type>char</type><adata>barrel</adata></attribute> <type>float</type> <vdata> 0, 1.8, 5, 12.77, 10, 30.75, 15, 27.49. 20, 20.51, 25, 16.56, 30, 25.29, 32, 17.04, 33, 34 </vdata> </variable> |
Screenshots: click on picture to enlarge |