Skip to content

Commit

Permalink
Add custom colour scale matching original AlgaeExplorer
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakai Dev committed Sep 19, 2023
1 parent d64b0d4 commit 05c5230
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
4 changes: 2 additions & 2 deletions datasets.d/development/sentinel_3A_POLYMER.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<att name="colorBarMaximum" type="float">40.0</att>
<att name="colorBarMinimum" type="float">0.15</att>
<att name="colorBarScale">Log</att>
<att name="colorBarPalette">Rainbow</att>
<att name="colorBarPalette">Spectral</att>
<att name="long_name">Chlorophyll-A Concentration</att>
<att name="standard_name">mass_concentration_of_chlorophyll_a_in_sea_water</att>
<att name="units">mg/m^3</att>
Expand All @@ -143,7 +143,7 @@
<att name="colorBarMaximum" type="float">50.0</att>
<att name="colorBarMinimum" type="float">0.02</att>
<att name="colorBarScale">Log</att>
<att name="colorBarPalette">Rainbow</att>
<att name="colorBarPalette">Spectral</att>
<att name="long_name">Suspended Particulate Matter</att>
<att name="units">mg/m^3</att>
</addAttributes>
Expand Down
12 changes: 6 additions & 6 deletions datasets.d/development/sentinel_3A_POLYMER_8Day.xml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
<att name="colorBarMaximum" type="float">50.0</att>
<att name="colorBarMinimum" type="float">0.02</att>
<att name="colorBarScale">Log</att>
<att name="colorBarPalette">Rainbow</att>
<att name="colorBarPalette">Spectral</att>
</addAttributes>
</dataVariable>
<dataVariable>
Expand All @@ -247,7 +247,7 @@
<att name="colorBarMaximum" type="float">5.0</att>
<att name="colorBarMinimum" type="float">0.005</att>
<att name="colorBarScale">Log</att>
<att name="colorBarPalette">KT_thermal</att>
<att name="colorBarPalette">Spectral</att>
</addAttributes>
</dataVariable>
<dataVariable>
Expand Down Expand Up @@ -284,7 +284,7 @@
<att name="colorBarMaximum" type="float">50.0</att>
<att name="colorBarMinimum" type="float">0.02</att>
<att name="colorBarScale">Log</att>
<att name="colorBarPalette">Rainbow</att>
<att name="colorBarPalette">Spectral</att>
</addAttributes>
</dataVariable>
<dataVariable>
Expand All @@ -306,7 +306,7 @@
<att name="colorBarMaximum" type="float">40.0</att>
<att name="colorBarMinimum" type="float">0.15</att>
<att name="colorBarScale">Log</att>
<att name="colorBarPalette">Rainbow</att>
<att name="colorBarPalette">Spectral</att>
</addAttributes>
</dataVariable>
<dataVariable>
Expand All @@ -328,7 +328,7 @@
<att name="colorBarMaximum" type="float">5.0</att>
<att name="colorBarMinimum" type="float">0.005</att>
<att name="colorBarScale">Log</att>
<att name="colorBarPalette">KT_thermal</att>
<att name="colorBarPalette">Spectral</att>
</addAttributes>
</dataVariable>
<dataVariable>
Expand Down Expand Up @@ -366,7 +366,7 @@
<att name="colorBarMaximum" type="float">40.0</att>
<att name="colorBarMinimum" type="float">0.15</att>
<att name="colorBarScale">Log</att>
<att name="colorBarPalette">Rainbow</att>
<att name="colorBarPalette">Spectral</att>
</addAttributes>
</dataVariable>
</dataset>
24 changes: 24 additions & 0 deletions erddap/content/cptfiles/Spectral.cpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
0 144 0 111 1 87 0 168
1 87 0 168 2 51 0 204
2 51 0 204 3 9 0 246
3 9 0 246 4 0 96 254
4 0 96 254 5 0 202 255
5 0 202 255 6 0 255 239
6 0 255 239 7 0 255 175
7 0 255 175 8 0 255 119
8 0 255 119 9 0 255 83
9 0 255 83 10 48 255 0
10 48 255 0 11 152 245 0
11 152 245 0 12 255 235 0
12 255 235 0 13 255 220 0
13 255 220 0 14 255 205 0
14 255 205 0 15 255 175 0
15 255 175 0 16 255 135 0
16 255 135 0 17 255 115 0
17 255 115 0 18 255 95 0
18 255 95 0 19 255 15 0
19 255 15 0 20 215 0 0
20 215 0 0 21 140 0 0
B 0 0 0
F 255 255 255
N 128 128 128

0 comments on commit 05c5230

Please sign in to comment.