cfdm.InterpolationParameter¶
- class cfdm.InterpolationParameter(*args, **kwargs)[source]¶
Bases:
NetCDFVariable,PropertiesData,Files,PropertiesDataAn interpolation parameter variable.
Space may be saved by storing a subsample of the coordinates. The uncompressed coordinates can be reconstituted by interpolation from the subsampled coordinate values, also called either “tie points” or “bounds tie points”.
An interpolation parameter variable provides values for coefficient terms in the interpolation equation, or for any other terms that configure the interpolation process.
NetCDF interface
The netCDF variable name may be accessed with the
nc_set_variable,nc_get_variable,nc_del_variable, andnc_has_variablemethods.The netCDF variable group structure may be accessed with the
nc_set_variable,nc_get_variable,nc_variable_groups,nc_clear_variable_groups, andnc_set_variable_groupsmethods.{{netCDF HDF5 chunks}}
The netCDF subsampled dimension name and the netCDF interpolation subarea dimension name, if required, are set on the on the corresponding tie point index variable.
Added in version (cfdm): 1.10.0.0
See also
Initialisation
- Parameters:
- properties:
dict, optional Set descriptive properties. The dictionary keys are property names, with corresponding values.
Properties may also be set after initialisation with the
set_propertiesandset_propertymethods.- Parameter example:
properties={'standard_name': 'altitude'}
- data: data_like, optional
Set the data.
A data_like object is any object that can be converted to a
Dataobject, i.e.numpyarray_like objects,Dataobjects, and cfdm instances that containDataobjects.The data also may be set after initialisation with the
set_datamethod.- source: optional
Convert source, which can be any type of object, to a
InterpolationParameterinstance.All other parameters, apart from copy, are ignored and their values are instead inferred from source by assuming that it has the
InterpolationParameterAPI. Any parameters that can not be retrieved from source in this way are assumed to have their default value.Note that if
xis also aInterpolationParameterinstance thencfdm.InterpolationParameter(source=x)is equivalent tox.copy().- copy:
bool, optional If True (the default) then deep copy the input parameters prior to initialisation. By default the parameters are not deep copied.
- properties:
Methods¶
Methods
Apply masking as defined by the CF conventions. |
|
A numpy array deep copy of the data. |
|
Remove all properties. |
|
Join a together sequence of |
|
Return a deep copy. |
|
Return the commands that would create the construct. |
|
The data. |
|
An independent numpy array of date-time objects. |
|
Remove the data. |
|
Remove properties. |
|
Remove a property. |
|
Data-type of the data elements. |
|
A full description of the interpolation parameter variable. |
|
Whether two instances are the same. |
|
The directories of files containing parts of the data. |
|
Return the data. |
|
Return the name of the file or files containing the data. |
|
The names of files containing the original data and metadata. |
|
Return a property. |
|
Get quantization metadata. |
|
Get a quantize-on-write instruction. |
|
Whether or not there are cell bounds. |
|
Whether or not the construct has data. |
|
Whether a property has been set. |
|
Return all possible identities. |
|
Return the canonical identity. |
|
Expand the shape of the data array. |
|
Clear the dataset chunking strategy for the data. |
|
Clear the HDF5 chunking strategy for the data. |
|
Remove the netCDF variable group hierarchy. |
|
Get the dataset chunking strategy for the data. |
|
Remove the netCDF variable name. |
|
Return the netCDF variable name. |
|
Whether the netCDF variable name has been set. |
|
Get the HDF5 chunking strategy for the data. |
|
Set the dataset chunking strategy. |
|
Set the HDF5 chunking strategy. |
|
Set the netCDF variable name. |
|
Set the netCDF variable group hierarchy. |
|
Return the netCDF variable group hierarchy. |
|
The number of data dimensions. |
|
Persist data into memory. |
|
Return all properties. |
|
Replace a file directory in-place. |
|
Set the data. |
|
Set properties. |
|
Set a property. |
|
A tuple of the data array's dimension sizes. |
|
The number elements in the data. |
|
Remove size one axes from the data array. |
|
Bring data on disk into memory. |
|
Permute the axes of the data array. |
|
Uncompress the construct. |