Skip to content

simple cli tool for accessing NMWDI data via STA. Includes much of the necessary application logic to make well integrated datasets

License

Notifications You must be signed in to change notification settings

NMWDI/NMWDIDataTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NMWDIDataTool

A python based tool for accessing data in the NMWDI catalog. Uses PySTA to query SensorThings instances. The application logic in order integrate other APIs exists here also

Install

pip install nmwdidatatool

Usage

nmwdi --help

Unannotated Examples

Water

nmwdi water depths --agency CABQ --location YALE* --out out.csv
nmwdi water depths --agency CABQ --location YALE* --out foo.json
nmwdi water depths --agency CABQ --location YALE* --out out.json --last 2
nmwdi water depths --agency CABQ --location YALE* --out out.csv --last 2
nmwdi water elevations --agency CABQ --location YALE* --out out.csv --last 2

Locations

nmwdi locations --within "bernalillo" --verbose --out foo.shp --group True
nmwdi locations --within bernallilo --names-only
nmwdi locations --within bernalillo --names-only --agency CABQ
nmwdi locations --pages 1 --bbox "-108,34.9, -106, 35" --verbose --screen 
nmwdi locations --pages 1 --bbox "-108,34.9, -106, 35" --verbose --screen --out foo.json
nmwdi locations --pages 1 --name "startswith(name, 'AR-')"
nmwdi locations --pages 1 --name "startswith(name, 'AR-')" --verbose
nmwdi locations --pages 1 --agency ISC_SEVEN_RIVERS --verbose
nmwdi locations --pages 1 --agency ISC_SEVEN_RIVERS --verbose --expand Things/Datastreams --screen
nmwdi locations --pages 1 --within "NM:Socorro" --verbose
nmwdi locations --pages 1 --within "NM:Socorro" --verbose --screen
nmwdi locations --pages 1 --within "NM:Socorro" --verbose --screen --expand Things/Datastreams
nmwdi locations --pages 1 --within "NM:Socorro" --verbose --out foo.csv
nmwdi locations --pages 1 --within "NM:Socorro" --verbose --url ose.newmexicowaterdata.org  --screen
nmwdi locations --pages 1 --within "NM:Socorro" --verbose --url ose.newmexicowaterdata.org  --screen --expand Things
nmwdi locations --pages 1 --within "NM:Socorro" --verbose --url ose.newmexicowaterdata.org  --screen --query "Things/properties/driller eq 'REAMY DRILLING'"

MLocations

nmwdi mlocations --within "NM:Bernalillo" --out foo.shp 

PODS

nmwdi pods --bbox "-106.7322,34.9757,-106.7265,34.9714" --out foo.shp

About

simple cli tool for accessing NMWDI data via STA. Includes much of the necessary application logic to make well integrated datasets

Resources

License

Stars

Watchers

Forks

Packages

No packages published