[GRASS-SVN] r30831 - in grass-addons/raster/r.colors.tools: . palettes

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 1 06:26:44 EDT 2008


Author: hamish
Date: 2008-04-01 06:26:44 -0400 (Tue, 01 Apr 2008)
New Revision: 30831

Added:
   grass-addons/raster/r.colors.tools/palettes/
   grass-addons/raster/r.colors.tools/palettes/palette_chl_etc.gcolors
   grass-addons/raster/r.colors.tools/palettes/palette_sst.gcolors
Log:
GRASS Color rules for processed MODIS Ocean Color SST and Chlorophyll a Products

#### create color rules ####
# Original palettes from Goddard's OceanColor
#   http://oceancolor.gsfc.nasa.gov/PRODUCTS/colorbars.html

# scale 0-255 to 0-65535 and then convert to chlor-a values
echo "# Color rules for MODIS Chloropyll-a" > palette_chl_etc.gcolors
Slope=5.813776e-05
Intercept=-2
cat palette_chl_etc.txt | grep -v '^#' | \
  awk -v Slope=$Slope -v Intercept=$Intercept \
      '{ printf("%f %d:%d:%d\n", \
         10^((Slope * (($1 +1)^2 -1)) + Intercept), $2, $3, $4)}' \
      >> palette_chl_etc.gcolors
echo "nv black" >> palette_chl_etc.gcolors
# better: edit last rule to be 64.574061 100:0:0

# scale 0-255 to 0-65535 and then convert to temperature values
echo "# Color rules for MODIS SST" > palette_sst.gcolors
Slope=0.000717185
Intercept=-2
cat palette_sst.txt | grep -v '^#' | \
  awk -v Slope=$Slope -v Intercept=$Intercept \
      '{ printf("%f %d:%d:%d\n", \
         (Slope * (($1 +1)^2 -1) + Intercept), $2, $3, $4)}' \
      >> palette_sst.gcolors
echo "nv black" >> palette_sst.gcolors
# better: edit last rule to be 45.000719 206:206:206



