Giter Site home page Giter Site logo

dtype problem with polygonize about pysheds HOT 1 OPEN

mdbartos avatar mdbartos commented on July 16, 2024
dtype problem with polygonize

from pysheds.

Comments (1)

mdbartos avatar mdbartos commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.