[gradsusr] any help/thoughts?
Muthuvel Chelliah - NOAA Federal
muthuvel.chelliah at noaa.gov
Tue Apr 16 12:34:34 EDT 2013
Thanks all for your suggestions.
(My data is daily, not monthly :-( )
I managed finally to get done what I wanted to do,
by defining all the masks outside in a fortran program,
and bringing them via a control file, which I really did not
want to do in the first place.
I thought I can do it all in grads (don't we all! sometimes :-) ) , since
I repeatedly wanted to set various sub periods of a defined variable
to undef, which appears to be not possible (That is, in a 2001
to 2010 long daily 'defined/created' variable, I wanted to
successively in diff.steps. That is, set first only the 2001 data to undef,
compute something, then set only the 2002 data to undef
and so on.)
Anyway, much thanks for your suggestions and time,
which is appreciated.
Muthu
On Mon, Apr 15, 2013 at 9:00 PM, Jennifer Adams <jma at cola.iges.org> wrote:
> 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.
> --Jennifer
>
>
> On Apr 15, 2013, at 5:14 PM, Muthuvel Chelliah - NOAA Federal wrote:
>
> Hello Grads experts,
>
> Is there any recommendation for the following situation.
>
> After I define a variable VAR (assume daily data) for a period of
> long time, can I selectively choose a shorter sub-period within this full
> period and set VAR to undef value, and still
> use the full period of VAR values, with this newly set undefined
> value for that sub period? I hope this is not confusing.
>
> The problem I run into is, when I try to redefine VAR
> for the shorter period, full period VAR gets deleted, and a new VAR
> is created only for the shorter period.
>
> Thanks for any help/suggestions.
>
> Muthu
>
> ------------------------------------------------------------------
>
> Dr.Muthuvel Chelliah, eMail:Muthuvel.Chelliah at noaa.gov
> Rm.3008, Climate Prediction Center, Ph:(301) 683-3393
> NCEP/NWS/NOAA/U.S.Dept.of Commerce,
>
> 5830, University Research Court, NCWCP
> College Park, MD 20740.
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> --
> Jennifer M. Adams
> IGES/COLA
> 4041 Powder Mill Road, Suite 302
> Calverton, MD 20705
> jma at cola.iges.org
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
------------------------------------------------------------------
Dr.Muthuvel Chelliah, eMail:Muthuvel.Chelliah at noaa.gov
Rm.3008, Climate Prediction Center, Ph:(301) 683-3393
NCEP/NWS/NOAA/U.S.Dept.of Commerce,
5830, University Research Court, NCWCP
College Park, MD 20740.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130416/4a4c5013/attachment-0003.html
More information about the gradsusr
mailing list