pywoudc package¶
Module contents¶
-
class
pywoudc.
WoudcClient
(url='https://geo.woudc.org/ows', timeout=30)¶ Bases:
object
WOUDC Client
-
about
= None¶ The About Data Access page
-
get_contributor_metadata
(raw=False)¶ Download WOUDC contributors metadata
Parameters: raw – a boolean specifying whether to return the raw GeoJSON payload as a string (default is False) Returns: dictionary of GeoJSON payload
-
get_data
(typename, **kwargs)¶ Download WOUDC observations
Parameters: - bbox – a list representing a bounding box spatial filter (minx, miny, maxx, maxy)
- temporal –
a list of two elements representing a time period (start, end) which accepts the following types:
datetime.date
datetime.datetime
- string date (e.g.
2012-10-30
) - string datetime (e.g.
2012-10-30 11:11:11
)
- filters – dict of key-value pairs of property names and values. Constructs exclusive search
- variables – a list of variables to return as part of the response (default returns all)
- sort_property – a string representing the property on which
to sort results (default
instance_datetime
) - sort_order – a string representing sort order of response
(
asc
ordesc
). Default isasc
. Applied if sort_property is specified
Returns: list of WOUDC observations GeoJSON payload
-
get_instrument_metadata
(raw=False)¶ Download WOUDC instrument metadata
Parameters: raw – a boolean specifying whether to return the raw GeoJSON payload as a string (default is False) Returns: dictionary of GeoJSON payload
-
get_station_metadata
(raw=False)¶ Download WOUDC station metadata
Parameters: raw – a boolean specifying whether to return the raw GeoJSON payload as a string (default is False) Returns: dictionary of GeoJSON payload
-
maxfeatures
= None¶ The default limit of records to return
-
outputformat
= None¶ The default outputformat when requesting WOUDC data
-
server
= None¶ The main WOUDC server
-
timeout
= None¶ Time (in seconds) after which requests should timeout
-
url
= None¶ The URL of the WOUDC data service
-
-
pywoudc.
date2string
(dateval, direction='begin')¶ Utility function (private)