Commit 254fddc4c5d5049b13c8062225b7417881b18d79
1 parent
f5f79ff5
Exists in
master
and in
56 other branches
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 | 146 | _isatex, _magout, |
147 | 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 | 154 | // test results shud be as |
151 | 155 | /** |
... | ... | @@ -162,7 +166,7 @@ namespace AMDA { |
162 | 166 | tglc 15.24 |
163 | 167 | */ |
164 | 168 | DataType tgl_res = tgl; |
165 | - DataType xlamb_res = (DataType) xlamb*180/ (2*std::asin(1.0)); | |
169 | + DataType xlamb_res = (DataType) xlamb; | |
166 | 170 | DataType flg_res = (DataType) flg; |
167 | 171 | _paramOutput->pushTime(crtTime); |
168 | 172 | pushData(tgl_res, xlamb_res, flg_res); | ... | ... |