<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1464973406963_3002"><span>Hi Mary.&nbsp;</span></div><div id="yui_3_16_0_ym19_1_1464973406963_3002"><span id="yui_3_16_0_ym19_1_1464973406963_3205">There was some problem with the earlier script that I sent you. Pl s look at this one.&nbsp;</span></div><div id="yui_3_16_0_ym19_1_1464973406963_3002" dir="ltr"><span>this is the output.&nbsp;</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3534">0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3535">        </span>9247</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3536">(1)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3537">        </span>49</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3538"><br id="yui_3_16_0_ym19_1_1464973406963_3539"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3540">Variable: RF_flt</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3541">Type: float</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3542">Total Size: 144992960 bytes</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3543">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 36248240 values</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3544">Number of Dimensions: 3</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3545">Dimensions and sizes:<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3546">        </span>[9247] x [49] x [80]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3547">Coordinates:&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3548">Number Of Attributes: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3549">&nbsp; _FillValue :<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3550">        </span>-9999</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3551">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3552">        </span>&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3553">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3554">        </span>min=-8888 &nbsp; max=9783</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3555"><br id="yui_3_16_0_ym19_1_1464973406963_3556"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3557">Variable: RF_with_missing</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3558">Type: double</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3559">Total Size: 289985920 bytes</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3560">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 36248240 values</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3561">Number of Dimensions: 3</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3562">Dimensions and sizes:<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3563">        </span>[9247] x [49] x [80]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3564">Coordinates:&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3565">Number Of Attributes: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3566">&nbsp; _FillValue :<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3567">        </span>-9999</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3568">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3569">        </span>&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3570">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3571">        </span>min=-88.88 &nbsp; max=97.83</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3572"><br id="yui_3_16_0_ym19_1_1464973406963_3573"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3574">Variable: RF_fnl</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3575">Type: double</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3576">Total Size: 289985920 bytes</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3577">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 36248240 values</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3578">Number of Dimensions: 3</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3579">Dimensions and sizes:<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3580">        </span>[9247] x [49] x [80]</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3581">Coordinates:&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3582">Number Of Attributes: 1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3583">&nbsp; _FillValue :<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3584">        </span>-9999</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3585">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3586">        </span>&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3587">(0)<span style="white-space:pre-wrap;" id="yui_3_16_0_ym19_1_1464973406963_3588">        </span>min=-88.88 &nbsp; max=97.83</div><div id="yui_3_16_0_ym19_1_1464973406963_3002" dir="ltr"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3589">aditya@agniilap:~/geeta/ncl/ReadHDF-2A25$&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3590"><br id="yui_3_16_0_ym19_1_1464973406963_3591"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3590">RF_with_missing has min value of -88.88, &nbsp;After where statement, the -88.88 is not replaced by -9999.&nbsp;</div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3590"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1464973406963_3590">thank you for your help</div><div></div><div id="yui_3_16_0_ym19_1_1464973406963_3001">&nbsp;</div><div class="signature" id="yui_3_16_0_ym19_1_1464973406963_3000">Geeta.</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, 3 June 2016 9:50 PM, Geeta Geeta &lt;geetag54@yahoo.com&gt; wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv1185221682"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_6956"><span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_6966">Thanks Mary.&nbsp;</span></div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_6956"><span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7071">I am sending my code and pls tell me where to upload the data?.&nbsp;</span></div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_6956"><span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7070">This is output now. I made changes as you told.&nbsp;</span></div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7198">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7199" style="white-space:pre-wrap;">        </span>min=-9999 &nbsp; max=9783</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7200"><br clear="none" id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7201"></div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7202">Variable: RF_fnl</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7203">Type: double</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7204">Total Size: 289985920 bytes</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7205">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 36248240 values</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7206">Number of Dimensions: 3</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7207">Dimensions and sizes:<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7208" style="white-space:pre-wrap;">        </span>[9247] x [49] x [80]</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7209">Coordinates:&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7210">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7211" style="white-space:pre-wrap;">        </span>&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7212">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7213" style="white-space:pre-wrap;">        </span>min=-99.98999999999999 &nbsp; max=97.83</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7214">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7215" style="white-space:pre-wrap;">        </span>&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7216">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7217" style="white-space:pre-wrap;">        </span>min=-99.98999999999999 &nbsp; max=1.85</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7218">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7219" style="white-space:pre-wrap;">        </span>&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7220">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7221" style="white-space:pre-wrap;">        </span>min=-99.98999999999999 &nbsp; max=1.48</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7222">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7223" style="white-space:pre-wrap;">        </span>&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7224">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7225" style="white-space:pre-wrap;">        </span>min=-99.98999999999999 &nbsp; max=1.58</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7226">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7227" style="white-space:pre-wrap;">        </span>&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7228">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7229" style="white-space:pre-wrap;">        </span>min=-99.98999999999999 &nbsp; max=1.73</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7230">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7231" style="white-space:pre-wrap;">        </span>&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7232">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7233" style="white-space:pre-wrap;">        </span>min=-99.98999999999999 &nbsp; max=1.99</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7234">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7235" style="white-space:pre-wrap;">        </span>&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7236">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7237" style="white-space:pre-wrap;">        </span>min=-99.98999999999999 &nbsp; max=2.6</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7238">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7239" style="white-space:pre-wrap;">        </span>&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7240">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7241" style="white-space:pre-wrap;">        </span>min=-99.98999999999999 &nbsp; max=1.7</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7242"><br clear="none" id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7243"></div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7244">Variable: RF_fnl</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7245">Type: double</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7246">Total Size: 289985920 bytes</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7247">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 36248240 values</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7248">Number of Dimensions: 3</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7249">Dimensions and sizes:<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7250" style="white-space:pre-wrap;">        </span>[9247] x [49] x [80]</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7251">Coordinates:&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7252">Number Of Attributes: 2</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7253">&nbsp; lat2d :<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7254" style="white-space:pre-wrap;">        </span>&lt;ARRAY of 453103 elements&gt;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7255">&nbsp; lon2d :<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7256" style="white-space:pre-wrap;">        </span>&lt;ARRAY of 453103 elements&gt;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7257">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7258" style="white-space:pre-wrap;">        </span>&nbsp;</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7259">(0)<span id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7260" style="white-space:pre-wrap;">        </span>min=-99.98999999999999 &nbsp; max=97.83</div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_6956"></div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7261">aditya@agniilap:~/geeta/ncl/ReadHDF-2A25$&nbsp;</div><div dir="ltr" id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7262"><br clear="none" id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_7263"></div><div></div><div id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_6955">&nbsp;</div><div class="yiv1185221682signature" id="yiv1185221682yui_3_16_0_ym19_1_1464958572151_6954">Geeta.</div> <div class="yiv1185221682qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv1185221682yqt2355013943" id="yiv1185221682yqt38493"><div class="yiv1185221682yahoo_quoted" style="display:block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, 3 June 2016 8:22 PM, Mary Haley &lt;haley@ucar.edu&gt; wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div class="yiv1185221682y_msg_container"><div id="yiv1185221682"><div><div dir="ltr"><div class="yiv1185221682gmail_default" style="font-size:small;">Geeta,</div><div class="yiv1185221682gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv1185221682gmail_default" style="font-size:small;">Are the -999900 and -888800 values correct? They seem a bit odd.&nbsp; Perhaps you are supposed to divide the data by the scale_factor rather than multiple by it.&nbsp; I think the "short2flt" function does a multiply.</div><div class="yiv1185221682gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv1185221682gmail_default" style="font-size:small;">Try this (UNTESTED):</div><div class="yiv1185221682gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv1185221682gmail_default" style="">







<div class="yiv1185221682">&nbsp; &nbsp;RF_short &nbsp;= &nbsp;hdf4_file-&gt;rain<br clear="none">&nbsp; &nbsp;printVarSummary(RF_short)<br clear="none">&nbsp; &nbsp;printMinMax(RF_short,0)</div><div class="yiv1185221682">&nbsp; &nbsp;Rf_fnl &nbsp;= tofloat(RF_short) / RF_short@scale_factor<br clear="none">&nbsp; &nbsp;copyVarMeta(RF_short,Rf_fnl)<br clear="none"><br clear="none">&nbsp; &nbsp;printVarSummary(Rf_fnl)<br clear="none">&nbsp; &nbsp;printMinMax(Rf_fnl,0)</div><div class="yiv1185221682">&nbsp; &nbsp;Rf_fnl &nbsp;= &nbsp;where(Rf_fnl.eq.-88.88,Rf_fnl@_FillValue,Rf_fnl)<br clear="none">&nbsp; &nbsp;printMinMax(Rf_fnl,0)</div><div class="yiv1185221682">&nbsp; &nbsp;Rf_fnl@lon2d &nbsp; &nbsp; &nbsp;= &nbsp;longitude<br clear="none">&nbsp; &nbsp;Rf_fnl@lat2d &nbsp; &nbsp; &nbsp;= &nbsp;latitude</div><div class="yiv1185221682">I added several "printVarSummary" and "prinMinMax" calls to make sure that the conversions are working at every step.<br clear="none"></div><div class="yiv1185221682">If this continues to fail, it would help if I could have access to your latest script and data.</div><div class="yiv1185221682">--Mary</div></div></div><div class="yiv1185221682yqt1353498049" id="yiv1185221682yqt48340"><div class="yiv1185221682gmail_extra"><br clear="none"><div class="yiv1185221682gmail_quote">On Fri, Jun 3, 2016 at 2:04 AM, Geeta Geeta <span dir="ltr">&lt;<a rel="nofollow" shape="rect" ymailto="mailto:geetag54@yahoo.com" target="_blank" href="mailto:geetag54@yahoo.com">geetag54@yahoo.com</a>&gt;</span> wrote:<br clear="none"><blockquote class="yiv1185221682gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div dir="ltr"><span>thanks Mary for your suggestions..&nbsp;</span></div><div dir="ltr"><span>I was able to get the plot but I am getting a band like structure in the plot that is middle part is white. Dont know why???</span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>can u pls suggest.&nbsp;</span></div><span class="yiv1185221682HOEnZb"><font color="#888888"></font></span><div></div><div>&nbsp;</div><div>Geeta.</div> <div><br clear="none"><br clear="none"></div><div></div></div></div></div><div><div class="yiv1185221682h5"><div> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"> <div dir="ltr"><font size="2" face="Arial"> On Friday, 3 June 2016 3:29 AM, Mary Haley &lt;<a rel="nofollow" shape="rect" ymailto="mailto:haley@ucar.edu" target="_blank" href="mailto:haley@ucar.edu">haley@ucar.edu</a>&gt; wrote:<br clear="none"></font></div>  <br clear="none"><br clear="none"> <div><div><div><div dir="ltr"><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;">Geeta,</div><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;">You will need to approach this with two steps.</div><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;">First, since this data is of type "short" and has scale_factor and add_offset attributes, you should read the data using "short2flt", which will apply these attributes for you. Afterwards, use "printVarSummary" and "printMinMax" to make sure the data looks okay.</div><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;">Second, whenever your data has multiple missing value values, you can use the "where" function</div><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;">First, use "-9999" as your standard missing value:</div><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;">rf@_FillValue = -9999</div><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;">Now that "-9999" is a recognized missing value, you can then coerce the -88.88 value to missing as well:</div><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;">&nbsp; rf = where(rf.eq.-88.88,rf@_FillValue,rf)</div><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;">Note: it's not generally a good idea to do a straight comparison of float data with "if(x.eq.12.34)" type of comparisons. If you know that all your data is positive, for example, except for the potential -88.88 value, then a better way to do this is:</div><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;"><div>&nbsp; rf = where(rf.lt.0,rf@_FillValue,rf)</div><div><br clear="none"></div></div><div style="font-size:small;">Or, if you feel more comfortable about comparing values that are closer to -88.88. then use a roundoff of -88:</div><div style="font-size:small;"><br clear="none"></div><div style="font-size:small;"><div>&nbsp; rf = where(rf.lt.-88,rf@_FillValue,rf)</div><div><br clear="none"></div><div>This will then catch anything less than -88 and set it to missing.</div><div><br clear="none"></div></div><div><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Document/Functions/Contributed/short2flt.shtml">http://www.ncl.ucar.edu/Document/Functions/Contributed/short2flt.shtml</a><br clear="none"></div><div><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml</a><br clear="none"></div><div><br clear="none"></div><div>--Mary</div><div><br clear="none"></div></div><div><br clear="none"><div>On Thu, Jun 2, 2016 at 12:37 PM, Geeta Geeta <span dir="ltr">&lt;<a rel="nofollow" shape="rect" ymailto="mailto:geetag54@yahoo.com" target="_blank" href="mailto:geetag54@yahoo.com">geetag54@yahoo.com</a>&gt;</span> wrote:<br clear="none"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px;"><div>I am using TRMM data that has rain rate in vertical up to 20 km from the Radar .&nbsp;</div><div dir="ltr">the variable "rain" has data type as short&nbsp;</div><div dir="ltr">Variable: RF</div><div dir="ltr">Type: short</div><div dir="ltr">Total Size: 72496480 bytes</div><div dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 36248240 values</div><div dir="ltr">Number of Dimensions: 3</div><div dir="ltr">Dimensions and sizes:<span style="white-space:pre-wrap;">        </span>[nscan | 9247] x [nray | 49] x [ncell1 | 80]</div><div dir="ltr">Coordinates:&nbsp;</div><div dir="ltr">Number Of Attributes: 9</div><div dir="ltr">&nbsp; lat2d :<span style="white-space:pre-wrap;">        </span>&lt;ARRAY of 453103 elements&gt;</div><div dir="ltr">&nbsp; lon2d :<span style="white-space:pre-wrap;">        </span>&lt;ARRAY of 453103 elements&gt;</div><div dir="ltr">&nbsp; scale_factor :<span style="white-space:pre-wrap;">        </span> 100</div><div dir="ltr">&nbsp; scale_factor_err :<span style="white-space:pre-wrap;">        </span> &nbsp; 0</div><div dir="ltr">&nbsp; add_offset :<span style="white-space:pre-wrap;">        </span> &nbsp; 0</div><div dir="ltr">&nbsp; add_offset_err :<span style="white-space:pre-wrap;">        </span> &nbsp; 0</div><div dir="ltr">&nbsp; calibrated_nt :<span style="white-space:pre-wrap;">        </span>22</div><div dir="ltr">&nbsp; units :<span style="white-space:pre-wrap;">        </span>mm/hr</div><div dir="ltr">&nbsp; hdf_name :<span style="white-space:pre-wrap;">        </span>rain</div><div dir="ltr">(0)<span style="white-space:pre-wrap;">        </span>&nbsp;</div><div dir="ltr">(0)<span style="white-space:pre-wrap;">        </span>min=-9999 &nbsp; max=9783</div><div dir="ltr"><br clear="none"></div><div dir="ltr">It has two types of missing values -88.88 (referrred to as the ground clutter) and -9999 as the missing value.&nbsp;</div><div dir="ltr">I have to plot this data . ho w should i put two values as miising?</div><div dir="ltr">I am getting a plot like this.&nbsp;</div><span><font color="#888888"></font></span><div></div><div>&nbsp;</div><div>Geeta.</div></div></div></div><br clear="none">_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div></blockquote></div><br clear="none"></div></div></div></div><br clear="none"><br clear="none"></div>  </div> </div>  </div></div></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>