Thanks all for your suggestions.<br>(My data is daily, not monthly :-( )<br><br>I managed finally to get done what I wanted to do,<br>by defining all the masks outside in a fortran program, <br>and bringing them via a control file, which I really did not <br>
want to do in the first place.<br><br>I thought I can do it all in grads (don't we all! sometimes :-) ) , since <br>I repeatedly wanted to set various sub periods of a defined variable<br>to undef, which appears to be not possible (That is, in a 2001<br>
to 2010 long daily 'defined/created' variable, I wanted to <br>successively in diff.steps. That is, set first only the 2001 data to undef,<br>compute something, then set only the 2002 data to undef<br>and so on.)<br>
<br>Anyway, much thanks for your suggestions and time,<br>which is appreciated.<br><br>Muthu<br><br><div class="gmail_quote">On Mon, Apr 15, 2013 at 9:00 PM, Jennifer Adams <span dir="ltr"><<a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Take a look at the docs for the tmave() function. You may not want averaging over your time series, but it might be helpful in setting up a mask to apply to your longer time series to get rid of periods you are not interested in. You could create an ascii file with 0's and 1's, convert to netcdf with ncgen, and apply (multiply or whatever) that mask to your whole time series. <div>
--Jennifer</div><div><br><div><br><div><div>On Apr 15, 2013, at 5:14 PM, Muthuvel Chelliah - NOAA Federal wrote:</div><br><blockquote type="cite">Hello Grads experts,<br><br>Is there any recommendation for the following situation.<br>
<br>After I define a variable VAR (assume daily data) for a period of <br>long time, can I selectively choose a shorter sub-period within this full<br>
period and set VAR to undef value, and still<br>use the full period of VAR values, with this newly set undefined<br>value for that sub period? I hope this is not confusing.<br><br>The problem I run into is, when I try to redefine VAR <br>
for the shorter period, full period VAR gets deleted, and a new VAR<br>is created only for the shorter period.<br><br>Thanks for any help/suggestions.<br><br>Muthu<br><pre cols="72"><font style="font-family:tahoma,sans-serif">------------------------------------------------------------------<br>
Dr.Muthuvel Chelliah, <a href="mailto:eMail%3AMuthuvel.Chelliah@noaa.gov" target="_blank">eMail:Muthuvel.Chelliah@noaa.gov</a><br>Rm.3008, Climate Prediction Center, Ph:<a href="tel:%28301%29%20683-3393" value="+13016833393" target="_blank">(301) 683-3393</a><br>
NCEP/NWS/NOAA/U.S.Dept.of Commerce,<br>
5830, University Research Court, NCWCP<br>College Park, MD 20740.</font><br></pre>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br><div>
<span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><div>
--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a></div><div><br>
</div><br></span></span></span>
</div>
<br></div></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><pre cols="72"><font style="font-family:tahoma,sans-serif">------------------------------------------------------------------<br>Dr.Muthuvel Chelliah, <a href="mailto:eMail%3AMuthuvel.Chelliah@noaa.gov" target="_blank">eMail:Muthuvel.Chelliah@noaa.gov</a><br>
Rm.3008, Climate Prediction Center, Ph:(301) 683-3393<br>NCEP/NWS/NOAA/U.S.Dept.of Commerce,<br>5830, University Research Court, NCWCP<br>College Park, MD 20740.</font><br></pre>