Skip to content
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

raster.sample("usgs3dep-1meter-dem") requires passing "catalog" kwarg #443

Open
scottyhq opened this issue Nov 6, 2024 · 1 comment
Open

Comments

@scottyhq
Copy link
Contributor

scottyhq commented Nov 6, 2024

I was surprised that this returns an empty dataframe and doesn't appear to have any logging information even with sliderule.init(verbose=True)

gdf = raster.sample("usgs3dep-1meter-dem", [[-108.0,39.0]])

The API docs don't mention this:
https://slideruleearth.io/web/rtd/api_reference/raster.html#sliderule.raster.sample

I guess 3dep is also a 'special case' like HLS:
https://slideruleearth.io/web/rtd/user_guide/GeoRaster.html#special-case-hls

I figured out to pass the catalog by looking at the tests:

def test_sample(self, init):
geojson = earthdata.tnm(short_name='Digital Elevation Model (DEM) 1 meter', polygon=region)
gdf = raster.sample("usgs3dep-1meter-dem", [[-108.0,39.0]], {"catalog": geojson})

link to this issue on other ideas for raster docs improvements #372

@scottyhq
Copy link
Contributor Author

scottyhq commented Dec 17, 2024

Tacking on another note to document "single_stop": True
(added in #422)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant