Coder Social home page Coder Social logo

Attribute Error about rio-hist HOT 4 CLOSED

geointerest avatar geointerest commented on June 18, 2024
Attribute Error

from rio-hist.

Comments (4)

tomwang221812 avatar tomwang221812 commented on June 18, 2024 1

I modify utils.py line 17 from:
if src.mask_flags[0] & MaskFlags.per_dataset:
to
if MaskFlags.per_dataset in src.mask_flag_enums[0]:
and it works on my own datasets now.

Python version : Python 3.6.6 :: Anaconda custom (64-bit)
Rasterio version : 1.0.21
GDAL version : 2.4.0

from rio-hist.

 avatar commented on June 18, 2024

I was able to get data set 2 to work using these commands.

rio edit-info --nodata null source2.tif
rio edit-info --nodata null reference2.tif

from rio-hist.

GeoCG avatar GeoCG commented on June 18, 2024

@tomwang221812 Your solution solved the issue I had. Thanks a lot !

from rio-hist.

sgillies avatar sgillies commented on June 18, 2024

Closing in favor of #17. No date set yet.

from rio-hist.

Related Issues (16)

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.