Comments (5)
Looks like the issue is data.filename, not sure if that was intentional or not. see #28
` # Open the input file on disk
def to_vrt():
with rio.open(data.filename) as src:
with WarpedVRT(src,
src_crs=src.crs, # the original CRS
crs=data.crs, # the transformed CRS
src_transform=src.transform, # the original transform
transform=data.transform, # the new transform
dtype=data.gw.dtype,
resampling=resampling,
nodata=nodata,
init_dest_nodata=init_dest_nodata,
warp_mem_limit=warp_mem_limit) as vrt:
rio_shutil.copy(vrt, filename, driver='VRT')`
from geowombat.
Thanks for catching this. The filename
attribute is a geowombat
attribute. I replaced data.filename
with data.gw.filename
in 4d50e2e.
from geowombat.
New issue...
with gw.open(glob('./data/NDWI/*2020*tif'), band_names=['NDWI'],
time_names=['01-01-2020'],
bounds_by='union',mosaic=True,
num_workers=5) as ds:
print(ds)
# Write the data to a VRT
ds.gw.to_vrt('./data/NDWI/NDWI_01-01-2020.vrt')
File "/home/mmann1123/anaconda3/envs/geowombat/lib/python3.7/site-packages/geowombat/core/io.py", line 366, in to_vrt
with rio.open(data.gw.filename) as src:
AttributeError: 'GeoWombatAccessor' object has no attribute 'filename'
Not sure if this is related but it seems like you have two class definitions for GeoWombatAccessor
from geowombat.
Yeah, that will have to be an enhancement. At the moment, the geowombat.to_vrt()
function only supports a single raster input file from geowombat.open()
.
from geowombat.
I am closing this issue and will open a new one specific to the enhancement of using multiple files with to_vrt()
.
from geowombat.
Related Issues (20)
- conda-forge issues HOT 13
- angles tests HOT 2
- conda optional extras HOT 13
- Ml no data HOT 2
- gw.open bug?? HOT 5
- Apply example
- Apply on bands error HOT 1
- Apply HOT 2
- Expand pinned python version HOT 1
- Feedstock Issues HOT 1
- Failed to Install Geowombat on pip and conda HOT 12
- Requirement differences between package & conda-forge HOT 6
- Coordinating efforts on potential new geospatial Xarray accessor HOT 2
- Regression capability in geowombat HOT 3
- ARM Installation Issues HOT 9
- Apply interpolation HOT 4
- Stac import HOT 2
- series.apply big tiff / bad block
- EVI equation is wrong HOT 2
- Support for pyproj 3.4.1? HOT 6
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 geowombat.