-
Notifications
You must be signed in to change notification settings - Fork 28
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
1025/caching cloud #1026
1025/caching cloud #1026
Conversation
1a50440
to
9cff0b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good Jaap. I don't know enough about how vrt files work to comment very semantically but the code looks good to me. I have a few small questions, once those are resolved I'll be happy to approve
Co-authored-by: Sam Vente <savente93@proton.me>
… 1025/caching_cloud
if vrt_ref_el is None: | ||
raise ValueError(f"Could not find Source File in vrt: {vrt_uri}.") | ||
vrt_ref: str = vrt_ref_el.text.replace("\\", os.sep) # dewindowsify | ||
vrt_relative: int = int(vrt_ref_el.get("relativeToVRT")) # 0 or 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why int and not bool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The source format gives either 0 or 1, I like to represent it that way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue addressed
Fixes #1025
Explanation
Wanted to fix the AWS data catalog.
Noticed that the dataset tested used a gdal virtual filesystem. This messes with the caching settings. Of course this path is different in windows and linux, so the code had to be revised.
Then that the .vrt caching did not cache at all: the
intersects
in-line functions was not correct and skipped all caching.The vrt also had to be altered to account for the cached files.
General Checklist
v1
Additional Notes (optional)
I did change the data catalog for GCP CMIP6 data. But as we are still in alpha, i do not release a new version.