Giter Club home page Giter Club logo

Comments (4)

alfredoahds avatar alfredoahds commented on May 24, 2024 1

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.

snowman2 avatar snowman2 commented on May 24, 2024

Thanks for the info @omad! @alfredoahds did you have to do something related to this for a GDAL build?

from rioxarray.

alfredoahds avatar alfredoahds commented on May 24, 2024

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.

snowman2 avatar snowman2 commented on May 24, 2024

Resolved by conda-forge/gdal-feedstock#279

from rioxarray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.