Comments (1)
Hi David, thanks for letting me know. A check should probably be added for the datatype.
grid.catchment
should probably also return the same datatype as the source flow direction file (unless the nodata
and pour_value
values don't fit into that datatype).
Note that if you call polygonize with data=None
(the default), the input will default to grid.mask
. If you previously used grid.clip_to('catch')
to clip the mask to the catchment, this should give you an easy way of generating the outline of the catchment:
https://github.com/mdbartos/pysheds/blob/master/examples/shapefiles.ipynb
Looking at the polygonize
function, I wonder if the input behavior should be changed to be more consistent with the other functions (e.g. accept a named parameter like 'catch' or 'dem').
from pysheds.
Related Issues (20)
- HAND Spatial extent different from DEM for large DEMs
- Role of nodata_cells in flowdir HOT 1
- FutureWarning:Use of pyproj.transform is deprecated since pyproj>2.6.1 HOT 2
- Cannot replicate the example using 'elevation.tiff' HOT 3
- keyword arguments of to_raster are not propagated to rasterio HOT 2
- AttributeError when trying to import DEM HOT 1
- HydroSHEDs importing error HOT 4
- Deprecate pyproj 2
- hhh
- Retire pgrid
- Numba JIT causes up to 15s import times HOT 4
- Conda-forge install seems broken HOT 5
- Any ideas why the catchment delineated has holes? How can I filled the holes? HOT 5
- Set the threshold of the catchment area? HOT 4
- Facing problem when nodata_out = np.nan as default in functions
- How to create Flow Distance raster same shape as DEM raster?
- Re-evaluate Numba performance HOT 2
- Allow Numba to perform polymorphic dispatching HOT 5
- Can't 'imshow' DEM for some unkown reason HOT 1
- extract_profiles function returning wrong connections when neighbouring cells drain to outlet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysheds.