You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is smaller issue, but would be nice if the examples related to this are updated, because for data returned by lulc = gh.nlcd_bygeom(basins, 100, years={"cover": [2016, 2019]}), the keys are now 'USGS-01031450', instead of just '01031450'
Environment
SYS INFO
commit: None
python: 3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:35:20) [Clang 16.0.6 ]
python-bits: 64
OS: Darwin
OS-release: 23.6.0
machine: arm64
processor: arm
byteorder: little
LC_ALL: None
LANG: None
LOCALE: (None, 'UTF-8')
MRLC recently made some changes to their web services so previous versions of HyRiver, which you have installed, won't work anymore for getting NLCD. So, you need to update HRiver packages to the latest version (0.18) and it should work.
Regarding the keys, it's based on the index of your input gdf. So, you can change the index of the gdf to whatever you want before passing it to the nlcd function.
What happened?
pygeohydro fails when trying to calculate cover statistics.
What did you expect to happen?
Stats(classes={'Open Water': 3.218275304968691, 'Developed, Open Space': 1.6128251635756874, 'Developed, Low Intensity': 0.5524352553716665, 'Developed, Medium Intensity': 0.2678054930087095, 'Developed, High Intensity': 0.038027458129463905, 'Barren Land (Rock/Sand/Clay)': 0.0977190439205618, 'Deciduous Forest': 41.72741457073914, 'Evergreen Forest': 29.33253744552278, 'Mixed Forest': 14.194382537791228, 'Shrub-Forest': 0.692330207399452, 'Herbaceous-Forest': 0.33994242873308644, 'Shrub/Scrub': 0.05001186917632526, 'Grassland/Herbaceous': 0.18022710458933802, 'Pasture/Hay': 0.4438841476202877, 'Cultivated Crops': 0.008296899955519398, 'Woody Wetlands': 6.641437944950068, 'Emergent Herbaceous Wetlands': 0.6024471245479918}, categories={'Water': 3.218275304968691, 'Developed': 2.471093370085527, 'Barren': 0.0977190439205618, 'Forest': 86.28660719018569, 'Shrubland': 0.05001186917632526, 'Herbaceous': 0.18022710458933802, 'Planted/Cultivated': 0.4521810475758071, 'Wetlands': 7.24388506949806})
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
This is smaller issue, but would be nice if the examples related to this are updated, because for data returned by
lulc = gh.nlcd_bygeom(basins, 100, years={"cover": [2016, 2019]})
, the keys are now 'USGS-01031450', instead of just '01031450'Environment
SYS INFO
commit: None
python: 3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:35:20) [Clang 16.0.6 ]
python-bits: 64
OS: Darwin
OS-release: 23.6.0
machine: arm64
processor: arm
byteorder: little
LC_ALL: None
LANG: None
LOCALE: (None, 'UTF-8')
PACKAGE VERSION
async-retriever 0.16.1
pygeoogc 0.16.3
pygeoutils 0.16.3
py3dep 0.16.3
pynhd 0.16.3
pygridmet 0.16.0
pydaymet 0.16.3
hydrosignatures 0.16.0
pynldas2 N/A
pygeohydro 0.16.5
aiohttp 3.9.5
aiohttp-client-cache 0.11.0
aiosqlite 0.20.0
cytoolz 0.12.3
ujson 5.10.0
defusedxml 0.7.1
joblib 1.4.2
multidict 6.0.5
owslib 0.31.0
pyproj 3.6.1
requests 2.32.2
requests-cache 1.2.0
shapely 2.0.4
url-normalize 1.4.3
urllib3 2.2.1
yarl 1.9.4
geopandas 0.14.4
netcdf4 1.6.5
numpy 1.26.4
rasterio 1.3.10
rioxarray 0.15.5
scipy 1.13.1
xarray 2024.5.0
click 8.1.7
pyflwdir N/A
networkx 3.3
pyarrow 16.1.0
folium 0.16.0
h5netcdf 1.3.0
matplotlib 3.5.3
pandas 2.2.2
numba 0.59.1
bottleneck N/A
py7zr N/A
pyogrio 0.8.0
The text was updated successfully, but these errors were encountered: