|
Re: Reading NetCDF file as inMemoryFile
Then I get "not recognized as a supported file format."
```
>>> f = open("/local/OR_ABI-L1b-RadF-M6C04_G16_s20193221600287_e20193221609595_c20193221610025.nc", "rb")
>>> with MemoryFile(f) as mem:
...
Then I get "not recognized as a supported file format."
```
>>> f = open("/local/OR_ABI-L1b-RadF-M6C04_G16_s20193221600287_e20193221609595_c20193221610025.nc", "rb")
>>> with MemoryFile(f) as mem:
...
|
By
vincent.sarago@...
·
#399
·
|
|
Re: Reading NetCDF file as inMemoryFile
Can you check for the following too ?
userfaultfd support: yes
to check that you actually built against sufficiently recent kernel headers.
--
Spatialys - Geospatial professional
Can you check for the following too ?
userfaultfd support: yes
to check that you actually built against sufficiently recent kernel headers.
--
Spatialys - Geospatial professional
|
By
Even Rouault
·
#398
·
|
|
Re: Reading NetCDF file as inMemoryFile
Vincent,
Can you try naming the driver when you open the in-memory dataset? Something like
with MemoryFile(...) as memfile:
with memfile.open(driver="netCDF") as dataset:
....
--
Sean
Vincent,
Can you try naming the driver when you open the in-memory dataset? Something like
with MemoryFile(...) as memfile:
with memfile.open(driver="netCDF") as dataset:
....
--
Sean
|
By
Sean Gillies
·
#397
·
|
|
Re: Reading NetCDF file as inMemoryFile
Thanks for your answer Even, and be assured that I always read the manual before asking question :-)
```
$ more /proc/version
Linux version 4.9.184-linuxkit (root@a8c33e955a82) (gcc version 8.3.0
Thanks for your answer Even, and be assured that I always read the manual before asking question :-)
```
$ more /proc/version
Linux version 4.9.184-linuxkit (root@a8c33e955a82) (gcc version 8.3.0
|
By
vincent.sarago@...
·
#396
·
Edited
|
|
Re: Reading NetCDF file as inMemoryFile
RTF(anstatic)M :-)
https://gdal.org/drivers/raster/netcdf.html#vsi-virtual-file-system-api-support
"Since GDAL 2.4, and with Linux kernel >=4.3 and libnetcdf >=4.5, read operations on /vsi file
RTF(anstatic)M :-)
https://gdal.org/drivers/raster/netcdf.html#vsi-virtual-file-system-api-support
"Since GDAL 2.4, and with Linux kernel >=4.3 and libnetcdf >=4.5, read operations on /vsi file
|
By
Even Rouault
·
#395
·
|
|
Reading NetCDF file as inMemoryFile
I'm seeking some advice here,
I'm trying to reduce the memory/disk usage of one of my script where I try to translate a netcdf file to COG. Ideally I'd love not to save any file to disk.
The problem
I'm seeking some advice here,
I'm trying to reduce the memory/disk usage of one of my script where I try to translate a netcdf file to COG. Ideally I'd love not to save any file to disk.
The problem
|
By
vincent.sarago@...
·
#394
·
|
|
Re: Define invalid regions of VRT file in a way that allows windowing
Hi Sean,
You're correct, mask() does require a dataset object (no numpy array) and will read the entire dataset. Can you use multiple, smaller, VRTs? Using a shapefile is fine. If you want to remove
Hi Sean,
You're correct, mask() does require a dataset object (no numpy array) and will read the entire dataset. Can you use multiple, smaller, VRTs? Using a shapefile is fine. If you want to remove
|
By
Sean Gillies
·
#393
·
|
|
Rasterio 1.1.2
Hi all,
An sdist and manylinux1 and macosx wheels for pythons 2.7, 3.5-3.8 are on PyPI now. Please note that these wheels contain the base PROJ datum grids (version 1.8) and are somewhat larger than
Hi all,
An sdist and manylinux1 and macosx wheels for pythons 2.7, 3.5-3.8 are on PyPI now. Please note that these wheels contain the base PROJ datum grids (version 1.8) and are somewhat larger than
|
By
Sean Gillies
·
#392
·
|
|
Re: exporting single banc with a colormap to RGB.tif
Hi,
The library doesn't automatically convert single band color-mapped data to 3-band RGB data. You'll need to construct a new output array filled with values from the colormap and then write that to
Hi,
The library doesn't automatically convert single band color-mapped data to 3-band RGB data. You'll need to construct a new output array filled with values from the colormap and then write that to
|
By
Sean Gillies
·
#391
·
|
|
Define invalid regions of VRT file in a way that allows windowing
Hi all,
I'm using a VRT file to represent a bunch of individual map tiles as one big image (following the help of Dion Haefner via this list - thanks again!). I noticed that some of the data is
Hi all,
I'm using a VRT file to represent a bunch of individual map tiles as one big image (following the help of Dion Haefner via this list - thanks again!). I noticed that some of the data is
|
By
rasterio@...
·
#390
·
|
|
Re: rasterio vsicurl issues with docker-compose
Frankly, I always thinking giving more context will help especially with the python binding logging gdal errors to stderr and you have to figure out how to do that. However, in my case I guess it was
Frankly, I always thinking giving more context will help especially with the python binding logging gdal errors to stderr and you have to figure out how to do that. However, in my case I guess it was
|
By
Madhav Desetty
·
#389
·
|
|
exporting single banc with a colormap to RGB.tif
Hello,
I could not figure out how to export a single band with a colormap as an RGB.tif
A snippet of my code:
with rasterio.open(new_f_cmp,'w',**raster_cmp_p) as dst:
Hello,
I could not figure out how to export a single band with a colormap as an RGB.tif
A snippet of my code:
with rasterio.open(new_f_cmp,'w',**raster_cmp_p) as dst:
|
By
Eyal Saiet
·
#388
·
|
|
Including PROJ datum grids in rasterio wheels, yes or no?
Hi all,
I have built new wheels for rasterio 1.1.1 here
https://travis-ci.com/rasterio/rasterio-wheels/builds/139810607
which, for the first time, contain the base PROJ datum grids (version 1.8). This
Hi all,
I have built new wheels for rasterio 1.1.1 here
https://travis-ci.com/rasterio/rasterio-wheels/builds/139810607
which, for the first time, contain the base PROJ datum grids (version 1.8). This
|
By
Sean Gillies
·
#387
·
|
|
Re: rasterio vsicurl issues with docker-compose
Thank you for following up. Getting a resolution, when we can, is super important for a forum like this.
In this case, the error
rasterio._err.CPLE_OpenFailedError:
Thank you for following up. Getting a resolution, when we can, is super important for a forum like this.
In this case, the error
rasterio._err.CPLE_OpenFailedError:
|
By
Sean Gillies
·
#386
·
|
|
Re: rasterio vsicurl issues with docker-compose
I found my problem. I had extra double quote from a copy paste around for this env var CPL_VSIL_CURL_ALLOWED_EXTENSIONS=".TIF,.ovr,.jp2,.tif" which I was setting via .env file and referencing it in
I found my problem. I had extra double quote from a copy paste around for this env var CPL_VSIL_CURL_ALLOWED_EXTENSIONS=".TIF,.ovr,.jp2,.tif" which I was setting via .env file and referencing it in
|
By
Madhav Desetty
·
#385
·
|
|
New cp38 wheels for rasterio 1.1.1
Hi all,
Manylinux1 and macosx wheels for Python 3.8 (tagged cp38) are on PyPI alongside the wheels for versions 3.7 and earlier that we uploaded on 2019-11-04. I hope you find them useful!
--
Sean
Hi all,
Manylinux1 and macosx wheels for Python 3.8 (tagged cp38) are on PyPI alongside the wheels for versions 3.7 and earlier that we uploaded on 2019-11-04. I hope you find them useful!
--
Sean
|
By
Sean Gillies
·
#384
·
|
|
Re: need help installing rasterio with WebP
Thank you for looking into this. I am running these commands using the conda-forge channel:
```
conda create --name rasterio_w_webp_test1 python=3.7
conda config --add channels conda-forge
conda
Thank you for looking into this. I am running these commands using the conda-forge channel:
```
conda create --name rasterio_w_webp_test1 python=3.7
conda config --add channels conda-forge
conda
|
By
tgertin@...
·
#383
·
|
|
Re: need help installing rasterio with WebP
Bitner recently added WebP to linux GDAL Conda Forge builds https://github.com/conda-forge/gdal-feedstock/pull/346 I have no idea when that will make it into Anaconda's channel though.
Howard
Bitner recently added WebP to linux GDAL Conda Forge builds https://github.com/conda-forge/gdal-feedstock/pull/346 I have no idea when that will make it into Anaconda's channel though.
Howard
|
By
Howard Butler
·
#382
·
|
|
Re: need help installing rasterio with WebP
Hi Tom,
I'm not an Anaconda user and don't know how to build packages for it. I think you'll want to find a conda channel that has rasterio packages with WebP support built in. I think that's most
Hi Tom,
I'm not an Anaconda user and don't know how to build packages for it. I think you'll want to find a conda channel that has rasterio packages with WebP support built in. I think that's most
|
By
Sean Gillies
·
#381
·
|
|
need help installing rasterio with WebP
I am using Ubuntu with Anaconda.
I would like to install rasterio with WebP. Help would be greatly appreciated on how to do this, especially some example commands.
Thanks,
Tom
I am using Ubuntu with Anaconda.
I would like to install rasterio with WebP. Help would be greatly appreciated on how to do this, especially some example commands.
Thanks,
Tom
|
By
tgertin@...
·
#380
·
|