-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation of rasterio via conda-forge triggers a dysfunction of rioxarray.open_rasterio(file) #292
Comments
Could you post the error message you've been getting? That build |
Hmm ok, I found that Also, just checking if you are opening the NetCDF from a remote HTTP url? Also, what is the structure inside your NetCDF file (e.g. number of dimensions). |
Ok, so
Other python deps: I downloaded my file from https://www.gloh2o.org/mswep/ , then I open it from my hard drive
|
@PerrineFreydier is this issue still valid for you? |
Solution to issue cannot be found in the documentation.
Issue
This function
myfile=whatever.nc
mydata = rioxarray.open_rasterio(myfile)
doesn't work in my environnement that I created with the command conda install conda-forge::rasterio
But, if specify in the command, rasterio=1.3.9=py311hd1b6236_0, then, the rioxarray.open_rasterio function works.
So, it seems that the problem comes from the specific version of rasterio that is automatically generated by the conda-forge channel. It takes the py311h02f6225_2 instead of the py311hd1b6236_0
My configuration with the environnment that doesn't work :
rioxarray 0.15.0 pyhd8ed1ab_0 conda-forge
rasterio 1.3.9 py311h02f6225_2 conda-forge
gdal 3.8.2 py311hff9a05f_1 conda-forge
python 3 11 5
Windows-10-10.0.19045-SP0
Installation method :
I both tried in a command line
conda create -n myenv python=3.11 numpy jupyter geopandas shapely pyrosm stonesoup gpxpy pandas xarray rasterio rasterstats rioxarray hvplot plotly geoviews osmnx pyarrow folium seaborn xlsxwriter geojson python-kaleido
or with a yml file :
name: myenv
channels:
conda-forge
defaults
dependencies:
python=3.11.5
numpy
jupyter
geopandas
shapely
pyrosm
stonesoup
gpxpy
pandas
xarray
rasterio
rasterstats
rioxarray
hvplot
plotly
geoviews
osmnx
pyarrow
folium
seaborn
xlsxwriter
geojson
python-kaleido
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: