Commit 254fddc4c5d5049b13c8062225b7417881b18d79

Authored by Benjamin Renard
1 parent f5f79ff5

Apply fill value for maglib parameters values

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
src/ExternLib/Maglib/Posmag.hh
@@ -146,6 +146,10 @@ namespace AMDA { @@ -146,6 +146,10 @@ namespace AMDA {
146 _isatex, _magout, 146 _isatex, _magout,
147 tgl, flg, xlamb,ifail); 147 tgl, flg, xlamb,ifail);
148 148
  149 + tgl = (std::abs(999.-tgl) < 0.001) ? nan("") : tgl;
  150 + flg = (std::abs(999.-flg) < 0.001) ? nan("") : flg;
  151 + xlamb = xlamb*180/ (2*std::asin(1.0));
  152 + xlamb = (std::abs(999.-xlamb) < 0.001) ? nan("") : xlamb;
149 153
150 // test results shud be as 154 // test results shud be as
151 /** 155 /**
@@ -162,7 +166,7 @@ namespace AMDA { @@ -162,7 +166,7 @@ namespace AMDA {
162 tglc 15.24 166 tglc 15.24
163 */ 167 */
164 DataType tgl_res = tgl; 168 DataType tgl_res = tgl;
165 - DataType xlamb_res = (DataType) xlamb*180/ (2*std::asin(1.0)); 169 + DataType xlamb_res = (DataType) xlamb;
166 DataType flg_res = (DataType) flg; 170 DataType flg_res = (DataType) flg;
167 _paramOutput->pushTime(crtTime); 171 _paramOutput->pushTime(crtTime);
168 pushData(tgl_res, xlamb_res, flg_res); 172 pushData(tgl_res, xlamb_res, flg_res);