Great, thanks Billy.
For others' information, this works:
Create .spk file with this content:
RGB_Mapping By_value
-60 0 10 30
-50 0 15 35
-40 0 20 40
-30 0 35 70
-20 0 50 100
-17.5 22.5 60 100
-16.25 45 70 100
-15 67.5 80 100
-13.75 90 90 100
-12.5 93.5 93.5 100
-11.25 97 97 100
-10 98.5 97 98.5
-8.75 100 97 97
-7.5 100 93.5 93.5
-6.25 100 90 90
-5 100 67.5 67.5
-3.75 100 45 45
-2.5 100 22.5 22.5
-1.25 100 0 0
0 70 0 0
1.25 40 0 0
Then, in ferret:
def sym clev "(-17.5,1.25,1.25,15)(-60,-20,10,5)"
fill/lev=($clev)/pal=custom_palette VAR