-
Notifications
You must be signed in to change notification settings - Fork 9
Interpolate State to Gaussian Grid #1212
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c248364
Add ConvertToStructuredGrid File
412bbd1
Add ConvertToStructuredGrid File and CMakeFile Edit
b62ae32
ConvertToStructuredGrid File and CMakeFile Final Edits
de4d935
Add Structured Grid Code and Edit CMake file accordingly
6109816
Add Structured Grid Code and Edit CMake file accordingly
ed8215f
Date Edit to ConvertStructuredGrid File
ba9f04f
Merge branch 'develop' into feature/add-structured-grid
guillaumevernieres 6207ee2
added converttogauss test
guillaumevernieres ec24826
Merge branch 'develop' into feature/add-structured-grid
shlyaeva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| /* | ||
| * (C) Copyright 2017-2024 UCAR | ||
| * | ||
| * This software is licensed under the terms of the Apache Licence Version 2.0 | ||
| * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
| */ | ||
|
|
||
|
|
||
| #include "oops/runs/ConvertToStructuredGrid.h" | ||
| #include "oops/runs/Run.h" | ||
| #include "soca/Traits.h" | ||
|
|
||
| int main(int argc, char ** argv) { | ||
| oops::Run run(argc, argv); | ||
| oops::ConvertToStructuredGrid<soca::Traits> converttostructuredgrid; | ||
| return run.execute(converttostructuredgrid); | ||
| } | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| states to structured grid: | ||
| - state geometry: | ||
| geom_grid_file: data_generated/gridgen/soca_gridspec.72x35x25.nc | ||
| mom6_input_nml: data_static/72x35x25/input.nml | ||
| fields metadata: data_static/fields_metadata.yml | ||
|
|
||
| state: | ||
| read_from_file: 1 | ||
| basename: data_static/72x35x25/restarts/ | ||
| ocn_filename: MOM.res.nc | ||
| ice_filename: cice.res.nc | ||
| sfc_filename: sfc.res.nc | ||
| date: &bkg_date 2018-04-15T00:00:00Z | ||
| state variables: | ||
| - sea_surface_height_above_geoid | ||
| - sea_water_potential_temperature | ||
| - sea_water_salinity | ||
| - sea_water_cell_thickness | ||
| - sea_ice_area_fraction | ||
| - sea_water_depth | ||
|
|
||
| structured grid interpolation: | ||
| grid type: regular gaussian | ||
| local interpolator type: atlas interpolator | ||
| interpolation method: | ||
| type: finite-element | ||
| number of latitude gridpoints: 12 | ||
| variables to output: | ||
| - sea_surface_height_above_geoid | ||
| - sea_water_potential_temperature | ||
| - sea_water_salinity | ||
| - sea_ice_area_fraction | ||
| all model levels: true | ||
| bottom model level: false | ||
| datapath: data_output/ | ||
| prefix: converttogauss | ||
| test: | ||
| reference filename: testref/converttogauss.test | ||
| test output filename: testoutput/converttogauss.test | ||
| float relative tolerance: 1.0e-3 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| StructuredGridWriter::<SOCA> | ||
| Grid Resolution: 12 | ||
| Variables: 4 variables: sea_surface_height_above_geoid, sea_water_potential_temperature, sea_water_salinity, sea_ice_area_fraction | ||
| Output on Levels: All Model Levels |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.