Description
Probably not something the average user is going to care about, but in exploring STAC files on my local machine, I find it hard sometimes to know which type of STAC file I'm looking at. Or if I'm trying to find the catalog, collection, or item, it might be hard to know from the command line. e.g. from Earth Engine:
file catalog.json MODIS_[MN]*
catalog.json: JSON data
MODIS_MCD43A4_006_BAI.json: HTML document, ASCII text, with very long lines
MODIS_MCD43A4_006_EVI.json: HTML document, ASCII text, with very long lines
MODIS_MCD43A4_006_NDSI.json: HTML document, ASCII text, with very long lines
MODIS_MCD43A4_006_NDVI.json: ASCII text
MODIS_MCD43A4_006_NDWI.json: HTML document, ASCII text, with very long lines
MODIS_MOD09GA_006_BAI.json: HTML document, ASCII text, with very long lines
MODIS_MOD09GA_006_EVI.json: HTML document, ASCII text, with very long lines
MODIS_MOD09GA_006_NDSI.json: HTML document, ASCII text, with very long lines
MODIS_MOD09GA_006_NDVI.json: ASCII text
MODIS_MOD09GA_006_NDWI.json: HTML document, ASCII text, with very long lines
MODIS_MOD13A1.json: HTML document, ASCII text, with very long lines
MODIS_MOD44W_MOD44W_005_2000_02_24.json: JSON data
MODIS_MYD09GA_006_BAI.json: HTML document, ASCII text, with very long lines
MODIS_MYD09GA_006_EVI.json: HTML document, ASCII text, with very long lines
MODIS_MYD09GA_006_NDSI.json: HTML document, ASCII text, with very long lines
MODIS_MYD09GA_006_NDVI.json: ASCII text
MODIS_MYD09GA_006_NDWI.json: HTML document, ASCII text, with very long lines
MODIS_MYD13A1.json: HTML document, ASCII text, with very long lines
MODIS_NTSG_MOD16A2_105.json: JSON data
This is a bummer! It would be awesome if file was able to return STAC
, the version, and one of {Catalog, Collection
, Item
}. There might be a better way, but this could possibly work for file:
- Mandate
stac_version
be 1st - Mandate
stac_type
(or some similar name) be 2nd
That runs a bit counter to the idea of the general flexibility of json, which would also be a bummer. If the idea is loosened to just letting readers know the type (like if I can read the json in some other language that doesn't have a stac library), then adding something that gives the type might be useful.
Thoughts?
Activity