*=========================================================== * Author : Martin V. Mathew, email: vmartinmathew@gmail.com * Prepared on : 14 May 2011 *=========================================================== function main(args) cmapNos=20 if (args='') say 'Error in use of script colormap_lib.gs' say 'usage is as given below' say 'Usage: colormap_lib No. representng required colormap ' say 'No. representng required colormap 0 to 'cmapNos say ' ---> An argument '1' will lists all the available colormaps in function' return endif ReqCmap = subwrd(args,1) listFlag=subwrd(args,2) if(listFlag=1) say 'Colormap No 1 <---> 20 are orginal colormaps' say 'Colormap No 20 <---> 'cmapNos' are colormaps generated be mixing the orginal ones' say '' say 'No Colormap Description' say '&&&&&&&&& Orginal Colormaps &&&&&&&&&&&&&&' say '' say '=====Shades of single color (2) =================' say ' 1 copper Dark Brown to light shade' say ' 2 gray Black to White ' say '=====Shades of two colors (8) =================' say '' say ' 3 cool Blue <-->Purple' say ' 4 gebco Blue <-->Purple (almost same as cool)' say ' 5 ocean Deep Blue<-->Green' say ' 6 hot Deep Red <-->Yellow' say ' 7 red2green Red <--> Green ' say ' 8 green2red Green<-->Red' say ' 9 polar Blue <-->Red' say '10 split Blue <-->Red but starts with light blue darkens then Deep Red, gradually fades' say '=====Shades of rainbow colors(7) =================' say '' say '11 rainbow Purple--Blue--Green--Yellow--Red' say '12 wysiwyg Deep Blue--Green--Yellow--Red--shades of pink' say '13 jet Moderately Blue --fades to white--Yellow--Red' say '14 nogreen Light Blue---Shades of Sky Blue Yellow(3 but not enough contrast) gradually changes to Light Red' say '15 seis Red--fades to Yellow--Green--Blue ' say '16 haxby Blue--Green--Yellow--Red--shades of Pink' say '17 sealand light Purple--light Blue--Green(6 but not enough contrast)--fades to Pink' say '' say '=====A littile chaotic colormaps(3) =================' say '18 relif Dark Blue fades to white--1 Green--Brownish yellow fades to ivory' say '19 globe Purple--Light Blue--1 green--Sand Stone Yellow--changes to Mahagony--fades to shades of pinkish white' say '20 topo Purple--Green--Dark Yellow--Mahagony--Teak--Green--shades of Sandstone Yellow' say 'use command: set ccols 16 17 ............37 to specify the required colors after calling this function' say 'Please refer URL: http://www.iges.org/grads/gadoc/gadocindex.html' endif if (ReqCmap>=1 & ReqCmap<=cmapNos) *&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *=====Shades of single color (2) ================= *&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *================================================================================== * 1) Copper colormap if (ReqCmap=1) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--copper colors' say 'cpt file created by: makecpt -Ccopper -T-11/11/1' *======This is copper colors * # cpt file created by: makecpt -Ccopper -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 0 0 0' 'set rgb 17 15 9 6' 'set rgb 18 29 18 12' 'set rgb 19 44 27 17' 'set rgb 20 58 36 23' 'set rgb 21 73 45 29' 'set rgb 22 87 54 35' 'set rgb 23 102 63 41' 'set rgb 24 116 73 47' 'set rgb 25 131 82 52' 'set rgb 26 145 91 58' 'set rgb 27 160 100 64' 'set rgb 28 175 109 70' 'set rgb 29 189 118 76' 'set rgb 30 204 127 81' 'set rgb 31 218 136 87' 'set rgb 32 233 145 93' 'set rgb 33 247 154 99' 'set rgb 34 255 163 105' 'set rgb 35 255 172 111' 'set rgb 36 255 182 116' 'set rgb 37 255 191 122' endif *================================================================================== * 2) Gray colormap if (ReqCmap=2) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Gray colors' say 'cpt file created by: makecpt -Cgray -T-11/11/1' *======This is gray colors * # cpt file created by: makecpt -Cgray -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 0 0 0' 'set rgb 17 12 12 12' 'set rgb 18 23 23 23' 'set rgb 19 35 35 35' 'set rgb 20 46 46 46' 'set rgb 21 58 58 58' 'set rgb 22 70 70 70' 'set rgb 23 81 81 81' 'set rgb 24 93 93 93' 'set rgb 25 104 104 104' 'set rgb 26 116 116 116' 'set rgb 27 128 128 128' 'set rgb 28 139 139 139' 'set rgb 29 151 151 151' 'set rgb 30 162 162 162' 'set rgb 31 174 174 174' 'set rgb 32 185 185 185' 'set rgb 33 197 197 197' 'set rgb 34 209 209 209' 'set rgb 35 220 220 220' 'set rgb 36 232 232 232' 'set rgb 37 243 243 243' endif *&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *========Shades of two colors (8) ================= *&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *================================================================================== * 3) Cool colormap if (ReqCmap=3) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Cool colors' say 'cpt file created by: makecpt -Ccool -T-11/11/1' *======This is cool colors * # cpt file created by: makecpt -Ccool -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 0 255 255' 'set rgb 17 12 243 255' 'set rgb 18 23 232 255' 'set rgb 19 35 220 255' 'set rgb 20 46 209 255' 'set rgb 21 58 197 255' 'set rgb 22 70 185 255' 'set rgb 23 81 174 255' 'set rgb 24 93 162 255' 'set rgb 25 104 151 255' 'set rgb 26 116 139 255' 'set rgb 27 128 127 255' 'set rgb 28 139 116 255' 'set rgb 29 151 104 255' 'set rgb 30 162 93 255' 'set rgb 31 174 81 255' 'set rgb 32 185 70 255' 'set rgb 33 197 58 255' 'set rgb 34 209 46 255' 'set rgb 35 220 35 255' 'set rgb 36 232 23 255' 'set rgb 37 243 12 255' endif *================================================================================== * 4) Gebco colormap if (ReqCmap=4) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Gebco colors' say 'cpt file created by: makecpt -Ccool -T-11/11/1' *======This is gebco colors * # cpt file created by: makecpt -Ccool -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 0 255 255' 'set rgb 17 12 243 255' 'set rgb 18 23 232 255' 'set rgb 19 35 220 255' 'set rgb 20 46 209 255' 'set rgb 21 58 197 255' 'set rgb 22 70 185 255' 'set rgb 23 81 174 255' 'set rgb 24 93 162 255' 'set rgb 25 104 151 255' 'set rgb 26 116 139 255' 'set rgb 27 128 127 255' 'set rgb 28 139 116 255' 'set rgb 29 151 104 255' 'set rgb 30 162 93 255' 'set rgb 31 174 81 255' 'set rgb 32 185 70 255' 'set rgb 33 197 58 255' 'set rgb 34 209 46 255' 'set rgb 35 220 35 255' 'set rgb 36 232 23 255' 'set rgb 37 243 12 255' endif *================================================================================== * 5) Ocean colormap if (ReqCmap=5) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Ocean colors' say 'cpt file created by: makecpt -Cocean -T-11/11/1' *======This is ocean colors * # cpt file created by: makecpt -Cocean -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 0 0 0' 'set rgb 17 0 2 9' 'set rgb 18 0 4 18' 'set rgb 19 0 5 27' 'set rgb 20 0 7 36' 'set rgb 21 0 9 45' 'set rgb 22 0 23 64' 'set rgb 23 0 48 91' 'set rgb 24 0 74 118' 'set rgb 25 0 99 145' 'set rgb 26 0 125 173' 'set rgb 27 0 150 200' 'set rgb 28 31 167 194' 'set rgb 29 63 184 188' 'set rgb 30 94 201 183' 'set rgb 31 125 219 177' 'set rgb 32 156 236 171' 'set rgb 33 179 246 176' 'set rgb 34 193 248 191' 'set rgb 35 207 250 207' 'set rgb 36 222 251 223' 'set rgb 37 236 253 239' endif *================================================================================== * 6) Hot colormap if (ReqCmap=6) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Hot colors' say 'cpt file created by: makecpt -Chot -T-11/11/1' *======This is hot colors * # cpt file created by: makecpt -Chot -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 0 0 0' 'set rgb 17 31 0 0' 'set rgb 18 62 0 0' 'set rgb 19 93 0 0' 'set rgb 20 124 0 0' 'set rgb 21 155 0 0' 'set rgb 22 185 0 0' 'set rgb 23 216 0 0' 'set rgb 24 247 0 0' 'set rgb 25 255 23 0' 'set rgb 26 255 54 0' 'set rgb 27 255 85 0' 'set rgb 28 255 116 0' 'set rgb 29 255 147 0' 'set rgb 30 255 178 0' 'set rgb 31 255 209 0' 'set rgb 32 255 240 0' 'set rgb 33 255 255 23' 'set rgb 34 255 255 70' 'set rgb 35 255 255 116' 'set rgb 36 255 255 162' 'set rgb 37 255 255 209' endif *================================================================================== * 7) Red2green colormap if (ReqCmap=7) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Red2green colors' say 'cpt file created by: makecpt -Cred2green -T-11/11/1' *======This is red2green * # cpt file created by: makecpt -Cred2green -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 255 0 0' 'set rgb 17 255 23 23' 'set rgb 18 255 46 46' 'set rgb 19 255 70 70' 'set rgb 20 255 93 93' 'set rgb 21 255 116 116' 'set rgb 22 255 139 139' 'set rgb 23 255 162 162' 'set rgb 24 255 185 185' 'set rgb 25 255 209 209' 'set rgb 26 255 232 232' 'set rgb 27 255 255 255' 'set rgb 28 232 255 232' 'set rgb 29 209 255 209' 'set rgb 30 185 255 185' 'set rgb 31 162 255 162' 'set rgb 32 139 255 139' 'set rgb 33 116 255 116' 'set rgb 34 93 255 93' 'set rgb 35 70 255 70' 'set rgb 36 46 255 46' 'set rgb 37 23 255 23' endif *================================================================================== * 8) Green2red colormap if (ReqCmap=8) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--green2red colors' say 'cpt file created by: makecpt -Cred2green -T-11/11/1' *======This is green2red * # cpt file created by: makecpt -Cred2green -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 23 255 23' 'set rgb 17 46 255 46' 'set rgb 18 70 255 70' 'set rgb 19 93 255 93' 'set rgb 20 116 255 116' 'set rgb 21 139 255 139' 'set rgb 22 162 255 162' 'set rgb 23 185 255 185' 'set rgb 24 209 255 209' 'set rgb 25 232 255 232' 'set rgb 26 255 255 255' 'set rgb 27 255 232 232' 'set rgb 28 255 209 209' 'set rgb 29 255 185 185' 'set rgb 30 255 162 162' 'set rgb 31 255 139 139' 'set rgb 32 255 116 116' 'set rgb 33 255 93 93' 'set rgb 34 255 70 70' 'set rgb 35 255 46 46' 'set rgb 36 255 23 23' 'set rgb 37 255 0 0' endif *================================================================================== * 9) Polar colormap if (ReqCmap=9) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--polar colors' say 'cpt file created by: makecpt -Cpolar -T-11/11/1' *======This is polar * # cpt file created by: makecpt -Cpolar -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 0 0 255' 'set rgb 17 23 23 255' 'set rgb 18 46 46 255' 'set rgb 19 70 70 255' 'set rgb 20 93 93 255' 'set rgb 21 116 116 255' 'set rgb 22 139 139 255' 'set rgb 23 162 162 255' 'set rgb 24 185 185 255' 'set rgb 25 209 209 255' 'set rgb 26 232 232 255' 'set rgb 27 255 255 255' 'set rgb 28 255 232 232' 'set rgb 29 255 209 209' 'set rgb 30 255 185 185' 'set rgb 31 255 162 162' 'set rgb 32 255 139 139' 'set rgb 33 255 116 116' 'set rgb 34 255 93 93' 'set rgb 35 255 70 70' 'set rgb 36 255 46 46' 'set rgb 37 255 23 23' endif *================================================================================== * 10) Split colormap if (ReqCmap=10) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--split colors' say 'cpt file created by: makecpt -Csplit -T-11/11/1' *======This is split colors * # cpt file created by: makecpt -Csplit -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 128 128 255' 'set rgb 17 105 105 232' 'set rgb 18 81 81 209' 'set rgb 19 58 58 186' 'set rgb 20 35 35 163' 'set rgb 21 12 12 140' 'set rgb 22 0 0 116' 'set rgb 23 0 0 93' 'set rgb 24 0 0 70' 'set rgb 25 0 0 47' 'set rgb 26 0 0 23' 'set rgb 27 0 0 0' 'set rgb 28 23 0 0' 'set rgb 29 47 0 0' 'set rgb 30 70 0 0' 'set rgb 31 93 0 0' 'set rgb 32 116 0 0' 'set rgb 33 140 12 12' 'set rgb 34 163 35 35' 'set rgb 35 186 58 58' 'set rgb 36 209 81 81' 'set rgb 37 232 105 105' endif *&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *=========Shades of rainbow colors(7) ================= *&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *================================================================================== * 11) Rainbow colormap if (ReqCmap=11) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--rainbow colors' say 'cpt file created by: makecpt -Crainbow -T-11/11/1' *======This is rainbow * # cpt file created by: makecpt -Crainbow -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 255 0 255' 'set rgb 17 197 0 255' 'set rgb 18 139 0 255' 'set rgb 19 81 0 255' 'set rgb 20 23 0 255' 'set rgb 21 0 35 255' 'set rgb 22 0 92 255' 'set rgb 23 0 151 255' 'set rgb 24 0 209 255' 'set rgb 25 0 255 244' 'set rgb 26 0 255 186' 'set rgb 27 0 255 127' 'set rgb 28 0 255 69' 'set rgb 29 0 255 11' 'set rgb 30 46 255 0' 'set rgb 31 104 255 0' 'set rgb 32 163 255 0' 'set rgb 33 220 255 0' 'set rgb 34 255 232 0' 'set rgb 35 255 174 0' 'set rgb 36 255 116 0' 'set rgb 37 255 58 0' endif *================================================================================== * 12) wysiwyg colormap if (ReqCmap=12) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--wysiwyg colors' say 'cpt file created by: makecpt -Cwysiwyg -T-11/11/1' *======This is wysiwyg * # cpt file created by: makecpt -Cwysiwyg -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 64 0 64' 'set rgb 17 64 0 64' 'set rgb 18 64 0 192' 'set rgb 19 0 64 255' 'set rgb 20 0 128 255' 'set rgb 21 0 160 255' 'set rgb 22 64 192 255' 'set rgb 23 64 224 255' 'set rgb 24 64 255 255' 'set rgb 25 64 255 192' 'set rgb 26 64 255 64' 'set rgb 27 128 255 64' 'set rgb 28 128 255 64' 'set rgb 29 192 255 64' 'set rgb 30 255 255 64' 'set rgb 31 255 224 64' 'set rgb 32 255 160 64' 'set rgb 33 255 96 64' 'set rgb 34 255 32 64' 'set rgb 35 255 96 192' 'set rgb 36 255 160 255' 'set rgb 37 255 224 252' endif *================================================================================== * 13) Jet colormap if (ReqCmap=13) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--jet colors' say 'cpt file created by: makecpt -Cjet -T-11/11/1' *======This is jet * # cpt file created by: makecpt -Cjet -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 0 0 127' 'set rgb 17 0 0 174' 'set rgb 18 0 0 220' 'set rgb 19 0 12 255' 'set rgb 20 0 58 255' 'set rgb 21 0 104 255' 'set rgb 22 0 151 255' 'set rgb 23 0 197 255' 'set rgb 24 0 243 255' 'set rgb 25 255 255 238' 'set rgb 26 255 255 214' 'set rgb 27 255 255 191' 'set rgb 28 255 255 168' 'set rgb 29 255 255 144' 'set rgb 30 255 243 0' 'set rgb 31 255 197 0' 'set rgb 32 255 151 0' 'set rgb 33 255 104 0' 'set rgb 34 255 58 0' 'set rgb 35 255 12 0' 'set rgb 36 220 0 0' 'set rgb 37 174 0 0' endif *================================================================================== * 14) No_green colormap if (ReqCmap=14) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--no_green colors' say 'cpt file created by: makecpt -Cno_green -T-11/11/1' *======This is no_green * # cpt file created by: makecpt -Cno_green -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 32 96 255' 'set rgb 17 32 96 255' 'set rgb 18 32 159 255' 'set rgb 19 32 191 255' 'set rgb 20 32 191 255' 'set rgb 21 0 207 255' 'set rgb 22 42 255 255' 'set rgb 23 85 255 255' 'set rgb 24 85 255 255' 'set rgb 25 127 255 255' 'set rgb 26 170 255 255' 'set rgb 27 255 255 84' 'set rgb 28 255 255 84' 'set rgb 29 255 240 0' 'set rgb 30 255 191 0' 'set rgb 31 255 191 0' 'set rgb 32 255 168 0' 'set rgb 33 255 138 0' 'set rgb 34 255 112 0' 'set rgb 35 255 112 0' 'set rgb 36 255 77 0' 'set rgb 37 255 0 0' endif *================================================================================== * 15) Seis colormap if (ReqCmap=15) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Seis colors' say 'cpt file created by: makecpt -Cseis -T-11/11/1' *======This is seis colors * # cpt file created by: makecpt -Cseis -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 170 0 0' 'set rgb 17 205 0 0' 'set rgb 18 239 0 0' 'set rgb 19 255 19 0' 'set rgb 20 255 54 0' 'set rgb 21 255 89 0' 'set rgb 22 255 123 0' 'set rgb 23 255 158 0' 'set rgb 24 255 193 0' 'set rgb 25 255 228 0' 'set rgb 26 255 255 0' 'set rgb 27 255 255 0' 'set rgb 28 255 255 0' 'set rgb 29 202 255 10' 'set rgb 30 135 255 22' 'set rgb 31 78 253 41' 'set rgb 32 41 247 74' 'set rgb 33 4 241 107' 'set rgb 34 0 181 163' 'set rgb 35 0 116 223' 'set rgb 36 0 65 246' 'set rgb 37 0 33 225' endif *================================================================================== * 16) Haxby colormap if (ReqCmap=16) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Haxby colors' say 'cpt file created by: makecpt -Chaxby -T-11/11/1' *======This is haxby * # cpt file created by: makecpt -Chaxby -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 10 0 121' 'set rgb 17 40 0 150' 'set rgb 18 20 5 175' 'set rgb 19 0 25 212' 'set rgb 20 0 40 224' 'set rgb 21 13 129 248' 'set rgb 22 25 175 255' 'set rgb 23 68 202 255' 'set rgb 24 97 225 240' 'set rgb 25 124 235 200' 'set rgb 26 138 236 174' 'set rgb 27 205 255 162' 'set rgb 28 223 245 141' 'set rgb 29 240 236 121' 'set rgb 30 255 189 87' 'set rgb 31 255 160 69' 'set rgb 32 238 80 78' 'set rgb 33 255 90 90' 'set rgb 34 255 158 158' 'set rgb 35 245 179 174' 'set rgb 36 255 215 215' 'set rgb 37 255 235 235' endif *================================================================================== * 17) Sealand colormap if (ReqCmap=17) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Sealand colors' say 'cpt file created by: makecpt -Csealand -T-11/11/1' *======This is sealand * # cpt file created by: makecpt -Csealand -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 140 102 255' 'set rgb 17 109 102 255' 'set rgb 18 102 126 255' 'set rgb 19 102 158 255' 'set rgb 20 102 189 255' 'set rgb 21 102 220 255' 'set rgb 22 102 252 255' 'set rgb 23 102 255 227' 'set rgb 24 102 255 196' 'set rgb 25 102 255 165' 'set rgb 26 102 255 133' 'set rgb 27 102 255 102' 'set rgb 28 133 255 102' 'set rgb 29 165 255 102' 'set rgb 30 196 255 102' 'set rgb 31 255 247 166' 'set rgb 32 255 223 166' 'set rgb 33 255 199 166' 'set rgb 34 255 174 166' 'set rgb 35 255 173 183' 'set rgb 36 255 183 207' 'set rgb 37 255 193 227' endif *&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *============A littile chaotic colormaps(3) ================= *&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *================================================================================== * 18) Relief colormap if (ReqCmap=18) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Relief colors' say 'cpt file created by: makecpt -Crelief -T-11/11/1' *======This is relief * # cpt file created by: makecpt -Crelief -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 0 0 0' 'set rgb 17 0 4 18' 'set rgb 18 0 7 36' 'set rgb 19 0 23 64' 'set rgb 20 0 74 118' 'set rgb 21 0 125 173' 'set rgb 22 31 167 194' 'set rgb 23 94 201 183' 'set rgb 24 156 236 171' 'set rgb 25 193 248 191' 'set rgb 26 222 251 223' 'set rgb 27 70 120 50' 'set rgb 28 132 112 55' 'set rgb 29 170 150 69' 'set rgb 30 207 187 84' 'set rgb 31 245 225 98' 'set rgb 32 250 233 117' 'set rgb 33 251 235 135' 'set rgb 34 252 238 154' 'set rgb 35 252 242 172' 'set rgb 36 253 246 198' 'set rgb 37 254 251 227' endif *================================================================================== * 19) Globe colormap if (ReqCmap=19) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Globe colors' say 'cpt file created by: makecpt -Cglobe -T-11/11/1' *======This is globe * # cpt file created by: makecpt -Cglobe -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 153 0 255' 'set rgb 17 153 0 255' 'set rgb 18 136 17 255' 'set rgb 19 102 51 255' 'set rgb 20 68 85 255' 'set rgb 21 34 119 255' 'set rgb 22 17 136 255' 'set rgb 23 27 164 255' 'set rgb 24 81 186 255' 'set rgb 25 134 208 255' 'set rgb 26 188 230 255' 'set rgb 27 51 102 0' 'set rgb 28 245 205 146' 'set rgb 29 222 173 57' 'set rgb 30 166 149 28' 'set rgb 31 161 131 17' 'set rgb 32 156 112 6' 'set rgb 33 161 90 81' 'set rgb 34 182 139 139' 'set rgb 35 199 191 191' 'set rgb 36 234 234 234' 'set rgb 37 255 255 255' endif *================================================================================== * 20) Topo colormap if (ReqCmap=20) ************************************************************************************** * Define RGB Colors ************************************************************************************** say 'Colormap selected for the plot--Topo colors' say 'cpt file created by: makecpt -Ctopo -T-11/11/1' *======This is topo * # cpt file created by: makecpt -Ctopo -T-11/11/1 * #COLOR_MODEL = RGB * # 'set rgb 16 201 119 217' 'set rgb 17 166 138 230' 'set rgb 18 138 154 230' 'set rgb 19 138 195 230' 'set rgb 20 144 243 231' 'set rgb 21 133 243 171' 'set rgb 22 158 243 136' 'set rgb 23 211 243 133' 'set rgb 24 243 216 133' 'set rgb 25 237 173 135' 'set rgb 26 221 157 140' 'set rgb 27 116 163 179' 'set rgb 28 147 204 112' 'set rgb 29 208 211 132' 'set rgb 30 235 221 166' 'set rgb 31 243 229 191' 'set rgb 32 251 237 217' 'set rgb 33 255 249 244' 'set rgb 34 255 250 246' 'set rgb 35 255 251 248' 'set rgb 36 255 252 251' 'set rgb 37 255 254 253' endif *@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@2 * Steps to add more colormaps to this function *--------------------------------------------------------------- * Points to note while adding new colormaps * 1) Change the constant "cmapNos" in the beginning of program according to number of colormaps to be added * 2) Select a catogory for new colormap from the list in the begining * (if the new colormap doesn't fit into any make a new catogory) * 3) List the new colormap in corresponding position and include proper description * 4) Insert the new colormap in the required position using if construt given below * 5) Modify subsequnt 'ReqCmap' in if constructs following it, and confirm that the * texts in 'say' statments and comments are relevent with the new upgradation. *================================================================================== * 1) Copper colormap *if (ReqCmap=1) ************************************************************************************** * Define RGB Colors ************************************************************************************** *say 'Colormap selected for the plot--copper colors' *say 'cpt file created by: makecpt -Ccopper -T-11/11/1' *'set rgb.... *endif *@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@2 else say 'Error in function "colormap_lib.gs"' say 'Argument given for function "colormap_lib.gs" is outside the limits' say 'Usage:run colormap_lib.gs No. representng required colormap ' say 'No. representng required colormap 0 to 'cmapNos say ' ---> setting 1 Lists all the available colormaps in function' return endif