Comments (4)
So from some random notes file I've got, the issue is related to the flags used when compiling HDF4, specifically that you have to disable netcdf in hdf4 otherwise it'll hijack the driver for netcdf files. This is a process that I've used to get everything working as expected:
apt-get install zlib1g-dev libproj-dev
curl -L "https://www.hdfgroup.org/package/source-gzip-4/?wpdmdl=13048&refresh=5c5dbfc7b25761549647815" | tar zxf - && \
cd hdf5-1.10.4 && \
./configure --with-zlib --prefix=/usr/local --enable-hl && make install
wget https://support.hdfgroup.org/ftp/HDF/HDF_Current/src/hdf-4.2.13.tar.gz && \
tar -xzf hdf-4.2.13.tar.gz && cd hdf-4.2.13 && \
./configure --enable-shared --disable-netcdf --disable-fortran --prefix=${H4DIR} && \
make install
export H4DIR=/usr/local
export H5DIR=/usr/local
wget https://github.com/Unidata/netcdf-c/archive/v4.6.2-rc1.tar.gz && \
tar -xzf v4.6.2-rc1.tar.gz && \
cd netcdf-c-4.6.2-rc1/ && \
CPPFLAGS='-I${H5DIR}/include -I${H4DIR}/include' LDFLAGS='-L${H5DIR}/lib -L${H4DIR}/lib -lcurl' ./configure --enable-hdf4 --enable-hdf4-file-tests \
--enable-hdf4 --enable-hdf4-file-tests --prefix /usr/local/ && \
make install
# This needs to return with 0 errors, otherwise it won't work.
make check
curl -L http://download.osgeo.org/gdal/2.4.0/gdal-2.4.0.tar.gz | tar zxf - && \
cd gdal-2.4.0/ && \
./configure --prefix=/usr/local --with-python=python3.6 \
--with-ogr \
--with-geos \
--with-expat \
--with-libz=internal \
--with-libtiff=internal \
--with-geotiff=internal \
--with-netcdf=/usr/local/ \
--with-png=internal \
--with-jpeg=internal \
--with-hdf4=/usr/local/ \
--with-hdf5=/usr/local/ \
--with-jasper \
--with-curl \
--with-sqlite3 \
--with-proj
make -j4 && \
make install && \
cd swig/python &&
python setup.py install
from rioxarray.
Thanks for the info @omad! @alfredoahds did you have to do something related to this for a GDAL build?
from rioxarray.
I've dealt with this issue before, but I haven't had to handle it in a CI build so I don't have a quick snippet that would fix it. Let me see if I can dig up the build opts I used.
from rioxarray.
Resolved by conda-forge/gdal-feedstock#279
from rioxarray.
Related Issues (20)
- ENH: Support src_geoloc_array for 2D coordinates
- rioxarray.open_rasterio(file) doesn't work HOT 1
- Support GCPs without known z coordinate HOT 3
- `spatial_ref` coordinate not accessible after saving dataset HOT 2
- Add a rio.fill.fillnodata-based nodata interpolation in addition to existing scipy-based HOT 1
- write somewhere in the documentation that extentions are not respecting F401
- Rename bands as variables using long_name attribute HOT 8
- typo in docs
- `rio.transform()` does not retrieve exact transform stored in `rio.write_transform()` HOT 2
- Document difference between `set_crs` and `write_crs` HOT 4
- Typo in docs: longitute
- Fail to reproject and reproject_match a dataset with rotation affine. HOT 3
- reproject_match renames dims HOT 2
- Xarray padding with mode='reflect'
- Padding and Croping doesn't end up same result HOT 2
- overview_level failing in xarray with engine='rasterio' due to missing doc? HOT 2
- Rio array merge missing HOT 3
- Delayed/chunked opening (sentinel) SAFE data with bands as variables fails HOT 1
- `reproject_match` raises `MissingSpatialDimensionError` with spatial dims set HOT 1
- Save larger raster with zstd compression writes dirty block HOT 3
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 rioxarray.