Skip to main content

Tool to download CoCoRaHS data.

Project description

Tool to download CoCoRaHS data.

Requirements

  • Python >= 2.6

Installation

To get started using CoCoRaHS-Download-Tool simply install it with pip:

$ pip install CoCoRaHS-Download-Tool

Or, use pip locally with the .tar.gz distribution file:

$ pip install CoCoRaHS-Download-Tool-0.0.2.tar.gz

Usage

The CoCoRaHS-Download-Tool tool has two modes of operation, listing of CoCoRaHS station metadata, and listing of CoCoRaHS station data.

Stations Metadata

To list CoCoRaHS stations metadata for the default state (NM) the following command is issued:

$ python -m cocorahs_dlt stations

To save the output of this operation, run:

$ python -m cocorahs_dlt stations > stations.csv

To download and save CoCoRaHS stations metadata for a different state (specified by the two-character state code), the following command is issued:

$ python -m cocorahs_dlt --state CO stations > stations.csv

Stations Data

To list CoCoRaHS stations data for the default state (NM), the default date range (last three days), and the default output (CSV) the following command is issued:

$ python -m cocorahs_dlt data

To save the output of this operation, run:

$ python -m cocorahs_dlt data > data.csv

To download and save CoCoRaHS stations data for a different state (specified by the two-character state code), the following command is issued:

$ python -m cocorahs_dlt --state CO data > data.csv

To download and save CoCoRaHS stations data for a different state (specified by the two-character state code) and in a different output format, the following command is issued:

$ python -m cocorahs_dlt --state CO data --format XML > data.xml

To download and save CoCoRaHS stations data for a different state (specified by the two-character state code) in a different output format, and with volunteer comments, the following command is issued:

$ python -m cocorahs_dlt --state CO data --format XML --comments > data.xml

To download and save CoCoRaHS stations data for a different state (specified by the two-character state code) in a different output format, with volunteer comments, and for a different date range, the following command is issued:

$ python -m cocorahs_dlt --state CO data --format XML --comments --start_date 2014-09-13 --end_date 2014-09-21 > data.xml

To only list the data from the previous command, the > data.xml text is dropped:

$ python -m cocorahs_dlt --state CO data --format XML --comments --start_date 2014-09-13 --end_date 2014-09-21

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CoCoRaHS-Download-Tool-0.0.2.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file CoCoRaHS-Download-Tool-0.0.2.tar.gz.

File metadata

File hashes

Hashes for CoCoRaHS-Download-Tool-0.0.2.tar.gz
Algorithm Hash digest
SHA256 33176b2ad0d201046d4d5aad5ff99c794dca9e626e3d05c60e19a10c51f18377
MD5 2f23e06ef3f9291ab2920bc3e69a5feb
BLAKE2b-256 b006664ff908d8d2c49854127c9f80e2e1b8c883f81fc6dc906e610226cedfad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page