Closed sheilasaia closed 5 months ago
I couldn't reproduce your error. This works without any warning or error:
Can you please show the output of pygeohydro.show_versions()
.
Thank you for looking into the error and my sincere appologies for the delayed reply. My output for pygeohydro.show_versions()
is below:
>>> pygeohydro.show_versions()
SYS INFO
--------
commit: 2fde6ddc277ae97cfc921e07e8de0b691e84853c
python: 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:42:31) [MSC v.1937 64 bit (AMD64)]
python-bits: 64
OS: Windows
OS-release: 11
machine: AMD64
processor: Intel64 Family 6 Model 186 Stepping 2, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: ('English_United States', '1252')
PACKAGE VERSION
-------------------------------
async-retriever 0.16.0
pygeoogc 0.16.1
pygeoutils 0.16.1
py3dep N/A
pynhd 0.16.2
pygridmet N/A
pydaymet N/A
hydrosignatures 0.16.0
pynldas2 N/A
pygeohydro 0.16.0
aiohttp 3.9.3
aiohttp-client-cache 0.11.0
aiosqlite 0.18.0
cytoolz 0.12.2
ujson 5.9.0
defusedxml 0.7.1
joblib 1.3.2
multidict 6.0.4
owslib 0.29.3
pyproj 3.6.1
requests 2.31.0
requests-cache 1.2.0
shapely 2.0.3
url-normalize 1.4.3
urllib3 2.2.1
yarl 1.9.3
geopandas 0.14.3
netcdf4 1.6.5
numpy 1.26.4
rasterio 1.3.9
rioxarray 0.15.1
scipy 1.12.0
xarray 2023.6.0
click 8.1.7
pyflwdir N/A
networkx 3.2.1
pyarrow 11.0.0
folium 0.15.1
h5netcdf 1.2.0
matplotlib 3.8.3
pandas 2.2.0
numba 0.59.0
bottleneck N/A
py7zr 0.20.8
pyogrio 0.7.2
-------------------------------
I just created a new environment just to make sure, I am using the same version as yours, and it ran without any issue again.
This is how created the env:
micromamba create -n test pygeohydro ipykernel ipywidgets pystac-client planetary-computer
Can you try again, maybe at the time you were running your code, there was a server-side issue.
Since there haven't been any updates on this, and I couldn't reproduce the error, I will close this. You are welcome to re-open if the issue persists.
What happened?
I was following the soil storage capacity tutorial and was unable to run the
pygeohydro.soil_gnatsgo()
function without getting errors. My code is below. I'm not sure if this is an issue with my conda environment or something with the gnatsgo database related so I've also provided my environment yaml and the error message. It's uploaded as a text file because I couldn't upload it as a .yaml file.I'm on Windows 11 with Python 3.12.2. I've defined my
PROJ_LIB
andPROJ_DATA
paths at the start of the script and those should be pointing to the environment created by the yaml. I've tried to update rasterio with mamba withmamba update rasterio
, but it's telling me everything is up-to-date.What did you expect to happen?
I expected to have a similar output for soil thickness as is shown in the soil storage capacity tutorial, but my code is erroring out and I'm not able to access the thickness data from gNATSGO. I've tried other STAC variables as well, but have had no luck with those either.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
Thank you for creating the HyRiver python tools and the tutorials! They are very helpful and I'm excited to use them more in my work. π¦π
Environment
sheila_env_yaml.txt