WSL/SLF GitLab Repository

Commit 4db92a06 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

The fixed scale values in PNGIO have been changed, hoping to get better, more...

The fixed scale values in PNGIO have been changed, hoping to get better, more relevant plots. A few warnings have been removed (found with VC++).
parent 3086970d
......@@ -290,6 +290,8 @@ class ConfigProxy {
proxycfg.getValue(key, section, tmp, opt);
return tmp;
}
ConfigProxy operator =(const ConfigProxy& /*i_cfg*/) {return *this;} //making VC++ happy...
};
} //end namespace mio
......
......@@ -154,7 +154,7 @@ double legend::getLegendWidth() {
void legend::writeLine(const double& val, const unsigned int& px_row)
{
std::stringstream ss;
const unsigned int precision = text_chars_nb-6; //full width - (sgn, dot, "e", sgn, two digits exponent)
//const unsigned int precision = text_chars_nb-6; //full width - (sgn, dot, "e", sgn, two digits exponent)
//ss << std::setfill (' ') << std::setw(text_chars_nb) << std::left << std::setprecision(precision) << val << std::endl; //improve this format...
ss << std::setfill (' ') << std::setw(text_chars_nb) << std::left << val << std::endl;
......
......@@ -496,13 +496,13 @@ void PNGIO::write2DGrid(const Grid2DObject& grid_in, const MeteoGrids::Parameter
gradient.set(Gradient::azi, min, max, autoscale);
} else if(parameter==MeteoGrids::HS) {
if(!autoscale) {
min = 0.; max = 3.5;
min = 0.; max = 2.5;
}
gradient.set(Gradient::blue, min, max, autoscale);
} else if(parameter==MeteoGrids::TA) {
grid.grid2D -= Cst::t_water_freezing_pt; //convert to celsius
if(!autoscale) {
min = -10.; max = 10.;
min = -15.; max = 15.;
} else {
min -= Cst::t_water_freezing_pt;
max -= Cst::t_water_freezing_pt;
......@@ -511,7 +511,7 @@ void PNGIO::write2DGrid(const Grid2DObject& grid_in, const MeteoGrids::Parameter
} else if(parameter==MeteoGrids::TSS) {
grid.grid2D -= Cst::t_water_freezing_pt; //convert to celsius
if(!autoscale) {
min = -10.; max = 10.;
min = -20.; max = 5.;
} else {
min -= Cst::t_water_freezing_pt;
max -= Cst::t_water_freezing_pt;
......@@ -529,7 +529,7 @@ void PNGIO::write2DGrid(const Grid2DObject& grid_in, const MeteoGrids::Parameter
gradient.set(Gradient::bg_isomorphic, min, max, autoscale);
} else if(parameter==MeteoGrids::ISWR) {
if(!autoscale) {
min = 0.; max = 1000.;
min = 0.; max = 800.;
}
gradient.set(Gradient::heat, min, max, autoscale);
} else if(parameter==MeteoGrids::ILWR) {
......@@ -539,7 +539,7 @@ void PNGIO::write2DGrid(const Grid2DObject& grid_in, const MeteoGrids::Parameter
gradient.set(Gradient::heat, min, max, autoscale);
} else if(parameter==MeteoGrids::SWE) {
if(!autoscale) {
min = 0.; max = 2000.;
min = 0.; max = 250.;
}
gradient.set(Gradient::blue, min, max, autoscale);
} else {
......
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