-
Notifications
You must be signed in to change notification settings - Fork 9
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
pyproj.exceptions.CRSError Due to Invalid EPSG:None Projection in MODIS-13Q1-061 Dataset #414
Comments
Hi @simonMadec, could you please share the output of import pystac # Gustavo added added this import
# Set the date time
start_date = "2023-01-01"
end_date = "2024-01-01"
catalog = pystac_client.Client.open(
"https://planetarycomputer.microsoft.com/api/stac/v1",
modifier=planetary_computer.sign_inplace,
)
## Parametre
time_range = f'{start_date}/{end_date}'
image_select = "MOD" #filtre collection
##search in catalog, bbox remained the same as in the example notebook.
search = catalog.search(
collections=["modis-13Q1-061"], bbox=bbox, datetime=time_range)
items = search.get_all_items()
## Filter search
mod_items = list(filter(lambda x: x.id.startswith(image_select), items))
items = pystac.ItemCollection(mod_items)
### dl data
items_dict = dict()
for i in range(len(items)):
items_dict[i] = items[i]
data = odc.stac.load(
items_dict.values(),
crs="EPSG:3857",
bbox=bbox,
resolution=250, ## per pixel
bands=["250m_16_days_NDVI"],#bande to select
nodata=-3000) And this is my
None of the MODIS items have a |
Yes, but I was using docker so ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am querying products from the modis-13Q1-061 collection using platform arguments and loading them with odc-stac into xarray.
However, when I try to load the data, I encounter the following error:
I noticed that MODIS items in the query results do not have a proper projection assigned. The proj:code property for items is set to "EPSG:None", which causes the error
mod_items[1].properties['proj:code'] is "EPSG:None"
Here is the code I am using, which fails when loading the data:
The text was updated successfully, but these errors were encountered: