remove "Constant field. Value ="

Stephen R McMillan smcmillan at PLANALYTICS.COM
Mon Nov 28 10:39:25 EST 2005


I think this will also work:
'set clevs 0 [or any number]'

When you display constant-field variable, it should result in a blank map
with no message. Note: I'm using GrADS 1.8 (Win32e).

Steve Mc



Dave Allured <dave.allured at NOAA.GOV>
Sent by: GRADSUSR at LIST.CINECA.IT
11/27/2005 09:00 PM
Please respond to
GRADSUSR at LIST.CINECA.IT


To
GRADSUSR at LIST.CINECA.IT
cc

Subject
Re: remove "Constant field. Value ="





When I ran into this a while back, I found that it was sufficient to
change a single grid point by a small value, such as multiplying the
corner point by 1.001, to make the constant field message go away.

I mention this because it runs faster than computing a trig function
across the whole grid.  This is not important if you are generating only
a few frames.  Arindam's method is very elegant, occupying only one line
of code, and handling grids with distributed missing values.

--Dave A.
CDC/PSD/NOAA/CIRES

Arindam Chakraborty wrote:

>hi Yun,
>        since grads shades between two values rather than at a single
>value, you may have to add a slowly varying function to the constant
>field you want to display. Set the clevs before the display. An
>example for 2-d x-y grid:
>
>...
>'set gxout shaded'
>'set clevs 10' * assuming var has the constant value of 10
>'d var+cos(lat*3.1416/180)*1e-6'
>
>where var is the constant field variable to display. The cos() allows
>a slow variation in the field (along with the multiplication of 1e-6).
>The order of magnitude of this factor should be must less than the
>value of the variable to display.
>
>
>
>
>On Sun, 27 Nov 2005, Ji-Yun SEO wrote:
>
>
>
>>Hi, everyone,
>> I'd like to display a constant field using Grads,
>> unfortunately, there is always a warning of "Constant field. Value =
xx"
>>on picture window, and I'm now asking about whether there is a command
to
>>avoid such a warning?
>> Thanks in advance.
>>
>>
>>

************************************************************************
The information contained in this e-mail message is intended only for the
personal and confidential use of the recipient(s) named above and may
contain information that is privileged, confidential, and/or proprietary
to Planalytics, Inc. and its subsidiaries and affiliated companies.  This
message may be an attorney-client communication and as such is privileged
and confidential.  If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this document in
error and that any review, dissemination, distribution, or copying of this
message is strictly prohibited.  If you have received this communication
in error, please notify the sender immediately by e-mail, and delete the
original message.
************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20051128/2e4573ad/attachment.html 


More information about the gradsusr mailing list