Skip to main content

A small example package

Reason this release was yanked:

outdated and pypi install no longer supported

Project description

rabpro

Code style: black Anaconda badge

longitudinal river profiles, global watershed delineation, watershed stats

Setup

Software

conda env create -f environment.yml
source activate rabpro

# set use-feature to silence deprecation warning
# pip install --use-feature=in-tree-build . 

Data

Locate the MERIT DEM "tile" of interest and run Data/scripts/get_merit_dem.py with username and password arguments.

python Data/scripts/get_merit_dem.py n30w090 <username> <password>

Download Hydrobasins levels 1 and 12 using Data/scripts/get_hydrobasins.py

Usage

command line

python rabpro/run_rabpro.py

python

import geopandas as gpd
import rabpro
from rabpro import utils
from rabpro.subbasin_stats import Dataset

# verify pathing setup "works"
# utils.get_rabpropath()
# utils.get_datapaths()

coords_file = gpd.read_file(r"tests/test_data/Big Blue River.geojson")
rpo = rabpro.profiler(coords_file)
rpo.delineate_basins() # requires hydrobasins levels 1 and 12
# name = "test"
# rpo.basins.to_file('Data/gaugebasin_shp/'+name+'.shp',driver='ESRI Shapefile')
rpo.elev_profile() # requires merit-dem (this ex. requires n30w090 [elv, fdr, upa, wth])
rpo.basin_stats([Dataset("JRC/GSW1_3/GlobalSurfaceWater", "occurrence")]) # requires Google Earth Engine access

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

rabpro-0.2.1.tar.gz (31.5 kB view details)

Uploaded Source

File details

Details for the file rabpro-0.2.1.tar.gz.

File metadata

  • Download URL: rabpro-0.2.1.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for rabpro-0.2.1.tar.gz
Algorithm Hash digest
SHA256 886d281759a639006ffc420582e18d0b80e67a8453edc3e54ca4efcc0129b72a
MD5 5b5c36b885a8f820b1d8673bebc1526b
BLAKE2b-256 b421721d38a1a516428d427dbd26439f21448e0255a7eda6344ed6613807c789

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