2007 Unidata NetCDF Workshop for Developers and Data Providers > The "Classic" NetCDF Data Model
3.8 Variable Methods
Things you can do with a netCDF variable include getting information
about it, putting data values into it, and getting data values out of it.
In the netCDF C-based interfaces, operations on variables include:
- Create a variable, given its name, data type, and shape.
- Get a variable from its name.
- Get a variable's name, data type, shape, or number of attributes.
- Put a single data value into a variable, given the indices and value.
- Put an array of values into a variable, given corner indices, edge lengths, and a block of values.
- Put a sub-sampled array-section of values into a variable, given corner indices, edge lengths, stride vector, and a block of values.
- Put a mapped array-section of values into a variable, given corner indices, edge lengths, stride vector, index mapping vector, and a block of values.
- Get a single data value from a variable, given indices.
- Get an array of values from a variable, given corner indices and edge lengths.
- Get a sub-sampled array-section of values from a variable, given
corner indices, edge lengths, and stride vector.
- Get a mapped array-section of values from a variable, given corner indices, edge lengths, stride vector, and index mapping vector.
- Rename a variable.
The netCDF Java interface supports some additional operations on
variables including array section operations.
2007 Unidata NetCDF Workshop for Developers and Data Providers > The "Classic" NetCDF Data Model