-
Notifications
You must be signed in to change notification settings - Fork 16
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
copernicusmarine speed up retrieval of time extents #1082
Comments
Hi! You question is about this isn't it:
Indeed we don't have the coordinates for native data because actually in stac we are parsing the coordinates per assets and in the native data assets there are no coordinates. I am not sure if this information is accurately in the metadata 🤔 (for example if the time values in the metadata are the ones of ARCO always or also from the native) About you code: as your concern:
Actually, what I have seen is the some datasets have variables with some of the coordinates. For example, variable "thetao" with have longitude, latitude, depth, time and then variable "surface_thetao", only longitude, latitude, time. The coordinates are really variable dependent. I guess there are on the same grid so yeah we could do a generic coordinate values. But I would need to check that this is indeed the case. Maybe something like: |
Thanks for your reply. Something like Some remaining questions:
|
Thanks for the issue! We will look at it :D About your questions:
Writing this I am thinking of something: maybe we could reverse the describe result to some extent 🤔 So that the get coordinates return something like:
Would it be easier to select? |
Do you mean decreasing the layering like:
Not sure if I get it completely. However, I guess any solution that makes it easier and more robust to get the metadata would be great. |
Retrieving the time extents for bio/phyc for my/my-int/anfc was very slow. A easy fix was implemented in #1058 already. However, it can be significantly faster via
copernicusmarine.describe()
, also preventing quite some unnecessary logging messages.As suggested by Leïla from copernicusmarine servicedesk, this is significantly faster:
However, the above code is a not as robust as I would prefer, so I tried an alternative method below that includes some assertions and makes more use of the copernicusmarine describe dataset structure:
@renaudjester: You might have some ideas of improving the code above. My comments in the second code block state some issues I encounter. I was hesitant to report this issue at the copernicusmarine Github, since it is not a bug or feature (at least not yet). Please let me know if you prefer that anyway or if this channel also works for you. If the above usecase is a reason to open a feature request at the copernicusmarine github, please feel free to link it to this issue also.
The text was updated successfully, but these errors were encountered: