Git Product home page Git Product logo

Comments (3)

jgrss avatar jgrss commented on May 24, 2024

I hadn't seen this so thanks for finding. It should be fixed in 1156e2f.

from geowombat.

mmann1123 avatar mmann1123 commented on May 24, 2024

Same issue, new place

bounds = (793475.76, 2049033.03, 794222.03, 2049527.24)

with gw.open(rgbn,
                band_names=['green', 'red', 'nir'],
                num_workers=8,
                indexes=[2, 3, 4],
                bounds=bounds,
                out_dtype='float32') as src:
    print(src)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
~/Documents/github/pyGIS/pygis/docs/test.py in 
      1196                 indexes=[2, 3, 4],
      1197                 bounds=bounds,
----> 1198                 out_dtype='float32') as src:
      1199     print(src)
     1200 

~/anaconda3/envs/pygisbookgw/lib/python3.7/site-packages/geowombat/core/api.py in __init__(self, filename, band_names, time_names, stack_dim, bounds, bounds_by, resampling, persist_filenames, mosaic, overlap, nodata, dtype, num_workers, **kwargs)
    402                              chunks=chunks,
    403                              num_workers=num_workers,
--> 404                              **kwargs)
    405 
    406             self.__filenames = [filename]

~/anaconda3/envs/pygisbookgw/lib/python3.7/site-packages/geowombat/core/api.py in read(filename, band_names, time_names, bounds, chunks, num_workers, **kwargs)
    172 
    173             if bounds and ('window' not in kwargs):
--> 174                 kwargs['window'] = from_bounds(*bounds, transform=src.gw.transform)
    175 
    176             ycoords, xcoords, attrs = get_attrs(src, **kwargs)

AttributeError: 'DatasetReader' object has no attribute 'gw'

from geowombat.

jgrss avatar jgrss commented on May 24, 2024

Added a fix in 5d79796.

from geowombat.

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.