|
Re: Default nodata value
Hi Idan,
thanks, that's already quite useful. This is typically the kind of default values I encounter when using GDAL in the command line indeed.
This does not match the values I find when using
Hi Idan,
thanks, that's already quite useful. This is typically the kind of default values I encounter when using GDAL in the command line indeed.
This does not match the values I find when using
|
By
amaury.dehecq@...
·
#811
·
|
|
Re: Default nodata value
Hi Amaury,
I'm not aware of any "default" nodata value per dtype in gdal.
Though, you might find the defaults in gdal_calc
Hi Amaury,
I'm not aware of any "default" nodata value per dtype in gdal.
Though, you might find the defaults in gdal_calc
|
By
Idan Miara
·
#810
·
|
|
Default nodata value
Hi,
what is the default nodata used by GDAL, and hence rasterio, for any given dtype?
For example, rasterio.warp.reproject states:
dst_nodata (int or float, optional) – The nodata value used to
Hi,
what is the default nodata used by GDAL, and hence rasterio, for any given dtype?
For example, rasterio.warp.reproject states:
dst_nodata (int or float, optional) – The nodata value used to
|
By
amaury.dehecq@...
·
#809
·
|
|
Re: How are calculate_default_transform and aligned_target different?
Hi all,
on the same topic, is there an easy way to get the destination parameters (transform, width, height) exactly as GDAL would do, considering the user might provide any of, or a combination of,
Hi all,
on the same topic, is there an easy way to get the destination parameters (transform, width, height) exactly as GDAL would do, considering the user might provide any of, or a combination of,
|
By
amaury.dehecq@...
·
#808
·
|
|
Re: Open EHdr raster with hdr header file from memory
Replacing your FTP code with direct access using the /vsicurl/ virtual filesystem:
import rasterio
vrt = '''
<VRTDataset rasterXSize="6935" rasterYSize="3351">
<SRS>EPSG:4326</SRS>
Replacing your FTP code with direct access using the /vsicurl/ virtual filesystem:
import rasterio
vrt = '''
<VRTDataset rasterXSize="6935" rasterYSize="3351">
<SRS>EPSG:4326</SRS>
|
By
Luke
·
#807
·
|
|
Re: Open EHdr raster with hdr header file from memory
You could use a raw raster VRT combined with the /vsitar and /vsigzip virtual filesystems (you could probably use /vsicurl as well to replace your FTP code, but I couldn't get that to work immediately
You could use a raw raster VRT combined with the /vsitar and /vsigzip virtual filesystems (you could probably use /vsicurl as well to replace your FTP code, but I couldn't get that to work immediately
|
By
Luke
·
#806
·
|
|
Re: Help with rasterio.transfrom.xy
Hi,
The xy method always returns projected coordinates. If you want long and lat, you must reproject the xy values using
Hi,
The xy method always returns projected coordinates. If you want long and lat, you must reproject the xy values using
|
By
Sean Gillies
·
#805
·
|
|
Re: Proposal: Allow other cloud object store providers
Hi Ashley,
Yes, I think that should be the standard way. AWS would have to remain a special case until we deprecate the special parameters properly, but we can already do what you outlined above for
Hi Ashley,
Yes, I think that should be the standard way. AWS would have to remain a special case until we deprecate the special parameters properly, but we can already do what you outlined above for
|
By
Sean Gillies
·
#804
·
|
|
Help with rasterio.transfrom.xy
Hi,
We are working on a process that extracts values from raster data and returns them as GeoJSON geometries. Our use cases are point, line, and polygon.
For the line use case, we are trying to
Hi,
We are working on a process that extracts values from raster data and returns them as GeoJSON geometries. Our use cases are point, line, and polygon.
For the line use case, we are trying to
|
By
Cooney,Tom (ECCC)
·
#803
·
|
|
Open EHdr raster with hdr header file from memory
Hi All,
I am processing SNODAS data archives that store each variable in a single-band ESRI BIL format raster. rasterio.open() works like a charm when a) fp references a file on disk and b) when a hdr
Hi All,
I am processing SNODAS data archives that store each variable in a single-band ESRI BIL format raster. rasterio.open() works like a charm when a) fp references a file on disk and b) when a hdr
|
By
fkluibenschaedl@...
·
#802
·
|
|
Re: Which version of rasterio support works with numpy==1.19.2
Hi,
Rasterio is compatible with the "oldest supported numpy" version defined in https://github.com/scipy/oldest-supported-numpy/blob/master/setup.cfg. This means that rasterio wheels on PyPI are built
Hi,
Rasterio is compatible with the "oldest supported numpy" version defined in https://github.com/scipy/oldest-supported-numpy/blob/master/setup.cfg. This means that rasterio wheels on PyPI are built
|
By
Sean Gillies
·
#801
·
|
|
Which version of rasterio support works with numpy==1.19.2
I am using tensorflow 2.5 which requires a specific version of NumPy 1.19.2.
I am also using rasterio. Which version of rasterio that requires the same version of numpy ?
I am using tensorflow 2.5 which requires a specific version of NumPy 1.19.2.
I am also using rasterio. Which version of rasterio that requires the same version of numpy ?
|
By
1s.aboulfadile@...
·
#800
·
|
|
Re: Creating 12GB Create very large empty geotif with Rasterio without using large amounts of memory
Thanks Luke. And everyone else for all great the suggestions. Much appreciated.
Thanks Luke. And everyone else for all great the suggestions. Much appreciated.
|
By
Hobart, Geordie (NRCan/RNCan)
·
#799
·
|
|
Re: Creating 12GB Create very large empty geotif with Rasterio without using large amounts of memory
You don't need to pre-populate a dataset with a massive empty array, you can just open it in write mode and write chunks of data via windowed writing:
profile = {
'driver': 'GTiff',
'tiled':
You don't need to pre-populate a dataset with a massive empty array, you can just open it in write mode and write chunks of data via windowed writing:
profile = {
'driver': 'GTiff',
'tiled':
|
By
Luke
·
#798
·
|
|
Re: Proposal: Allow other cloud object store providers
Thanks for your reply, Sean.
> are you proposing that potentially any cloud platform would be made first class in rasterio, concretely, as in GDAL and as with rasterio/S3 today?
Yes, thats right.
>
Thanks for your reply, Sean.
> are you proposing that potentially any cloud platform would be made first class in rasterio, concretely, as in GDAL and as with rasterio/S3 today?
Yes, thats right.
>
|
By
ashley.sommer@...
·
#797
·
|
|
Re: Creating 12GB Create very large empty geotif with Rasterio without using large amounts of memory
Thanks Yon.
I want to avoid making the 12 GB numpy zero array and the associated memory demand so solution two is the best bet.
Greatly appreciated.
Geordie
Thanks Yon.
I want to avoid making the 12 GB numpy zero array and the associated memory demand so solution two is the best bet.
Greatly appreciated.
Geordie
|
By
Hobart, Geordie (NRCan/RNCan)
·
#796
·
|
|
Re: Creating 12GB Create very large empty geotif with Rasterio without using large amounts of memory
Thank you Alan. Good to know. Kind regards. Geordie
Thank you Alan. Good to know. Kind regards. Geordie
|
By
Hobart, Geordie (NRCan/RNCan)
·
#795
·
|
|
Re: Creating 12GB Create very large empty geotif with Rasterio without using large amounts of memory
Reading & writing with windows can be done with rioxarray (rasterio + xarray):
import rioxarray
rds = rioxarray.open_rasterio("input.tif", lock=False)
rds.rio.to_raster("output.tif",
Reading & writing with windows can be done with rioxarray (rasterio + xarray):
import rioxarray
rds = rioxarray.open_rasterio("input.tif", lock=False)
rds.rio.to_raster("output.tif",
|
By
Alan Snow
·
#794
·
Edited
|
|
Re: Creating 12GB Create very large empty geotif with Rasterio without using large amounts of memory
Hey Hobart,
I've had success using Rasterio's windowed reading and writing to create a huge raster in chunks. You could do something like this:
# Create blank raster that will hold the data. Make sure
Hey Hobart,
I've had success using Rasterio's windowed reading and writing to create a huge raster in chunks. You could do something like this:
# Create blank raster that will hold the data. Make sure
|
By
yon.davies@...
·
#793
·
|
|
Creating 12GB Create very large empty geotif with Rasterio without using large amounts of memory
Hi there.
I was wondering if there was a way to create a multiband 12 GB geotif file with rasterio without consuming a large amount of memory.
I’m working on a shared system where resources are
Hi there.
I was wondering if there was a way to create a multiband 12 GB geotif file with rasterio without consuming a large amount of memory.
I’m working on a shared system where resources are
|
By
Hobart, Geordie (NRCan/RNCan)
·
#792
·
|