Skip to content

Added TELEMAC Notebook and files - #93

Open
tomsail wants to merge 5 commits into
ec-jrc:masterfrom
tomsail:no_transform
Open

Added TELEMAC Notebook and files#93
tomsail wants to merge 5 commits into
ec-jrc:masterfrom
tomsail:no_transform

Conversation

@tomsail

@tomsail tomsail commented May 31, 2024

Copy link
Copy Markdown
Collaborator

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)

Comment thread thalassa/api.py
def open_dataset(
path: str | os.PathLike[str],
normalize: bool = True,
source_crs: int = 4326,

@tomsail tomsail May 31, 2024

Copy link
Copy Markdown
Collaborator Author

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)

Comment thread thalassa/normalization.py


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

Copy link
Copy Markdown
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