Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: outdated and pypi install no longer supported

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

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.2.tar.gz (31.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: rabpro-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4f4eccb3c554282145dae01aa5b5a36ed298fa2dc2c3f32ced5e2e977b0e917c
MD5 523f894ae6a3f34b7e220b0b15fd7561
BLAKE2b-256 e77f87eeee1811820c4e4c221506041cd3b228aad4981725083ccd856c06dd83

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 file

0.2.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page