Skip to content

Conversation

@tomsail
Copy link
Collaborator

@tomsail tomsail commented May 31, 2024

Main new feature added:

  • EPSG option (in normalize.py and open_dataset)

Added tests (with Selafin files) for:

  • Default EPSG 4326
  • No EPSG --> no transformation

Bumped up the limit file size in pre-commit

(added jupyter-bokeh in the dev deps too)

def open_dataset(
path: str | os.PathLike[str],
normalize: bool = True,
source_crs: int = 4326,
Copy link
Collaborator Author

@tomsail tomsail May 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we shouldn't force on the int type here, but I didn't know how to do that.
I don't if we can use pyproj inside (and also for the typing types)



def normalize(ds: xarray.Dataset) -> xarray.Dataset:
def normalize(ds: xarray.Dataset, source_crs: int = 4326) -> xarray.Dataset:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here for the int type

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

Successfully merging this pull request may close these issues.

1 participant