Skip to content

Grib2 writer for oceanicepost #99

Merged
aerorahul merged 146 commits into
NOAA-EMC:developfrom
AminIlia-NOAA:grib2w
Feb 28, 2025
Merged

Grib2 writer for oceanicepost #99
aerorahul merged 146 commits into
NOAA-EMC:developfrom
AminIlia-NOAA:grib2w

Conversation

@AminIlia-NOAA
Copy link
Copy Markdown
Contributor

Description

A new grib2 writer added to oceanicepost module. It uses g2 library to build grib2 files. The module doesn't need any grib2 template. The module fully tested for ocean and ice post processing. It works smoothly and quickly.

Type of change

  • New feature (adds functionality)

Change characteristics

  • Is this a breaking change (a change in existing functionality)? YES
  • Does this change require a documentation update? NO

How has this been tested?

Fully tested both ocean and ice post processing modules. Grib2 files and data are generated correctly.

Checklist

  • [*] Any dependent changes have been merged and published
  • [*] My code follows the style guidelines of this project
  • [*] I have performed a self-review of my own code
  • [*] I have commented my code, particularly in hard-to-understand areas
  • [*] My changes generate no new warnings
  • [*] New and existing tests pass with my changes
  • [*] I have made corresponding changes to the documentation if necessary

Amin Ilia added 30 commits November 21, 2024 11:20
Copy link
Copy Markdown
Contributor

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

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

Some minor comments before we can merge.

Comment thread .vscode/settings.json Outdated
Comment thread src/ocnicepost.fd/ocnicepost.F90 Outdated
Comment thread src/ocnicepost.fd/ocnicepost.F90 Outdated
@AminIlia-NOAA
Copy link
Copy Markdown
Contributor Author

@aerorahul I resolved the suggestions.

Comment thread src/ocnicepost.fd/init_mod.F90 Outdated
@aerorahul
Copy link
Copy Markdown
Contributor

@aerorahul I resolved the suggestions.

@AminIlia-NOAA
Thank you for resolving the comments. I have one additional comment regarding the output in netcdf.

@AminIlia-NOAA
Copy link
Copy Markdown
Contributor Author

@aerorahul added netcdf flag with default false.

Copy link
Copy Markdown
Contributor

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

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

use netcdf (we don't have to be limited to 2-3 character names) to be more descriptive.

Comment thread parm/ocnicepost/ocean_mx025_to_0p25.nml Outdated
Comment thread parm/ocnicepost/ocnicepost.nml.jinja2 Outdated
Comment thread src/.gitignore Outdated
Comment thread src/ocnicepost.fd/init_mod.F90 Outdated
Comment thread src/ocnicepost.fd/init_mod.F90 Outdated
Comment thread src/ocnicepost.fd/ocnicepost.F90 Outdated
Comment thread src/ocnicepost.fd/ocnicepost.F90 Outdated
Comment thread src/ocnicepost.fd/ocnicepost.F90 Outdated
Comment thread parm/ocnicepost/ice_mx025_to_0p25.nml Outdated
AminIlia-NOAA and others added 10 commits February 28, 2025 10:40
change name to netcdf

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
change flag name to netcdf

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
change flag name to netcdf

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
change flag name to netcdf

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
change flag name to netcdf

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
change flag name to netcdf

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
change flag name to netcdf

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
change flag name to netcdf

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
change flag name to netcdf

Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
@AminIlia-NOAA
Copy link
Copy Markdown
Contributor Author

@aerorahul ncf was ok as fortran compiler mixed netcdf flag with necdf lib module. I changed the name of flag to netcdff.

@aerorahul
Copy link
Copy Markdown
Contributor

@aerorahul ncf was ok as fortran compiler mixed netcdf flag with necdf lib module. I changed the name of flag to netcdff.

May I suggest, in that case, to replace netcdff with write_netcdf and grib2 with write_grib2.

@AminIlia-NOAA
Copy link
Copy Markdown
Contributor Author

@aerorahul I changed the name of the flags. Please let me know if you want to request more change so I will give you the right access to edit my fork. Thanks!

Copy link
Copy Markdown
Contributor

@aerorahul aerorahul left a comment

Choose a reason for hiding this comment

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

looks good.

@aerorahul
Copy link
Copy Markdown
Contributor

Since we don't have a reviewer for the new additions of grib2 output, we will merge this PR as is and if issues arise, address them during retrospective evaluation. With this change, we will disable the generation of grib2 files via the use of wgrib2.

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.

5 participants