[Thread Prev][Thread Next][Index]

Re: [ferret_users] Saturation max and color palette



I'm not sure if this is the problem, but sometimes FILL omits some areas of the plot. The first thing I would do if I found FILL not working perfectly would be to use SHADE. (You can always FILL/OVER/NOLAB afterwards and it usually looks ok).

Another small bug is that Ferret sometimes seems to have what might be a small rounding or precision error (?) in choosing the highest level. To avoid this, try choosing a value very close to 0.3:

 yes? fill/levels=(-0.1,0.3,0.01) min(intensite,0.2999)
or

 yes? fill/levels=(-0.1,0.3001,0.01) min(intensite,0.3)
However, another idea for masking high or low values would be to SHADE or FILL the mask over the original plot:

FILL temperature ! use normal levels or choose them as desired
LET high_temp = if temperature ge 24 then temperature
FILL/OVER/PAL=lightgray high_temp ! mask the high temperatures with a neutral color

Billy K

On Sep 23, 2005, at 3:09 AM, Tony Jolibois wrote:

       Hi all,

I have problem with saturation in color palette : I want ferret to put the last color palette for saturation max instead of white.
For that I use the command : fill/levels=($min,$max,$step) min(variable, $max)
This command works well for one variable and not for another (see plots attached).
Do you have an idea ?
Thanks,
Tony

This script works for saturation max :

[mercator@rdp3-jaune temp]$ ferret -nojnl -gif
        NOAA/PMEL TMAP
        FERRET v5.81
        Linux(g77) 2.4.21-32 - 07/13/05
        23-Sep-05 10:01
 
yes? use "http://opendap.mercator-ocean.fr/thredds/dodsC/ mercatorPsy2v1R1v_med_mean_best_estimate"
yes? set region/x=6W:36.5E/y=30.023N:45.964N/z=0/t=20-SEP-2005
yes? go mp_plate_caree
yes? set grid temperature
yes? go mp_aspect
yes? fill/levels=(20,24,0.1) min(temperature,24)
yes? frame/file=temperature_med.gif
yes? exit

this one doesn't work :

[mercator@rdp3-jaune temp]$ ferret -nojnl -gif
        NOAA/PMEL TMAP
        FERRET v5.81
        Linux(g77) 2.4.21-32 - 07/13/05
        23-Sep-05 10:03
 
yes? use "http://opendap.mercator-ocean.fr/thredds/dodsC/ mercatorPsy2v1R1v_med_mean_best_estimate"
yes? yes? set region/x=6W:36.5E/y=30.023N:45.964N/z=0/t=20-SEP-2005
yes? yes? go mp_plate_caree
yes? yes? set grid temperature
yes? yes? go mp_aspect
yes? let intensite=(u^2 + v^2)^.5
yes? fill/levels=(-0.1,0.3,0.01) min(intensite,0.3)
yes? frame/file=med.gif
yes? exit

--
Tony Jolibois

CLS - Direction Océanographie Spatiale
8-10 rue hermès - 31520 Ramonville Saint-Agne
tjolibois@cls.fr

Tél : +33 (0) 561 393 797
Fax : +33 (0) 561 393 782

<med.gif><temperature_med.gif>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William S. Kessler
NOAA / Pacific Marine Environmental Laboratory
7600 Sand Point Way NE
Seattle WA 98115 USA

william.s.kessler@noaa.gov
Tel: 206-526-6221
Fax: 206-526-6744
Home page: http://www.pmel.noaa.gov/~kessler



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement