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

Fix issues in cubed-sphere regridding #311

Merged
merged 6 commits into from
Apr 26, 2024

Conversation

yuanjianz
Copy link
Contributor

@yuanjianz yuanjianz commented Apr 9, 2024

Name and Institution (Required)

Name: Yuanjian Zhang
Institution: WashU

Confirm you have reviewed the following documentation

Describe the update

Fixed bugs about cube-sphere regridding formatting mentioned in #310

Expected changes

  1. Now cube-sphere regridding in file_regrid would have correct shape of value array for single level plotting in single_panel.
  2. Now compare_single_level will automatically choose the higher resolution between two standard cube-sphere grids, and also having correct unflipped absdiff and fracdiff. (see the figure below)
  3. Now will not trigger renaming error when 2D data (Emissions, column AODs) that needs regridding is passed to compare_single_level.
  4. delete code for quiting benchmark (which is already included in dev branch)

image

Reference(s)

None

Related Github Issue(s)

#310

Enabled compare plots for 2D variables between two different cube-sphere resolutions.
Cube-sphere dimensions' sequence was reverse.
Enabling versatile reshaping handling.
Correct automatic regridding decision process to match documentation.
@yantosca yantosca changed the title Bugfix/cube sphere regridding Fix issues in cubed-sphere regridding Apr 10, 2024
@yantosca yantosca changed the base branch from main to dev April 10, 2024 13:49
@yantosca yantosca self-assigned this Apr 10, 2024
@yantosca yantosca added topic: Cubed-Sphere Grid Pertains to cubed-sphere grids and/or regridding topic: Regridding Issues pertaining to horizontal & vertical regridding category: Bug Fix Fixes a bug that was previously reported labels Apr 10, 2024
@yantosca yantosca added this to the 1.5.0 milestone Apr 10, 2024
Copy link
Contributor

@yantosca yantosca left a comment

Choose a reason for hiding this comment

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

Thanks @yuanjianz for looking into this. I'll test it and then merge into the gcpy dev branch.

@yuanjianz yuanjianz marked this pull request as draft April 11, 2024 16:44
@yuanjianz yuanjianz marked this pull request as ready for review April 11, 2024 16:52
@lizziel lizziel assigned lizziel and unassigned yantosca Apr 16, 2024
yantosca added a commit that referenced this pull request Apr 26, 2024
This merge brings PR # (Fix issues in cubed-sphere regridding, by
@yuanjianz) into the GCPy 1.5.0 development stream.

This PR does the following:

1. Now cube-sphere regridding in file_regrid would have correct shape
   of value array for single level plotting in single_panel.

2. Now compare_single_level will automatically choose the higher resolution
   between two standard cube-sphere grids, and also having correct
   unflipped absdiff and fracdiff.

3. Now will not trigger renaming error when 2D data (Emissions, column AODs)
   that needs regridding is passed to compare_single_level.

4. Delete code for quiting benchmark (which is already included in dev branch)

Signed-off-by: Bob Yantosca <[email protected]>
@yantosca yantosca merged commit f885521 into geoschem:dev Apr 26, 2024
yantosca added a commit that referenced this pull request Apr 26, 2024
gcpy/file_regrid.py
- Add if statements to test if lat_bnds and lon_bnds are in the data
  variables of the dataset before trying to drop them from the dataset.

CHANGELOG.md
- Updated accordingly

Signed-off-by: Bob Yantosca <[email protected]>
Now allow make_regridder_L2L to use nearest_s2d regridding

gcpy/regrid.py
-
@yuanjianz yuanjianz deleted the bugfix/cube-sphere-regridding branch May 31, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Fix Fixes a bug that was previously reported topic: Cubed-Sphere Grid Pertains to cubed-sphere grids and/or regridding topic: Regridding Issues pertaining to horizontal & vertical regridding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants