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

fesom1 to levels #77

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open

fesom1 to levels #77

wants to merge 48 commits into from

Conversation

pgierz
Copy link
Member

@pgierz pgierz commented Nov 20, 2024

Summary of the most important changes

Allows interpolation of data on (time, nodes_3d) to (time, nodes_2d, depth). Use the step pymorize.fesom_1p4.nodes_to_levels.

Checklist

  • I have tested the changes in this PR. (by hand)
  • I have updated the documentation.

Copilot Summary

If you have Github Co-Pilot, please include an automatically generated summary.

@pgierz
Copy link
Member Author

pgierz commented Nov 20, 2024

This pull request introduces significant enhancements and new features to the pymorize project, particularly in the cli.py and nodes_to_levels.py files. The changes include adding new dependencies, restructuring the CLI commands, and implementing a new module for converting FESOM 1.4 output data.

New Dependencies:

  • Added joblib and numpy to the list of dependencies in setup.py.

CLI Enhancements:

  • Introduced a new scripts command group in src/pymorize/cli.py to organize related commands.
  • Added a new subcommand fesom1 under the scripts group for FESOM-related operations.
  • Registered the new scripts command group with the main CLI.

New Module for FESOM 1.4:

  • Created a new module nodes_to_levels.py in src/pymorize/fesom_1p4/ that provides functionality to convert FESOM 1.4 output data from (nodes, time) to (nodes, levels, time). This includes:
    • Functions for opening, processing, and saving datasets using Xarray.
    • A function to interpolate unstructured data onto depth levels.
    • A CLI command convert to perform the conversion.

@pgierz pgierz marked this pull request as ready for review November 25, 2024 12:58
@pgierz pgierz enabled auto-merge January 9, 2025 11:11
@pgierz pgierz mentioned this pull request Jan 9, 2025
3 tasks
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.

convert fesom1 data from non-levelwise to levelwise
1 participant