-
Notifications
You must be signed in to change notification settings - Fork 12
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() index is lastUpdated datetime rather than acquired datetime #444
Comments
I am attaching an example of one item returned from a 1 meter 3dep TNM query. Please note that there are three dates provided: publicationDate, lastUpdateed, dateCreated. There are no acquisition dates available. { |
Yes, it's really unfortunate. I sent an email to USGS TNM support and cc'd you as it would be best if the metadata were present in the API response. It is possible to workaround this by getting collect_start and collect_end from the import pandas as pd
df = pd.read_csv('https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/metadata/WESM.csv')
df[df.project == 'LA_2021GreaterNewOrleans_C22']
df.iloc[0] |
I think this is a shortcoming of the national map API rather than sliderule, but wanted to document that it's not obvious timestamps returned from raster.sample are when the product was 'last updated' rather than when the data was acquired.
This is inconsistent with other APIs where 'time' is observation time of the data.
The timestamps are coming from here
sliderule/clients/python/sliderule/earthdata.py
Line 788 in 20a5b41
Unfortunately I don't think the national map api keeps track of the nominal acquisition date of a given 1m tile?...
The text was updated successfully, but these errors were encountered: