siphon.ncss_dataset

Support reading and parsing the dataset.xml documents from the netCDF Subset Service.

class siphon.ncss_dataset.NCSSDataset(element)[source]

Hold information contained in the dataset.xml NCSS document.

In general, if a dataset.xml NCSS document is missing the information needed to construct an attribute, that attribute will not show up as part of the NCSSDataset object.

Note that only gridded ncss datasets may contain the attributes gridsets, axes, coordinate_transforms, and lat_lon_box.

variables

dict[str, str] – A dictionary of variables

time_span
dict[str, datetime.datetime] – A dictionary holding the beginning and ending iso time strings which
define the temporal bounds of the dataset
featureDataset : dict[str, str]
A dictionary containing the type [“grid”, “point”] and location [“url”] of the dataset
accept_list

dict[str, list[str]] – A dictionary holding the types of valid returns of the dataset by access method [Grid, GridAsPoint, PointFeatureCollection]

gridsets

dict[str, set[str]] – A dictionary of gridSets contained within the dataset

axes

dict[str, object] – A dictionary of coordinate axes

coordinate_transforms

dict[str, object] – A dictionary of coordinate transforms

lat_lon_box

dict[str, float] – A dictionary holding the north, south, east, and west latitude and longitude bounds of the dataset (in degree_east, degree_north)

__init__(element)[source]

Initialize a NCSSDataset object.

Parameters:element (Element) – An Element representing the top level node of an NCSS dataset.xml doc