2.7. vacumm.data
– Data management¶
Data tools
-
DATASET_SPECS
= {}¶ Specifications of available dataset types
-
DS
(ncfile, clsname='generic', *args, **kwargs)[source]¶ Load a specialized
vacumm.data.misc.dataset.Dataset
instanceAvailable methods for retreiving data (or derived data) are the same for all dataset types. And whatever the dataset type, the outputs will all have the same format (names, attributes…). Formating is defined and performed by the
vacumm.data.cf
module.Params: - ncfile: Netcdf file name(s) or pattern compatibile with
list_forecast_files()
, so please read the documentation of this function carefully. - clsname: Generic class name. Please choose one of:
- All other keyword are passed to the class initialization.
See
Dataset
a list of these options.
Return: A child of
vacumm.data.misc.dataset.Dataset
.Example: >>> from vacumm.data import DS >>> mars = DS('results.nc', 'mars') >>> dx,dy = mars.get_resol() >>> sst = mars.get_sst()
See also: - ncfile: Netcdf file name(s) or pattern compatibile with
-
setup_dataset
(clsname, ncfile=None, *args, **kwargs)[source]¶ Alias for
DS(ncfile, clsname, *args, **kwargs)
See
DS()
for arguments.This function is here mainly for backward compatibility.
- 2.7.1.
vacumm.data.cf
– CF conventions and extensions - 2.7.2.
vacumm.data.misc
– Generic utilities - 2.7.3.
vacumm.data.model
– Classes for numeric models