-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce z_sampling_method, remove disable_vertical_interpolation
The NetCDF writer was originally designed for ClimaAtmos. As such, it uses some fake pressure levels for vertical sampling as default. This is generally not applicable/useful. This commit generalized the method to sample points on the vertical direction introducing a new type `AbstractZSamplingMethod`. `AbstractZSamplingMethod` has to concrete subtypes: - `LevelsMethod` (equivalent to `disable_vertical_interpolation`) - `FakePressureLevelsMethod` (equivalent to previously default behavior) This opens up the possibility to also define `LinearMethod`, for linear sampling, and `LogMethod`, for log sampling. The default was changed to `LevelsMethod` and `disable_vertical_interpolation` was deprecated.
- Loading branch information
Showing
6 changed files
with
114 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# NEWS | ||
|
||
v0.2.0 | ||
------- | ||
|
||
- ![][badge-💥breaking]The `NetCDFWriter` now outputs points on the vertical levels by default. | ||
- ![][badge-💥breaking] `disable_vertical_interpolation` is removed in favor of `z_sampling_method`. | ||
|
||
[badge-💥breaking]: https://img.shields.io/badge/💥BREAKING-red.svg |
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
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