-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove all unused functions from Regridder module. Used functions relocated to Utilities and FieldExchanger modules. Docs and tests appropriately updated.
- Loading branch information
1 parent
9042946
commit bc2c517
Showing
28 changed files
with
301 additions
and
1,239 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -1,35 +1,53 @@ | ||
# Regridder | ||
|
||
This module contains functions to regrid information between spaces. | ||
Many of the functions used in this module call TempestRemap functions | ||
via ClimaCoreTempestRemap wrappers. | ||
This module was removed from ClimaCoupler. Most of the functions that were | ||
inside the module are available in ClimaUtilities. Some functions were moved | ||
to other modules, and some unused functions were deleted. | ||
|
||
Information about the TempestRemap library can be found [here](https://github.com/ClimateGlobalChange/tempestremap). | ||
Multiple remapping approaches from TempestRemap have been tested with our | ||
implementation, and information about them is located [here](https://github.com/CliMA/ClimaCoupler.jl/wiki/ClimaCoupler-Lessons-Learned). | ||
## Moved Functions | ||
|
||
## Regridder API | ||
The following functions: | ||
|
||
```@docs | ||
ClimaCoupler.Regridder.write_to_hdf5 | ||
ClimaCoupler.Regridder.read_from_hdf5 | ||
```Julia | ||
ClimaCoupler.Regridder.dummmy_remap! | ||
ClimaCoupler.Regridder.remap_field_cgll_to_rll | ||
ClimaCoupler.Regridder.land_fraction | ||
ClimaCoupler.Regridder.update_surface_fractions! | ||
ClimaCoupler.Regridder.combine_surfaces! | ||
ClimaCoupler.Regridder.combine_surfaces_from_sol! | ||
ClimaCoupler.Regridder.binary_mask | ||
``` | ||
|
||
are now: | ||
|
||
## Regridder Internal Functions | ||
```Julia | ||
ClimaCoupler.FieldExchanger.dummmy_remap! | ||
ClimaCoupler.FieldExchanger.update_surface_fractions! | ||
ClimaCoupler.FieldExchanger.combine_surfaces! | ||
ClimaCoupler.Utilities.binary_mask | ||
``` | ||
|
||
```@docs | ||
ClimaCoupler.Regridder.reshape_cgll_sparse_to_field! | ||
## Deleted Functions | ||
|
||
The following functions were removed from ClimaCoupler and have an equivalent in ClimaUtilities: | ||
|
||
```Julia | ||
ClimaCoupler.Regridder.write_to_hdf5 | ||
ClimaCoupler.Regridder.read_from_hdf5 | ||
ClimaCoupler.Regridder.hdwrite_regridfile_rll_to_cgll | ||
ClimaCoupler.Regridder.reshape_cgll_sparse_to_field! | ||
ClimaCoupler.Regridder.get_time | ||
``` | ||
|
||
Note that the the `hdwrite_regridfile_rll_to_cgll` does not support 3d fields, but the removed function from the Regridder module did. | ||
|
||
The following functions were deleted and do not have an equivalent in ClimaUtilities: | ||
|
||
```julia | ||
ClimaCoupler.Regridder.remap_field_cgll_to_rll | ||
ClimaCoupler.Regridder.land_fraction | ||
ClimaCoupler.Regridder.combine_surfaces_from_sol! | ||
ClimaCoupler.Regridder.write_datafile_cc | ||
ClimaCoupler.Regridder.binary_mask | ||
ClimaCoupler.Regridder.read_remapped_field | ||
ClimaCoupler.Regridder.get_coords | ||
ClimaCoupler.Regridder.get_time | ||
``` | ||
|
||
All the above functions can be found in commit | ||
`9e5bf061f34659188485f066bc322c77bcc0f1fa` |
This file contains 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 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
Oops, something went wrong.