[Thread Prev][Thread Next][Index]
Re: [ferret_users] data-adapted centered palette with white always at zero
- To: Olivier Marti <olivier.marti@xxxxxxxxxxxx>
- Subject: Re: [ferret_users] data-adapted centered palette with white always at zero
- From: William Kessler <william.s.kessler@xxxxxxxx>
- Date: Thu, 2 Apr 2020 05:17:22 -0700
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=TJ7gNSR5; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=TJ7gNSR5; spf=pass (google.com: domain of william.s.kessler@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=william.s.kessler@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence:to :references:message-id:content-transfer-encoding:cc:date:in-reply-to :from:subject:mime-version:dkim-signature; bh=81AO2KE++ZEHGWzm5qGLl0GW6mbJlgi4LWiO9qTWiTE=; b=G+h57i7yJ2ppcmNQaZte/RwN6g0xXkeZNhvR11UJfF0vuJLkiVL7ZE+sU2ZRpGnRjI GVRCIu53ygPsXd8Hl7O/VAIQzr7RAZ7neYQVOnCCRydnxUrMCPVXwa7ZQ04JwhxYuAoL lqYKEQsFol/BOy1kqpAot4xCuTGwFnyZSovvXKQVR1hNuu/wkyVvndL2wbhIQstGoWmE UZCBlI2TXg9IEQzWgTYA5eq41gkTX1qYIvS1QWPrBu26onlnxUJ/W20XooJLX7Q1Eb4u qIzDzw0fRYZIU3wGWcxYDAkEfLKXXjDCuh9xkqHQ7u4YbiWJ4lzxS6l56r9e1qWp2AU9 iZ5Q==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:dkim-signature; bh=81AO2KE++ZEHGWzm5qGLl0GW6mbJlgi4LWiO9qTWiTE=; b=if3jo42+oIs1SbqJVLUwrAzhaYFkMNo/74JfXdSjf2ETldepH+e+q1nm95rA3kLgw0 T19wS3a1c6bkeG88+Dw3GjsaWIlQDnxbirQLLcCtcAxVLGp/AEDnIa1/532VqY5zj4W4 XAcqdU3yUB1lVUKUDY7mgIxcdhevjYrB0i95JuR3pMwyVmHIA4E6z+PkbI+YveLxegGu JHrYVbOKolYjPCo/QNoNKbPssStZSC5iQ6CNKuPKn3jbKJXEytTHIj19LyaH1yLsI4Gq FkmUc/PZejb/MRHXaVnQOO0p65IsswICPbqejZFfuGK8Jts3zA6FcSYH9tXjLhQTRpBt avOQ==
- Arc-seal: i=2; a=rsa-sha256; t=1585829845; cv=pass; d=google.com; s=arc-20160816; b=jYIYMsD4Sj3kgV0esTW3Ba7bcxSpDllMOwE32RKknJVDDEmFsSY+JuatEsQNKUfSYC TANnxakuVWgeaoarXRC5uWR5hrWt7ybYpp05BIG1dQc4dflglhHKgr8hIUwt18kzNtUe Gv5ot6tDopmwIWFwE4C2M3u572NhVarkUwMnL01EtwOLtsHtjb1NMHiLfhP5KSkdmmxQ /VUkDao71ybZmN6+d9XCqQeK7b9sYtCqjmgTbVy0tiuVlSjJI2QDAbwsYCWthOJbj0UF 4C9DY7Zdfbx9P5MwNOePNnVNYv5VZ0fMBz6Lx3WE1B8uIwKuyaODDF/rI2+2YVCwXiKE VAVg==
- Arc-seal: i=1; a=rsa-sha256; t=1585829845; cv=none; d=google.com; s=arc-20160816; b=0Ld4dERvTEKYEv+zimn9WjHtJ+tiS4eqDyZ3qbKjw7ooHO5QwuYBi4vLHNw0Z0bQsI 2gTUzl2+aFRx5+e6k9USrnmhyNGzD9pxRexjaBZOPYsPY3zGWT1wNLhpG8n1KbaDi7Zx aTxPR3UNlrFbHMqdnDaXfIlPGFWQfOypfOtHIohJnPInjCUD5RK2B1HOZ6PLokxiXGuJ VZVNrJ14jstXDPHgxUt3JkYy6Xf8NJPHbvt7li0o/1bsglc0FbiR/aPplptymg/xJ5o7 jmu7IUcS31WuoPZrWyAvARekRD9DQ5YvrfQHT4eQv//DgIIGitueSYa7Uu5jWPQyCe0z pYWQ==
- Cc: "William S. Kessler" <william.s.kessler@xxxxxxxx>, Ferret <ferret_users@xxxxxxxx>, Ryo Furue <furue@xxxxxxxxxx>, "Fabio B." <xxtraloud@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive; bh=81AO2KE++ZEHGWzm5qGLl0GW6mbJlgi4LWiO9qTWiTE=; b=fWQ3fZvyAkmsLkSvlk/bA1Ndx/ySVVOJ+tMuhQ9Et5P4n15izogH8UWIfoz/8NuiaM EGrSFmPYb2Hn9Mec0YzBVnP4BankofydLOnEPBnsJS7vdfvcTGInlOQv61OuU20cSLyc MiNlwWlMuJOJCmbnaUo2IluHV59EcmdiebVmu9SnV0UoNUmx9IjsKJGxTY506t434IO/ LsU2PlRMKMZaKW2LRxx6iIDYatGK7ptiW116tAuK9xdSOXzuKNPQJcXCIiBOGkbiblHt ZkT8QqVMLrazmZ6tgZEmGa03xwf860elKmKCzfLvr4ZZ+M6DXGJwdmlGyMDtwbsBr39y Dy4g==
- In-reply-to: <2CD2B8BE-F0C1-455F-802B-418A4144C5E9@lsce.ipsl.fr>
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- References: <0fde9cf2-7047-98ca-0780-1fc3a2fe9f75.ref@yahoo.it> <0fde9cf2-7047-98ca-0780-1fc3a2fe9f75@yahoo.it> <4ABEC4DE-8DFC-4AFE-9199-0EAAC8BC51C0@lsce.ipsl.fr> <CAEwQpaJSTb4wJq6Zoe_oX5DJZaur8RV92ki4m8qYCQTu_NscBg@mail.gmail.com> <444893e5-c4f5-c014-c570-6855f4f00d72@yahoo.it> <CAEwQpaKSnJ7sMSUgLBXratBmKC0TP6yd-qbNXr-bEa+=AFbkGw@mail.gmail.com> <2CD2B8BE-F0C1-455F-802B-418A4144C5E9@lsce.ipsl.fr>
- Sender: owner-ferret_users@xxxxxxxx
One idea to center the zero is to use levels (-inf)(your-other-levels)(inf)
A really simple blue-lightgray-red that works well for centered anomalies is
0 20 20 100
45 95 95 95
55 95 95 95
100 100 20 20
(of course you can change the 95s to 100s to make the center white, but I find the light gray deemphasizes the near-zero values which I think is the goal here)
This is simple enough that you could have your script write it out as a dummy palette file every time, shifting the gray center to the zero of your data as determined before every SHADE/FILL.
BK
> On Apr 2, 2020, at 12:43 AM, Olivier Marti <olivier.marti@xxxxxxxxxxxx> wrote:
>
> I don't th!ink ferret distributes palets with a white band in the middle. You will have to create it yourself.
>
> Here is an exemple :
> 0.0 80.0 0.0 100.0
> 10.0 30.0 20.0 100.0
> 45.0 0.0 100.0 0.0
> 45.1 100.0 100.0 100.0
> 54.9 100.0 100.0 100.0
> 55.0 100.0 100.0 0.0
> 60.0 100.0 80.0 0.0
> 78.0 100.0 0.0 0.0
> 82.0 80.0 0.0 0.0
> 92.0 60.0 50.0 50.0
> 100.0 100.0 75.0 75.0
>
>
> You may also want to suppress the 0 level, which something like
>
> SHADE/LEV=(-10,10,1)DEL(0)
>
> I don't know how you can use DEL(0) with LEV=10H
>
> Olivier
>
>> Le 2 avr. 2020 à 05:49, Ryo Furue <furue@xxxxxxxxxx> a écrit :
>>
>> Hi Fabio,
>>
>>
>> On Thu, Apr 2, 2020 at 12:14 AM Fabio B. <xxtraloud@xxxxxxxx> wrote:
>>
>> Useful options to do what I want. Is there any way to set 0 to a
>> particular color, or to have 0 to be white? Still the lev=10C puts the 0
>> at the center but I don't understand how 0 values are colored because I
>> see either val>0 or val<0 on the legend.
>>
>> That's a nice question. I have some ideas, but other people may have better ones. In addition, the email messages are archived and searchable and therefore are a great resource for future users. So, why don't you post the question to the Ferret mailing list?
>>
>> Cheers,
>> Ryo
>>
>
> —
> Olivier Marti - LSCE Bât 714 p. 1049
> MERMAID Team
> Normal situation : +33 1 69 08 77 27
> Corona lockdown : +33 6 45 36 43 74
> mailto:olivier.marti@xxxxxxxxxxxx
>
>
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement