No data for 2019 for a tile in a MODIS collection #136
-
So I'm looking at temperature data for a part of India and I'm not getting any results for the whole of 2019. The collection id is modis-11A1-061 and the tile id is 51025007. I am getting results for other years, and I am getting results for other tiles for 2019. When I checked with NASA's appeears service, I did get some data for 2019 for the same area (link to netcdf file below). Should I be doing something differently here? Like querying other metadata?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thanks for the clear example. I think I've confirmed the existence of at least one NetCDF file without a corresponding STAC item: import planetary_computer
import pystac_client
cc = planetary_computer.get_container_client("modiseuwest", "modis-061")
prefix = "MYD11A1/25/07/2019"
blobs = cc.list_blobs(name_starts_with=prefix)
blob = next(blobs)
print(blob.name) # MYD11A1/25/07/2019001/MYD11A1.A2019001.h25v07.061.2020342151634.hdf
import requests
item_id = blob.name.split("/")[-1].rsplit(".", 1)[0]
r = requests.get(f"https://planetarycomputer.microsoft.com/api/stac/v1/collections/modis-11A1-061/items/{item_id}")
# url: https://planetarycomputer.microsoft.com/api/stac/v1/collections/modis-11A1-061/items/MYD11A1.A2019001.h25v07.061.2020342151634
r.status_code # 404 I'll look into this more and will post an update here. |
Beta Was this translation helpful? Give feedback.
Thanks for the clear example. I think I've confirmed the existence of at least one NetCDF file without a corresponding STAC item: