[Thread Prev][Thread Next][Index]

Re: Color bar data appearance problem



Hi Yogesh,
             Let me explain in detail. In previous mail i explicitly pointed that
you have to use /set qualifier with fill or shade command while using ppl shakey
(since it is not a stand alone command). From your mail..

   ppl shakey 1, 1, 0.10, 0, -1, 9, 0, 0.12, 0.12
   fill/nolab/lev=(370,382,0.5) sst+348;go land

 It should be like :

   fill/nolab/lev=(370,382,0.5)/set sst+348        ! note the /set qualifier
   ppl shakey 1, 1, 0.10, 0, -1, 9, 0, 0.12, 0.12  ! ky_hi(10th argument) is missing    
   ppl fill                                         
   go land

 While increasing the size of numeric labels, the decimal places maynot be displayed 
depending on the size of viewport and margins. In this case i would strongly recommend 
you to define a new viewport with slighly less x_size than the default one like 

     define view/xlim=0:0.97/ylim=0:1 view_main
     set view vmain
  
  Default viewport have xlim=0:1 & the 0.03 difference in the newly defined viewport
will make room for the color key with complete numeric labels. Please have a look at 
the example below. If you want change the location of the color key, then define the
main viewport according to that.

Example :

        define view/xlim=0:0.97/ylim=0:1 vmain       ! make room for color key labels
        set view vmain                               !    "
	set data coads_climatology
        set reg/x=100:300/y=-50:50/l=1

        fill/set/levels=(295,306.5,0.5) sst+273.15   !  note the /set qualifier 
        ppl shakey , , 0.15, , -1, , , , ,           !  "location of" shakey command
        ppl fill                                     ! get the plot
        go fland 20 black


Hope this helps

with regards 


Jaison


6On Tue, 15 Jun 2004, Yogesh K. Tiwari wrote:

> Hello Jaison,
> 
> Many thanks for the suggation.
> 
> It works fine, but still there is one technical error.
> 
> If I keep the key positioning like :
> 
> ppl shakey 1, 1, 0.10, 0, -1, 9, 0, 0.12, 0.12
> 
> fill/nolab/lev=(370,382,0.5) sst+348;go land
> 
> means the lab_size here is 0.10 and it works fine.
> 
> 
> 
> BUT when I increase the lab size to 0.15 and put the key like :-
> 
> ppl shakey 1, 1, 0.10, 0, -1, 9, 0, 0.12, 0.12
> 
> then again the decimal place disappears.
> 
> 
> Whether I kept the other keys with wrong numbers in key positioning
> or there is any other reason.
> 
> I want to use lab_size = 0.15 in any case.
> 
> Thnaks for your further help.
> 
> Regards,
> Yogesh
> 
> 
>    Kurian wrote:
> > Hi Yogesh,
> >            The default value of "klag_dig" (klab_dig is the number of significant 
> > digits (klab_dig > 0) or decimal places (klab_dig < 0) in the key) is 3 and hence 
> > the first 3 digits of your variable will be displayed. That is why the decimal 
> > values are disappearing from your color key (rather than repeating the numeric 
> > labels twice). Use "ppl SHAKEY" with correct "klag_dig"( in your 
> > case  4 or -1 ; with /set qualifier to fill command) to get  the key 
> > labels with decimal values.
> > 
> > To find the usage of shakey refer user manual: Appendix C Sec2.12
> > 
> > Example :
> > ---------
> > 	set data coads_climatology
> >         set reg/x=100:300/y=-50:50/l=1
> >         fill/levels=(295,306.5,0.5) sst+273.15
> >         say     " now the color key does not have decimal values "  
> >         message " let us see the default shakey values"
> > 
> >         ppl list shakey
> >           
> >         message " using ppl shakey (only klag_dig) to get the decimal 
> > values"
> >         
> >         fill/set/levels=(295,306.5,0.5) sst+273.15
> >         ppl shakey , , , , 4, , , , , !  4 ==>  4 significant digits
> > !        OR
> > !       ppl shakey , , , ,-1, , , , , !  -1 ==> 1 decimal place
> >         ppl fill
> > 
> > Hope this helps 
> > 
> > With Regards 
> > 
> > Jaison
> > 
> > 
> > 
> > On Mon, 14 Jun 2004, Yogesh K. Tiwari wrote:
> > 
> > 
> >>Hello Ferret Users,
> >>
> >>When I fill any data with following command :-
> >>
> >>fill/nolab/lev=(370,382,0.5) data[k=19,l=1];go land
> >>
> >>the plot generated has the color bar values like :-
> >>
> >>370, 371, 371, 372, 372, 373,373,...........,382,382
> >>
> >>the problem is the data is repeating two times.
> >>
> >>
> >>
> >>whereas the correct values should be like :-
> >>
> >>370, 371, 371.5, 372, 372.5...........,382
> >>
> >>
> >>Can any person help me how to rmove this error .
> >>
> >>Thanks in advance,
> >>
> >>Yogesh
> >>
> >>
> > 
> > 
> 
> 
> 
> 

-- 
___________________________________________________

    Jaison Kurian                           
    Centre for Atmospheric and Oceanic Sciences
    Indian Institute of Science
    B A N G A L O R E   560 012
    Ph: +91-80-3942505
        +91-80-3600450
    Fax:+91-80-3600865
___________________________________________________



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement