-
Notifications
You must be signed in to change notification settings - Fork 25
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
How to integrate intake-stac and geopandas #36
Comments
I think this is a great idea. Intake-esm does something similar, providing a pandas DataFrame as an attribute on the catalog. This allows intake-esm to use Pandas query logic for search/subsetting of the catalog. The awkward part is figuring out how to move between the two forms of the catalog (intake and DataFrame). Perhaps a good starting point would be |
What is the expected behavior of items.save('subset.geojson')
gf = gpd.read_file('subset.geojson') the created "assets": {
"index": {
"type": "text/html",
"title": "HTML index page",
"href": "https://landsat-pds.s3.amazonaws.com/c1/L8/162/068/LC08_L1TP_162068_20190530_20190605_01_T1/LC08_L1TP_162068_20190530_20190605_01_T1_MTL.txt"
},
"thumbnail": {
"title": "Thumbnail image",
"type": "image/jpeg",
"href": "https://landsat-pds.s3.amazonaws.com/c1/L8/162/068/LC08_L1TP_162068_20190530_20190605_01_T1/LC08_L1TP_162068_20190530_20190605_01_T1_thumb_large.jpg"
}, I presume that this is extra information (useful in STAC context), but unrecognizable to GeoPandas. So, how do we construct the |
Just wanted to note the current syntax here is giving a futurewarning: intake-stac/intake_stac/catalog.py Lines 203 to 204 in c1a65ce
it's an easy fix, we just need to chage to |
Converting STAC catalogs (JSON) to intake catalogs is great for facilitating browsing images with intake.gui and loading remote data directly into xarray objects. When loading data returned from a dynamic API like sat-search (radiantearth/stac-spec#691), we could also take advantage of Geopandas for querying the catalog and visualizing metadata, but currently (0.2.2) the integration is a bit awkward:
It would be great to easily load results.items() into a geodataframe directly
This works and provides a very convenient tabular HTML display
We could consider adding the same geopandas HTML view directly to the catalog and LocalCatalogEntry objects
Enabling geopandas-like methods on an
Intake catalog: <class 'satstac.itemcollection.ItemCollection
would be very useful! Maybe it's best to just add a cat.to_geopandas() function to enable things like the following?:The text was updated successfully, but these errors were encountered: