[Thread Prev][Thread Next][Index]

Re: [ferret_users] Label Question



Hi,
Russ is right, but you don't have to use PPL LIST LABELS.  There are symbols defined with any plot command, which are all documented here,

http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/customizing-plots/SPECIAL-SYMBOLS

There's a whole set of labels LABNUM_X, LABNUM_DSET, etc,

For this particular thing, if there is a datset label, its label number is in the symbol LABNUM_DSET.  So,
fill/SET var
go unlabel ($labnum_dset)
PPL FILL
It's good practice in a script to check that a symbol is defined before using it. So even better would be this -- the syntax checks whether the symbol is defined, and if it is substitutes 1, and if it is not substitutes 0, so that the go unlabel is called only if labnum_dset was defined.
fill/SET var
IF ($labnum_dset%0|*>1%) THEN go unlabel ($labnum_dset)
PPL FILL


On 5/1/2013 11:22 PM, Russ Fiedler wrote:
Hi Luke,

 The usual way to do this is to use the /SET qualifier issue the unlabel
command and finish the plot with a PPL command.

fill/palette=ocean_blue_rev/levels=(0,590,30)/title="Precipitation
(mm)"/SET monthRain
PPL LIST LABELS  ! Check what labels to remove
go unlabel 5 ! Removes LABEL 5
PPL FILL


Russ



On Wed, 2013-05-01 at 16:00 -1000, Luke M wrote:
Hi everyone


I'm trying to delete a particular label from a plot I'm creating. When
I use the "shade" command, I'm able to make the particular label
dissappear. However, since I'm trying to generate a special color
plot, when I use the "fill" command, the label automatically
reappears.


For instance:


yes? set data "3A11.20130101.7.HDF.Z.ncml.nc"
yes? shade monthRain


**here, the plot that is generated has the "DATA SET: ..." label (the
one I wish to remove)





 

yes? go unlabel ($lab1)  
 !-> go unlabel DATA SET: 3A11.20130101.7.HDF.Z.ncml
yes? shade monthRain


**, here, the "DATA SET:..." label is removed






But... when I try running the fill command, this label reappears:


yes?
fill/palette=ocean_blue_rev/levels=(0,590,30)/title="Precipitation
(mm)" monthRain

yes? fill/palette=ocean_blue_rev/levels=(0,590,30) monthRain
yes? 






Any ideas of how to apply the label removal while also using the
"fill" command?


Thanks!







[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement