Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

These constants are available in Python, Fortran 90 and C and the user needs to compare with the appropriate constant depending on the type of the variable used. This is an example of Fortran 90 code:

HTML
<!-- HTML generated using hilite.me --><div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><pre style="margin: 0; line-height: 125%"><span style="color: #888888">
Code Block
!declare backscatter as double precision
real(kind=8), dimension(:), allocatable :: backscatter
 
!get the values
call codes_get(ibufr,precision</span>
<span style="color: #333399; font-weight: bold">real</span>(<span style="color: #007020">kind</span><span style="color: #333333">=</span><span style="color: #0000DD; font-weight: bold">8</span>), <span style="color: #008800; font-weight: bold">dimension</span>(:), <span style="color: #008800; font-weight: bold">allocatable</span> <span style="color: #008800; font-weight: bold">::</span> <span style="color: #996633">backscatter</span>
  
<span style="color: #888888">!get the values</span>
<span style="color: #008800; font-weight: bold">call </span><span style="color: #996633">codes_get</span>(<span style="color: #996633">ibufr</span>,<span style="background-color: #fff0f0">'/beamIdentifier=2/backscatter',backscatter);
do i=1,size(backscatter</span>,<span style="color: #996633">backscatter</span>);
<span style="color: #008800; font-weight: bold">do </span><span style="color: #996633">i</span><span style="color: #333333">=</span><span style="color: #0000DD; font-weight: bold">1</span>,<span style="color: #996633">size</span>(<span style="color: #996633">backscatter</span>)
    <span style="color: #888888">!compare with double precision missingmissing</span>
     if (backscatter(i)/=CODES_MISSING_DOUBLE) then
<span style="color: #008800; font-weight: bold">if</span> (<span style="color: #996633">backscatter</span>(<span style="color: #996633">i</span>)<span style="color: #333333">/=</span><span style="color: #996633">CODES_MISSING_DOUBLE</span>) <span style="color: #008800; font-weight: bold">then</span>
        <span style="color: #888888">!process non missing valuesvalues</span>
    <span  else
style="color: #008800; font-weight: bold">else</span>
        <span style="color: #888888">!process missing valuesvalues</span>
    endif
end do<span style="color: #008800; font-weight: bold">endif</span>
<span style="color: #008800; font-weight: bold">end do</span>
</pre></div>


Content by Label
showLabelsfalse
max5
spaces~usa
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("kb-how-to-article","eccbufr-faqs","keys","missing","bufr") and type = "page" and space = "UDOC"
labelskb-how-to-article

...