Skip to content

Add regridding from low resolution ML (.npy) prediction to high resolution restart#7

Open
ma595 wants to merge 2 commits intomainfrom
regrid
Open

Add regridding from low resolution ML (.npy) prediction to high resolution restart#7
ma595 wants to merge 2 commits intomainfrom
regrid

Conversation

@ma595
Copy link
Member

@ma595 ma595 commented Jan 22, 2026

Initial implementation of upscaling. Pipeline consists of

  • loading predictions (and selecting some time index - doesn't have to be the last one)
  • creating a coarse restart file
  • regridding to fine resolution using xESMF.

It has been kept largely separate from the restart.py work even thought there is potential redundancy (for instance computation of density is done here with a separate EOS).

This is a functional re-implementation of David Kamm's Dinostics OOP repo and bears little resemblance to his work. I decided to do this as the Dinostics package is overkill for upscaling / regridding.

TODOs before merge:

  • xESMF regridding is outputting nans.
  • Check correspondence between the C2 file generated and the file created by Etienne and co. Compute metrics.
  • Simple set of integration tests.

Set of instructions to reproduce entire pipeline.

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