WSL/SLF GitLab Repository
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
meteoio
Commits
22f58077
Commit
22f58077
authored
Nov 11, 2015
by
Mathias Bavay
Browse files
Handle TSOIL output with customized gradients
parent
3e8d7ed0
Changes
1
Hide whitespace changes
Inline
Side-by-side
meteoio/plugins/PNGIO.cc
View file @
22f58077
...
...
@@ -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.
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment