|
Re: Numpy error when masking a Landsat image with a polygon [Rasterio 1.0.28]
After looking at the docs, I think you need to remove `.read(1)` as that returns a numpy array and `mask` expects a dataset:
After looking at the docs, I think you need to remove `.read(1)` as that returns a numpy array and `mask` expects a dataset:
|
By
Alan Snow
·
#311
·
|
|
Re: Numpy error when masking a Landsat image with a polygon [Rasterio 1.0.28]
I wonder if you are looking for `from rasterio.features import geometry_mask`?
https://rasterio.readthedocs.io/en/stable/api/rasterio.features.html#rasterio.features.geometry_mask
Example code:
I wonder if you are looking for `from rasterio.features import geometry_mask`?
https://rasterio.readthedocs.io/en/stable/api/rasterio.features.html#rasterio.features.geometry_mask
Example code:
|
By
Alan Snow
·
#310
·
|
|
Numpy error when masking a Landsat image with a polygon [Rasterio 1.0.28]
Hi folks
I'm having the following errors when I'm trying to mask a landsat image with a kml polygon.
The metadata for scene LC08_L1TP_221077_20190815_20190820_01_T1 is
My code
Hi folks
I'm having the following errors when I'm trying to mask a landsat image with a kml polygon.
The metadata for scene LC08_L1TP_221077_20190815_20190820_01_T1 is
My code
|
By
juliano.ecc@...
·
#309
·
|
|
Rasterio 1.0.28
Hi all,
Rasterio 1.0.27 broke a CLI plugin that my team uses at worker and may have broken any of yours that also pass creation options like `BLOCKXSIZE=1024` directly to dataset constructors without
Hi all,
Rasterio 1.0.27 broke a CLI plugin that my team uses at worker and may have broken any of yours that also pass creation options like `BLOCKXSIZE=1024` directly to dataset constructors without
|
By
Sean Gillies
·
#308
·
|
|
Re: Reading from S3
Hughes, would you be willing to run
CPL_CURL_VERBOSE=1 rio info "s3://s1-image-dataset/test.tif"
on your computer after unsetting AWS_S3_ENDPOINT and show us the output after sanitizing it (replace
Hughes, would you be willing to run
CPL_CURL_VERBOSE=1 rio info "s3://s1-image-dataset/test.tif"
on your computer after unsetting AWS_S3_ENDPOINT and show us the output after sanitizing it (replace
|
By
Sean Gillies
·
#307
·
|
|
Re: Reading from S3
Hughes,
The AWS_S3_ENDPOINT config option is intended to allow GDAL users to work with S3-compatible systems like https://min.io/index.html. It shouldn't be needed for the Gov Cloud, specification of
Hughes,
The AWS_S3_ENDPOINT config option is intended to allow GDAL users to work with S3-compatible systems like https://min.io/index.html. It shouldn't be needed for the Gov Cloud, specification of
|
By
Sean Gillies
·
#306
·
|
|
Re: Reading from S3
Hughes,
Have you tried setting `os.environ['AWS_S3_ENDPOINT']='s3.us-gov-west-1.amazonaws.com'` before opening the file?
This reminds me of a previous (but resolved) issue with requester pays
Hughes,
Have you tried setting `os.environ['AWS_S3_ENDPOINT']='s3.us-gov-west-1.amazonaws.com'` before opening the file?
This reminds me of a previous (but resolved) issue with requester pays
|
By
scott
·
#305
·
|
|
Re: Reading from S3
Hi Sean,
env: AWS_S3_ENDPOINT="us-west-1"This was indeed an error, although changing it did not fix the problem. I have included "fresh" logs below to show the problem still persists. Furthermore, as
Hi Sean,
env: AWS_S3_ENDPOINT="us-west-1"This was indeed an error, although changing it did not fix the problem. I have included "fresh" logs below to show the problem still persists. Furthermore, as
|
By
hughes.lloyd@...
·
#304
·
|
|
Re: Reading from S3
Hi Hughes,
Yes, I've been able to read raster data from S3 in a Jupyter notebook.
What do you make of the observation I made earlier today about the
env: AWS_S3_ENDPOINT="us-west-1"
log message from
Hi Hughes,
Yes, I've been able to read raster data from S3 in a Jupyter notebook.
What do you make of the observation I made earlier today about the
env: AWS_S3_ENDPOINT="us-west-1"
log message from
|
By
Sean Gillies
·
#303
·
|
|
Rasterio 1.0.27
Hi all,
Rasterio 1.0.27 is on PyPI now and here is the list of the changes.
Resolve #1744 by adding a `dtype` keyword argument to the WarpedVRT constructor. It allows a user to specify the working
Hi all,
Rasterio 1.0.27 is on PyPI now and here is the list of the changes.
Resolve #1744 by adding a `dtype` keyword argument to the WarpedVRT constructor. It allows a user to specify the working
|
By
Sean Gillies
·
#302
·
|
|
Re: Reading from S3
The issue doesn't exist outside of Jupyter notebooks. It seems once I am inside a notebook that rasterio does not function in the same manner even when the environment variables are identical.
Would
The issue doesn't exist outside of Jupyter notebooks. It seems once I am inside a notebook that rasterio does not function in the same manner even when the environment variables are identical.
Would
|
By
hughes.lloyd@...
·
#301
·
|
|
Re: Reading from S3
My bucket is hosted in "us-gov-west-1" region and if I don't set
then neither gdalinfo nor rio work, they throw errors about the file not being found as they still continue to access the standard
My bucket is hosted in "us-gov-west-1" region and if I don't set
then neither gdalinfo nor rio work, they throw errors about the file not being found as they still continue to access the standard
|
By
hughes.lloyd@...
·
#300
·
|
|
Re: Reading from S3
Hi,
I will add to the previous message that if you want to specify a non-default region, the environment variable you're looking for is probably AWS_REGION (or AWS_DEFAULT_REGION starting with GDAL
Hi,
I will add to the previous message that if you want to specify a non-default region, the environment variable you're looking for is probably AWS_REGION (or AWS_DEFAULT_REGION starting with GDAL
|
By
Guillaume Lostis <g.lostis@...>
·
#299
·
|
|
Re: Reading from S3
Hi,
The following log message catches my eye:
env: AWS_S3_ENDPOINT="us-west-1"
If that is set in your notebook's environment, it will override the value you pass to Env() in your program, and it looks
Hi,
The following log message catches my eye:
env: AWS_S3_ENDPOINT="us-west-1"
If that is set in your notebook's environment, it will override the value you pass to Env() in your program, and it looks
|
By
Sean Gillies
·
#298
·
|
|
Re: Reading from S3
I am trying to read a GeoTIFF from a private AWS S3 bucket. I have configured GDAL and the appropriate files ~/.aws/config and ~/.aws/credentials. I am using a non-standard AWS region as well, so I
I am trying to read a GeoTIFF from a private AWS S3 bucket. I have configured GDAL and the appropriate files ~/.aws/config and ~/.aws/credentials. I am using a non-standard AWS region as well, so I
|
By
hughes.lloyd@...
·
#297
·
|
|
Reading from S3
I am trying to read a geoTiff from my private S3 bucket (mapping), but am receiving the following error message
The code I am using to open the GeoTiff is:
with
I am trying to read a geoTiff from my private S3 bucket (mapping), but am receiving the following error message
The code I am using to open the GeoTiff is:
with
|
By
hughes.lloyd@...
·
#296
·
|
|
Re: rasterio.windows.transform seems to not scale my windows correctly, am I using it wrong?
Hi Ryan,
I've been on vacation, just now getting the time to answer questions. Answers below.
Your use of windows.transform in the first case is correct, and your use of windows.bounds in the second
Hi Ryan,
I've been on vacation, just now getting the time to answer questions. Answers below.
Your use of windows.transform in the first case is correct, and your use of windows.bounds in the second
|
By
Sean Gillies
·
#295
·
|
|
Re: multi-dimensional support
Hi Norman, Howard,
I'm going to move this discussion over to https://rasterio.groups.io/g/dev/messages and continue there.
--
Sean Gillies
Hi Norman, Howard,
I'm going to move this discussion over to https://rasterio.groups.io/g/dev/messages and continue there.
--
Sean Gillies
|
By
Sean Gillies
·
#294
·
|
|
Rasterio 1.0.26
Hi all,
Rasterio 1.0.26 wheels and source distribution are on PyPI today. There are eight bug fixes in this release.
https://github.com/mapbox/rasterio/blob/master/CHANGES.txt#L4
Thank you for the
Hi all,
Rasterio 1.0.26 wheels and source distribution are on PyPI today. There are eight bug fixes in this release.
https://github.com/mapbox/rasterio/blob/master/CHANGES.txt#L4
Thank you for the
|
By
Sean Gillies
·
#293
·
|
|
Re: multi-dimensional support
I was one of the stakeholders for subdataset support in GDAL with netCDF and it worked well with what we were trying to achieve back then, serving regularly gridded time series netcdf data through a
I was one of the stakeholders for subdataset support in GDAL with netCDF and it worked well with what we were trying to achieve back then, serving regularly gridded time series netcdf data through a
|
By
Norman Barker
·
#292
·
|