1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
from ulmo.waterml import common
WATERML_V1_0_NAMESPACE= "{http://www.cuahsi.org/waterML/1.0/}"
def parse_site_infos(content_io):
"""parses site_infos out of a waterml file; content_io should be a file-like object"""
return common.parse_site_infos(content_io, WATERML_V1_0_NAMESPACE,
site_info_names=['siteInfo'])
def parse_site_values(content_io, query_isodate=None):
"""parses values out of a waterml file; content_io should be a file-like object"""
return common.parse_site_values(content_io, WATERML_V1_0_NAMESPACE,
query_isodate=query_isodate)
def parse_sites(content_io):
"""parses sites out of a waterml file; content_io should be a file-like object"""
return common.parse_sites(content_io, WATERML_V1_0_NAMESPACE)
def parse_variables(content_io):
"""parses variables out of a waterml file; content_io should be a file-like object"""
return common.parse_variables(content_io, WATERML_V1_0_NAMESPACE)
|