Problem with 'query shades' - strange behaviour

Diane Stokes Diane.Stokes at NOAA.GOV
Thu Jun 15 10:30:55 EDT 2006


Witek,

I can't see how doing an "fgrid" plot in advance of the sequence you
list should cause a problem.  (It doesn't cause a problem for me running
1.9b4 for AIX).

My best guess is the result of 'display PTOTM' is (sometimes) a constant
value.  'query shades' will result in "None" after a constant field is
displayed.  When this problem occurs, does your display of PTOTM look
reasonable?

    Diane


Witold Interewicz wrote:
> Hello,
> Thank you for help. Unfortunately I issue the command you mentioned prior to
> scale defining. Full sequence is:
> 'set gxout shaded'
> 'set rgb 16 ...'
> ...
> 'set rgb 25 ...'
> 'set rbcols 16 17 18 19 20 21 22 23 24 25'
> 'set clevs 1 2 5 10 15 20 25 30 40'
> 'define PTOTM = maskout( PTOT , PTOT - 0.1 )'
> 'display PTOTM'
> say result
> 'query shades'
> say result
>
> Could the reason be, that prior to that sequence I plot some other user defined
> field using 'set gxout fgrid'?
>
> --
> Witek
>
> Dnia 13-06-2006 o godz. 20:49 Jennifer M. Adams napisał(a):
>> Witek,
>> The difference is likely due to the current 'gxout' setting. If you
>> add 'set gxout shaded' to your script before your display command,
>> then it should always generate the output you're looking for from 'q
>> shades'.
>> Jennifer
>>
>> On Jun 13, 2006, at 1:23 PM, Witold Interewicz wrote:
>>
>>> Hello,
>>>
>>> I issue the following sequence of commands:
>>>
>>> 'define PTOTM = maskout( PTOT ; PTOT - 0.1 )'
>>> 'display PTOTM'
>>> say result
>>> 'query shades'
>>> say result
>>>
>>> This sequence should plot PTOT masked below 0.1 . Both 'say result'
>>> should
>>> generate output like this:
>>>
>>> Contouring at clevs =  1 2 5 10 15 20 25 30 40
>>> 16 < 1
>>> 17 1 2
>>> 18 2 5
>>> 19 5 10
>>> 20 10 15
>>> 21 15 20
>>> 22 20 25
>>> 23 25 30
>>> 24 30 40
>>> 25 40 >
>>>
>>> assuming that I've defined proper scale prior to presented commands
>>> sequence.
>>> The problem is, that this sequence sometimes prints something like
>>> this:
>>>
>>> Contouring at clevs =  1 2 5 10 15 20 25 30 40
>>> None
>>>
>>> It means, that somewhere in between time defined scale of values
>>> and colors
>>> disappears. Whats the reason of this behaviour, and how could it be
>>> avoided?
>>>
>>> Please help me, this error seems to be random and I can't figure
>>> out where the
>>> problem is. Having "None" from 'query shades' one can not plot the
>>> scale properly.
>>>
>>> --
>>> Witek
>>>
>>> ----------------------------------------------------
>>> Kobieta.wp.pl - wspĂłlnie tworzymy to miejsce. DoĹ&#65533;Ä&#65533;cz do nas -
>>> czekamy!
>>> http://klik.wp.pl/?adr=http%3A%2F%2Fkobieta.wp.pl%2F&sid=793
>>>
>> Jennifer M. Adams
>> IGES/COLA
>> 4041 Powder Mill Road, Suite 302
>> Beltsville, MD 20705
>> jma at cola.iges.org
>>
>
> ----------------------------------------------------
> Potrzebujesz gotówki? Halogotówka to nawet 50000 bez wizyty w banku.
> Rata od 35 zł, bez poręczycieli. Wniosek i decyzja przez telefon.
> Wypełnij formularz. Oddzwonimy. Kliknij po szczegóły!
> http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fh1906.html&sid=791
>

--
Diane Stokes
Environmental Modeling Center
National Weather Service/NOAA



More information about the gradsusr mailing list