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

A dictionary of variables

Type:

dict[str, str]

time_span

A dictionary holding the beginning and ending iso time strings which define the temporal bounds of the dataset

featureDatasetdict[str, str]

A dictionary containing the type [“grid”, “point”] and location [“url”] of the dataset

Type:

dict[str, datetime.datetime]

accept_list

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

Type:

dict[str, list[str]]

gridsets

A dictionary of gridSets contained within the dataset

Type:

dict[str, set[str]]

axes

A dictionary of coordinate axes

Type:

dict[str, object]

coordinate_transforms

A dictionary of coordinate transforms

Type:

dict[str, object]

lat_lon_box

A dictionary holding the north, south, east, and west latitude and longitude bounds of the dataset (in degree_east, degree_north)

Type:

dict[str, float]

__init__(element)[source]

Initialize a NCSSDataset object.

Parameters:

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