-
Notifications
You must be signed in to change notification settings - Fork 2
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
Introduce z_sampling_method, remove disable_vertical_interpolation #47
Conversation
[skip ci] See breaking change: CliMA/ClimaDiagnostics.jl#47
5ed5d43
to
488d712
Compare
[skip ci] See breaking change: CliMA/ClimaDiagnostics.jl#47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small comment, there is a typo in the commit message of this PR (and same typo in the description of the PR in Conversation),
"AbstractZSamplingMethod has to concrete subtypes:"
not to, but two (2)
Thank you! |
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 two 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.
488d712
to
28e377e
Compare
[skip ci] See breaking change: CliMA/ClimaDiagnostics.jl#47
See breaking change: CliMA/ClimaDiagnostics.jl#47
See breaking change: CliMA/ClimaDiagnostics.jl#47
See breaking change: CliMA/ClimaDiagnostics.jl#47
See breaking change: CliMA/ClimaDiagnostics.jl#47
See breaking change: CliMA/ClimaDiagnostics.jl#47
See breaking change: CliMA/ClimaDiagnostics.jl#47
See breaking change: CliMA/ClimaDiagnostics.jl#47
See breaking change: CliMA/ClimaDiagnostics.jl#47
See breaking change: CliMA/ClimaDiagnostics.jl#47
See breaking change: CliMA/ClimaDiagnostics.jl#47
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 todisable_vertical_interpolation
)FakePressureLevelsMethod
(equivalent to previously default behavior)This opens up the possibility to also define
LinearMethod
, for linear sampling, andLogMethod
, for log sampling.The default was changed to
LevelsMethod
anddisable_vertical_interpolation
was deprecated.Closes #6