flopy.export.metadata module¶
-
class
acdd(sciencebase_id, model)[source]¶ Bases:
objectTranslate ScienceBase global metadata attributes to CF and ACDD global attributes.
Parameters: - sciencebase_id (str) – Unique identifier for ScienceBase record (e.g. 582da7efe4b04d580bd37be8)
- model (flopy model object) – Model object
References
https://www.sciencebase.gov/catalog/ http://cfconventions.org/cf-conventions/v1.6.0/cf-conventions.html#description-of-file-contents http://wiki.esipfed.org/index.php/Attribute_Convention_for_Data_Discovery
-
bounds¶
-
creator¶
-
creator_url¶
-
geospatial_bounds¶ Describes the data’s 2D or 3D geospatial extent in OGC’s Well-Known Text (WKT) Geometry format
-
geospatial_bounds_vertical_crs¶ The vertical coordinate reference system (CRS) for the Z axis of the point coordinates in the geospatial_bounds attribute.
-
get_sciencebase_metadata(id)[source]¶ Gets metadata json text for given ID from sciencebase.gov; loads into python dictionary. Fetches the reference text using the url: https://www.sciencebase.gov/catalog/item/<ID>?format=json
Parameters: ID (str) – ScienceBase ID string; e.g. 582da7efe4b04d580bd37be8 for Dane County Model Returns: metadata – Dictionary of metadata Return type: dict
-
get_sciencebase_xml_metadata()[source]¶ Gets xml from sciencebase.gov, using XML url obtained from json using get_sciencebase_metadata().
Parameters: ID (str) – ScienceBase ID string; e.g. 582da7efe4b04d580bd37be8 for Dane County Model Returns: metadata – Dictionary of metadata Return type: dict
-
references¶
-
time_coverage¶
-
vertical_datum¶ Try to parse the vertical datum from the xml info
-
xmlfile¶
-
xmlroot¶ ElementTree root element object for xml metadata