Added: grass-addons/raster/r.colors.tools/palettes/palette_chl_etc.gcolors
===================================================================
--- grass-addons/raster/r.colors.tools/palettes/palette_chl_etc.gcolors	                        (rev 0)
+++ grass-addons/raster/r.colors.tools/palettes/palette_chl_etc.gcolors	2008-04-01 10:26:44 UTC (rev 30831)
@@ -0,0 +1,261 @@
+# Color rules for MODIS Chloropyll-a
+#  Original palettes from Goddard's OceanColor
+#  http://oceancolor.gsfc.nasa.gov/PRODUCTS/colorbars.html
+#
+nv black
+0.010000 0:0:0
+0.010004 144:0:111
+0.010011 141:0:114
+0.010020 138:0:117
+0.010032 135:0:120
+0.010047 132:0:123
+0.010064 129:0:126
+0.010085 126:0:129
+0.010108 123:0:132
+0.010133 120:0:135
+0.010162 117:0:138
+0.010193 114:0:141
+0.010227 111:0:144
+0.010264 108:0:147
+0.010304 105:0:150
+0.010347 102:0:153
+0.010393 99:0:156
+0.010442 96:0:159
+0.010494 93:0:162
+0.010549 90:0:165
+0.010607 87:0:168
+0.010668 84:0:171
+0.010732 81:0:174
+0.010800 78:0:177
+0.010871 75:0:180
+0.010946 72:0:183
+0.011024 69:0:186
+0.011105 66:0:189
+0.011190 63:0:192
+0.011279 60:0:195
+0.011371 57:0:198
+0.011468 54:0:201
+0.011568 51:0:204
+0.011672 48:0:207
+0.011780 45:0:210
+0.011893 42:0:213
+0.012010 39:0:216
+0.012131 36:0:219
+0.012257 33:0:222
+0.012387 30:0:225
+0.012522 27:0:228
+0.012662 24:0:231
+0.012807 21:0:234
+0.012957 18:0:237
+0.013112 15:0:240
+0.013273 12:0:243
+0.013439 9:0:246
+0.013611 6:0:249
+0.013789 0:0:252
+0.013973 0:0:255
+0.014163 0:5:255
+0.014360 0:10:255
+0.014563 0:16:255
+0.014773 0:21:255
+0.014990 0:26:255
+0.015215 0:32:255
+0.015447 0:37:255
+0.015686 0:42:255
+0.015934 0:48:255
+0.016190 0:53:255
+0.016454 0:58:255
+0.016727 0:64:255
+0.017009 0:69:255
+0.017301 0:74:255
+0.017602 0:80:255
+0.017914 0:85:255
+0.018236 0:90:255
+0.018568 0:96:255
+0.018912 0:101:255
+0.019267 0:106:255
+0.019634 0:112:255
+0.020014 0:117:255
+0.020406 0:122:255
+0.020812 0:128:255
+0.021231 0:133:255
+0.021664 0:138:255
+0.022113 0:144:255
+0.022576 0:149:255
+0.023056 0:154:255
+0.023552 0:160:255
+0.024065 0:165:255
+0.024596 0:170:255
+0.025145 0:176:255
+0.025714 0:181:255
+0.026302 0:186:255
+0.026911 0:192:255
+0.027541 0:197:255
+0.028194 0:202:255
+0.028870 0:208:255
+0.029570 0:213:255
+0.030296 0:218:255
+0.031047 0:224:255
+0.031826 0:229:255
+0.032632 0:234:255
+0.033468 0:240:255
+0.034335 0:245:255
+0.035234 0:250:255
+0.036166 0:255:255
+0.037132 0:255:247
+0.038135 0:255:239
+0.039175 0:255:231
+0.040254 0:255:223
+0.041374 0:255:215
+0.042536 0:255:207
+0.043743 0:255:199
+0.044996 0:255:191
+0.046298 0:255:183
+0.047650 0:255:175
+0.049054 0:255:167
+0.050514 0:255:159
+0.052030 0:255:151
+0.053607 0:255:143
+0.055246 0:255:135
+0.056951 0:255:127
+0.058724 0:255:119
+0.060568 0:255:111
+0.062487 0:255:103
+0.064484 0:255:95
+0.066563 0:255:87
+0.068727 0:255:79
+0.070980 0:255:71
+0.073327 0:255:63
+0.075772 0:255:55
+0.078319 0:255:47
+0.080974 0:255:39
+0.083741 0:255:31
+0.086626 0:255:23
+0.089634 0:255:15
+0.092771 0:255:0
+0.096044 8:255:0
+0.099459 16:255:0
+0.103023 24:255:0
+0.106743 32:255:0
+0.110628 40:255:0
+0.114684 48:255:0
+0.118921 56:255:0
+0.123347 64:255:0
+0.127973 72:255:0
+0.132807 80:255:0
+0.137861 88:255:0
+0.143146 96:255:0
+0.148673 104:255:0
+0.154455 112:255:0
+0.160504 120:255:0
+0.166835 128:255:0
+0.173463 136:255:0
+0.180402 144:255:0
+0.187668 152:255:0
+0.195280 160:255:0
+0.203255 168:255:0
+0.211612 176:255:0
+0.220372 184:255:0
+0.229556 192:255:0
+0.239187 200:255:0
+0.249288 208:255:0
+0.259886 216:255:0
+0.271006 224:255:0
+0.282679 232:255:0
+0.294932 240:255:0
+0.307800 248:255:0
+0.321315 255:255:0
+0.335513 255:251:0
+0.350432 255:247:0
+0.366113 255:243:0
+0.382598 255:239:0
+0.399932 255:235:0
+0.418163 255:231:0
+0.437343 255:227:0
+0.457525 255:223:0
+0.478766 255:219:0
+0.501127 255:215:0
+0.524674 255:211:0
+0.549474 255:207:0
+0.575600 255:203:0
+0.603130 255:199:0
+0.632146 255:195:0
+0.662735 255:191:0
+0.694990 255:187:0
+0.729011 255:183:0
+0.764901 255:179:0
+0.802773 255:175:0
+0.842747 255:171:0
+0.884947 255:167:0
+0.929510 255:163:0
+0.976577 255:159:0
+1.026303 255:155:0
+1.078850 255:151:0
+1.134391 255:147:0
+1.193111 255:143:0
+1.255206 255:139:0
+1.320886 255:135:0
+1.390376 255:131:0
+1.463913 255:127:0
+1.541752 255:123:0
+1.624165 255:119:0
+1.711441 255:115:0
+1.803891 255:111:0
+1.901843 255:107:0
+2.005651 255:103:0
+2.115691 255:99:0
+2.232367 255:95:0
+2.356107 255:91:0
+2.487372 255:87:0
+2.626654 255:83:0
+2.774478 255:79:0
+2.931405 255:75:0
+3.098038 255:71:0
+3.275020 255:67:0
+3.463039 255:63:0
+3.662833 255:59:0
+3.875191 255:55:0
+4.100958 255:51:0
+4.341041 255:47:0
+4.596410 255:43:0
+4.868104 255:39:0
+5.157238 255:35:0
+5.465009 255:31:0
+5.792696 255:27:0
+6.141677 255:23:0
+6.513425 255:19:0
+6.909525 255:15:0
+7.331675 255:11:0
+7.781701 255:7:0
+8.261561 255:3:0
+8.773360 255:0:0
+9.319360 250:0:0
+9.901990 245:0:0
+10.523863 240:0:0
+11.187786 235:0:0
+11.896778 230:0:0
+12.654089 225:0:0
+13.463211 220:0:0
+14.327906 215:0:0
+15.252220 210:0:0
+16.240510 205:0:0
+17.297468 200:0:0
+18.428149 195:0:0
+19.637995 190:0:0
+20.932874 185:0:0
+22.319108 180:0:0
+23.803515 175:0:0
+25.393446 170:0:0
+27.096828 165:0:0
+28.922214 160:0:0
+30.878835 155:0:0
+32.976651 150:0:0
+35.226416 145:0:0
+37.639743 140:0:0
+40.229174 135:0:0
+43.008259 130:0:0
+45.991638 125:0:0
+49.195137 120:0:0
+52.635862 115:0:0
+56.332313 110:0:0
+60.304498 105:0:0
+64.574061 100:0:0

