[ncl-talk] setting of eof in NCL

Arnold.Sullivan at csiro.au Arnold.Sullivan at csiro.au
Tue Mar 20 22:06:41 MDT 2018


Many thanks Mary and all,

Will do it in that way.

Regards,

Arnold

From: Mary Haley [mailto:haley at ucar.edu]
Sent: Wednesday, 21 March 2018 3:01 PM
To: Sullivan, Arnold (O&A, Aspendale) <Arnold.Sullivan at csiro.au>
Cc: Ncl-talk <ncl-talk at ucar.edu>
Subject: Re: [ncl-talk] setting of eof in NCL

Hi Arnold,

Rick is correct in his reasoning about the opt argument: It needs to be set to True in order for any possible attributes to take effect. I verified that this is what the code for eofunc and eofunc_ts is doing under the hood.

So, for example, if you set:

optETS      = True
optETS at jopt = 1

and then call eofunc or eofunc_ts with optETS, then jopt will be set to 1 and has some special meaning to both routines (that is different for both routines).

If, however you set:

optETS      = False
optETS at jopt = 1

then it doesn't matter what jopt is set to, because it will be ignored, given that optETS is False. In the above case, then jopt will default to 0.

Hope this clears the air a little.

--Mary


On Tue, Mar 20, 2018 at 9:42 PM, Rick Brownrigg <brownrig at ucar.edu<mailto:brownrig at ucar.edu>> wrote:
Hi Arnold,
I'm not expert about EOF functions, but in general, the NCL idiom is that if an optional-argument or resources-argument is of type boolean, then any attributes associated with it will be in play if the argument is True, and otherwise, only defaults will apply regardless of what attribute settings a user may have set.  I haven't verified that behaviour for your specific question, but the docs for both eofunc and eofunc_ts do seem to suggest it.  Are you seeing something specific that leads you to believe otherwise?
Rick

On Tue, Mar 20, 2018 at 9:25 PM, <Arnold.Sullivan at csiro.au<mailto:Arnold.Sullivan at csiro.au>> wrote:
Hi there,

Need some help of the settin of the EOF.

Do we have to set opt to be true in eofunc  and false in eofunc_ts?

Can we do false to both or true for both, any different?

Cheers,

Arnold

_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk


_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180321/3c6d2ce1/attachment.html>


More information about the ncl-talk mailing list