Giter Club home page Giter Club logo

sensorml2iso's Introduction

sensorml2iso

A simple Python module to query an IOOS SOS service for active sensors and output ISO 19115-2-compliant xml metadata following a template.

Installation:

git clone https://github.com/ioos/sensorml2iso.git
cd sensorml2iso
pip install -e .

Usage:

sensorml2iso -s http://data.nanoos.org/52nsos/sos/kvp

or, with all optional parameters:

sensorml2iso -s http://data.nanoos.org/52nsos/sos/kvp -d 14 --stations=urn:ioos:station:nanoos:apl_nemo,urn:ioos:station:nanoos:apl_npb1ptwells
                    --getobs_req_hours 3 --response_formats=application/json,application/zip; subtype=x-netcdf --output_dir data.nanoos.org --verbose

Parameters:

-s | --service : SOS service endpoint URL

-d | --active_station_days : (Optional) Number of days from present to use to filter SOS stations
     not actively reporting observations for active/inactive designation.  Inactive stations are
     excluded from processing.

--stations : (Optional) Comma-separated list of station URNs to filter by.
     Eg. '--stations=urn:ioos:station:nanoos:apl_nemo,urn:ioos:station:nanoos:apl_npb1ptwells'.

--getobs_req_hours : (Optional) Number of hours from last valid station observation time to use
     in GetObservation request example URLs.  Default: 2.

--response_formats : (Optional) Comma-separated list of SOS responseFormats to use in creating
     GetObservation download links for each observed parameter.
     Eg. "--response_formats='application/json,application/zip; subtype=x-netcdf'".
     Default: ['application/json', 'text/xml; subtype="om/1.0.0/profiles/ioos_sos/1.0"'].

--output_dir : (Optional) Specify an output directory (relative to current working directory)
     to write ISO 19115-2 XML files to.  If omitted the default output directory will a subdirectory
     using the domain name of the SOS service URL passed (eg. sos.gliders.ioos.us).

--sos_type: (Optional) Identify the type of SOS service to query.  Currently this isn't implemented,
    but could be used to use specific parsers built into the Pyoos library.  Valid types: 'ioos', 'ndbc', 'coops'. 

--verbose : (Optional) verbose output to stdout and log file sensorml2iso.log

sensorml2iso's People

Contributors

mwengren avatar srstsavage avatar

Watchers

James Cloos avatar Benjamin Adams avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.