Added: grass-addons/raster/r.colors.tools/palettes/palette_sst.gcolors
===================================================================
--- grass-addons/raster/r.colors.tools/palettes/palette_sst.gcolors	                        (rev 0)
+++ grass-addons/raster/r.colors.tools/palettes/palette_sst.gcolors	2008-04-01 10:26:44 UTC (rev 30831)
@@ -0,0 +1,261 @@
+# Color rules for MODIS SST
+#  Original palettes from Goddard's OceanColor
+#  http://oceancolor.gsfc.nasa.gov/PRODUCTS/colorbars.html
+#
+nv black
+-2.000000 91:10:118
+-1.997848 99:9:139
+-1.994263 112:7:171
+-1.989242 124:7:202
+-1.982788 130:7:223
+-1.974899 128:7:234
+-1.965575 120:7:238
+-1.954817 110:7:238
+-1.942625 100:7:239
+-1.928999 88:7:239
+-1.913938 73:7:239
+-1.897443 54:7:239
+-1.879513 34:8:238
+-1.860149 18:8:236
+-1.839351 11:8:233
+-1.817118 8:8:228
+-1.793451 8:8:224
+-1.768349 8:8:221
+-1.741813 8:8:217
+-1.713843 8:8:212
+-1.684439 8:8:207
+-1.653600 8:8:201
+-1.621326 8:8:196
+-1.587619 8:8:191
+-1.552477 8:8:185
+-1.515900 8:8:179
+-1.477889 8:8:173
+-1.438444 8:8:166
+-1.397565 8:8:159
+-1.355251 8:8:153
+-1.311502 8:11:147
+-1.266320 8:16:139
+-1.219703 8:23:130
+-1.171651 8:30:121
+-1.122166 8:38:114
+-1.071245 8:46:109
+-1.018891 8:54:106
+-0.965102 8:62:104
+-0.909879 8:70:104
+-0.853221 8:78:104
+-0.795129 8:86:106
+-0.735603 8:93:107
+-0.674642 8:98:109
+-0.612247 8:100:112
+-0.548418 8:99:114
+-0.483154 8:98:117
+-0.416456 8:97:122
+-0.348323 8:98:130
+-0.278756 8:101:139
+-0.207755 8:104:147
+-0.135319 8:108:152
+-0.061449 8:113:155
+0.013855 8:118:157
+0.090594 8:123:158
+0.168767 8:128:159
+0.248375 8:133:159
+0.329417 8:136:160
+0.411893 8:140:162
+0.495804 8:145:163
+0.581149 8:150:165
+0.667928 8:156:166
+0.756142 8:161:167
+0.845790 8:166:169
+0.936873 8:172:172
+1.029389 8:177:177
+1.123341 8:182:182
+1.218726 8:187:187
+1.315546 8:192:192
+1.413801 8:197:197
+1.513489 8:200:200
+1.614612 8:204:204
+1.717170 8:209:209
+1.821162 8:213:213
+1.926588 8:216:216
+2.033448 8:219:219
+2.141743 8:222:222
+2.251473 8:225:225
+2.362636 8:227:227
+2.475234 8:230:230
+2.589267 8:233:233
+2.704734 8:235:235
+2.821635 8:237:236
+2.939970 8:238:234
+3.059740 8:238:229
+3.180944 8:238:223
+3.303583 8:237:216
+3.427656 8:235:209
+3.553163 8:234:202
+3.680105 8:232:192
+3.808481 8:231:178
+3.938292 8:230:162
+4.069537 8:229:147
+4.202216 8:227:133
+4.336329 8:226:123
+4.471877 8:224:116
+4.608860 8:221:114
+4.747276 8:219:114
+4.887128 8:216:115
+5.028413 8:213:117
+5.171133 8:209:118
+5.315287 8:204:118
+5.460876 8:199:117
+5.607898 8:193:115
+5.756356 8:188:112
+5.906247 8:184:107
+6.057573 8:181:99
+6.210334 8:178:91
+6.364529 8:175:84
+6.520158 8:172:81
+6.677221 8:169:80
+6.835719 8:164:80
+6.995651 8:159:80
+7.157018 8:153:80
+7.319819 8:148:79
+7.484054 8:143:79
+7.649724 8:138:79
+7.816828 8:134:78
+7.985367 8:132:75
+8.155340 8:134:70
+8.326747 8:137:63
+8.499588 8:140:56
+8.673864 8:140:48
+8.849575 8:139:37
+9.026719 9:138:24
+9.205298 14:139:14
+9.385312 24:141:9
+9.566760 37:146:8
+9.749642 47:151:8
+9.933958 52:156:8
+10.119709 55:161:8
+10.306895 57:166:8
+10.495514 60:172:8
+10.685568 65:177:8
+10.877057 70:182:8
+11.069979 75:187:8
+11.264337 80:192:8
+11.460128 85:196:8
+11.657354 89:199:8
+11.856014 95:201:8
+12.056109 103:204:8
+12.257638 110:206:8
+12.460601 118:209:8
+12.664999 126:211:8
+12.870831 134:214:8
+13.078097 142:217:8
+13.286798 151:219:8
+13.496933 160:222:8
+13.708503 169:225:8
+13.921507 179:227:8
+14.135945 187:229:8
+14.351818 195:230:8
+14.569125 205:230:8
+14.787866 215:230:8
+15.008042 223:229:8
+15.229652 226:227:8
+15.452697 225:224:8
+15.677176 224:221:8
+15.903089 224:217:8
+16.130437 224:211:8
+16.359219 224:205:8
+16.589435 224:198:8
+16.821086 224:191:8
+17.054171 224:185:8
+17.288691 224:180:8
+17.524644 224:174:8
+17.762033 224:166:8
+18.000855 224:159:8
+18.241112 224:151:8
+18.482804 224:143:8
+18.725929 224:135:8
+18.970489 224:127:8
+19.216484 224:119:8
+19.463913 224:111:8
+19.712776 224:103:8
+19.963073 224:95:8
+20.214805 224:89:8
+20.467972 224:84:8
+20.722572 224:78:8
+20.978607 223:70:8
+21.236077 223:63:8
+21.494981 223:55:8
+21.755319 222:46:8
+22.017091 221:37:8
+22.280298 219:28:8
+22.544939 216:19:8
+22.811015 213:12:8
+23.078525 209:9:8
+23.347469 204:8:8
+23.617848 200:8:8
+23.889661 196:8:8
+24.162909 190:8:8
+24.437591 182:8:8
+24.713707 175:8:8
+24.991257 167:8:8
+25.270242 159:8:8
+25.550662 151:8:8
+25.832515 143:8:8
+26.115804 135:8:8
+26.400526 127:8:8
+26.686683 120:8:8
+26.974274 115:8:8
+27.263300 110:8:8
+27.553759 104:8:8
+27.845654 108:13:13
+28.138982 112:19:19
+28.433745 114:22:22
+28.729943 115:26:26
+29.027575 118:30:30
+29.326641 119:34:33
+29.627141 121:38:38
+29.929076 123:41:41
+30.232445 125:45:45
+30.537249 127:49:49
+30.843487 128:52:53
+31.151159 130:56:56
+31.460266 132:60:60
+31.770807 134:64:63
+32.082783 136:67:67
+32.396193 138:71:70
+32.711037 140:75:74
+33.027315 142:79:78
+33.345028 143:82:82
+33.664176 145:85:85
+33.984757 147:89:90
+34.306773 149:93:93
+34.630224 150:97:97
+34.955109 152:100:100
+35.281428 154:104:104
+35.609181 156:107:108
+35.938369 158:112:111
+36.268992 160:115:115
+36.601048 162:119:119
+36.934539 164:123:123
+37.269465 165:126:126
+37.605824 168:130:130
+37.943619 169:134:134
+38.282847 170:138:137
+38.623510 173:141:141
+38.965607 175:145:145
+39.309139 176:149:149
+39.654105 178:153:153
+40.000505 181:156:156
+40.348340 182:159:159
+40.697609 183:163:163
+41.048312 185:167:167
+41.400450 188:170:171
+41.754022 190:174:174
+42.109029 191:178:178
+42.465470 193:182:182
+42.823345 195:185:185
+43.182655 197:189:189
+43.543399 199:192:193
+43.905577 200:197:197
+44.269190 202:200:201
+44.634237 204:204:204
+45.000719 206:206:206



More information about the grass-commit mailing list