WSL/SLF GitLab Repository

Commit 22f58077 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Handle TSOIL output with customized gradients

parent 3e8d7ed0
......@@ -596,6 +596,15 @@ void PNGIO::write2DGrid(const Grid2DObject& grid_in, const MeteoGrids::Parameter
max -= Cst::t_water_freezing_pt;
}
gradient.set(Gradient::freeze, min, max, autoscale);
} else if (parameter==MeteoGrids::TSOIL) {
grid.grid2D -= Cst::t_water_freezing_pt; //convert to celsius
if (!autoscale) {
min = -5.; max = 5.;
} else {
min -= Cst::t_water_freezing_pt;
max -= Cst::t_water_freezing_pt;
}
gradient.set(Gradient::heat, min, max, autoscale);
} else if (parameter==MeteoGrids::RH) {
if (!autoscale) {
min = 0.; max = 1.;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment