Skip to content
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

xarray_open_dataset when using a reference file should allow for anon = True or False #9

Open
abarciauskas-bgse opened this issue May 30, 2023 · 0 comments

Comments

@abarciauskas-bgse
Copy link
Contributor

This anon parameter should not be hardcoded as True, as it is right now: https://github.com/developmentseed/titiler-xarray/blob/main/titiler/xarray/reader.py#L37. This is because some datasets are in protected buckets and the titiler must have access to them to properly interpret kerchunk references.

I also experienced odd behavior when it is set as True and needs to be False.

When it's True, it will open the dataset but with the lat and lon incorrectly decoded:

Coordinates:
  * lat        (lat) float64 0.0 1.514e+241 0.0 ... 2.555e-314 2.167e-314
  * lon        (lon) float64 0.0 -3.405e-130 0.0 ... 1.141e+243 7.982e-289
  * time       (time) datetime64[ns] 1950-01-16T12:00:00 ... 1951-12-16T12:00:00

When it is False, it properly decodes the coordinates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant