Interactive interface for browsing global, full-resolution satellite imagery
New palette and selector styling
Mike McGann1680c4748074
diff --git a/build.xml b/build.xmlindex 9f2d5b187..f27ea779d 100644--- a/build.xml+++ b/build.xml@@ -92,19 +92,19 @@<fileset dir="${basedir}/dev/generate-config/config"/></copy>- <exec executable="python">+ <exec executable="python" failonerror="true"><arg value="${basedir}/dev/generate-config/act2json.py"/><arg value="${build.dir}/config/palettes"/></exec>- <exec executable="python">+ <exec executable="python" failonerror="true"><arg value="${basedir}/dev/generate-config/vrt2json.py"/><arg value="--products-dir"/><arg value="${build.dir}/config/products"/><arg value="${build.dir}/config/palettes"/></exec>- <exec executable="python">+ <exec executable="python" failonerror="true"><arg value="${basedir}/dev/generate-config/generate-config.py"/><arg value="--config-dir"/><arg value="${build.dir}/config"/>diff --git a/css/palette.css b/css/palette.cssindex a75cf077b..e69de29bb 100644--- a/css/palette.css+++ b/css/palette.css@@ -1,22 +0,0 @@-/*-.colorBar {- width: 100px;- height: 30px;- border: 2px solid #aaaaaa;-}-*/--#xpalette-selector .dd-selected-image {- margin-top: 14px;- margin-right: 10px;- border: 1px solid black;-}--#xpalette-selector .dd-option-image {- border: 1px solid black;- margin-right: 10px;-}--#xpalette-selector .dd-option-description {- margin-left: 75px;-}diff --git a/css/sote.css b/css/sote.cssindex 080343365..5fcf61e81 100644--- a/css/sote.css+++ b/css/sote.css@@ -3,7 +3,7 @@ body {min-width:600px;}div {display:block;}.yui-skin-sam .yui-panel {background: transparent; width:700px; font: 13px "Gill Sans", sans-serif; font-weight:100;}-.yui-skin-sam .yui-panel-container .hd{ background:rgba(38, 43, 49, 0.65); color:#ffffff; border:none; padding:0;}+.yui-skin-sam .yui-panel-container .hd{ background:rgba(38, 43, 49, 0.65); color:#ffffff; border-bottom: none; padding:0; padding-left: 10px;}.yui-skin-sam .yui-panel-container .bd{ background:rgba(18, 18, 18, 0.75); color:#d7d7d7;}.yui-skin-sam .yui-panel-container .ft{ background:rgba(18, 18, 18, 0.75); color:#d7d7d7;}.yui-skin-sam .yui-panel-container .bd h3{ color:#FFFFFF; font: 18px "Gill Sans", sans-serif; font-weight:400; text-decoration:none; }diff --git a/data/config b/data/configindex 92f6b578e..9c7693995 100644--- a/data/config+++ b/data/config@@ -7986,9 +7986,7 @@]},"NEO_Aerosol_Depth": {- "description": "Aerosol Optical Depth","id": "NEO_Aerosol_Depth",- "name": "Light to Brown","source": "stock","stops": [{@@ -9779,9 +9777,7 @@]},"NEO_Carbon_Monoxide": {- "description": "Carbon Monoxide","id": "NEO_Carbon_Monoxide",- "name": "Light to Red","source": "stock","stops": [{@@ -11571,10 +11567,1799 @@}]},+ "NEO_Chlorophyll Concentration": {+ "id": "NEO_Chlorophyll Concentration",+ "source": "stock",+ "stops": [+ {+ "a": 255,+ "at": "0.0",+ "b": 88,+ "g": 29,+ "r": 8+ },+ {+ "a": 255,+ "at": "0.00390625",+ "b": 90,+ "g": 30,+ "r": 9+ },+ {+ "a": 255,+ "at": "0.0078125",+ "b": 92,+ "g": 30,+ "r": 10+ },+ {+ "a": 255,+ "at": "0.01171875",+ "b": 94,+ "g": 31,+ "r": 11+ },+ {+ "a": 255,+ "at": "0.015625",+ "b": 96,+ "g": 32,+ "r": 12+ },+ {+ "a": 255,+ "at": "0.01953125",+ "b": 98,+ "g": 33,+ "r": 13+ },+ {+ "a": 255,+ "at": "0.0234375",+ "b": 100,+ "g": 33,+ "r": 14+ },+ {+ "a": 255,+ "at": "0.02734375",+ "b": 102,+ "g": 34,+ "r": 15+ },+ {+ "a": 255,+ "at": "0.03125",+ "b": 103,+ "g": 35,+ "r": 15+ },+ {+ "a": 255,+ "at": "0.03515625",+ "b": 105,+ "g": 36,+ "r": 16+ },+ {+ "a": 255,+ "at": "0.0390625",+ "b": 107,+ "g": 36,+ "r": 17+ },+ {+ "a": 255,+ "at": "0.04296875",+ "b": 109,+ "g": 37,+ "r": 18+ },+ {+ "a": 255,+ "at": "0.046875",+ "b": 111,+ "g": 38,+ "r": 19+ },+ {+ "a": 255,+ "at": "0.05078125",+ "b": 113,+ "g": 39,+ "r": 20+ },+ {+ "a": 255,+ "at": "0.0546875",+ "b": 115,+ "g": 39,+ "r": 21+ },+ {+ "a": 255,+ "at": "0.05859375",+ "b": 117,+ "g": 40,+ "r": 22+ },+ {+ "a": 255,+ "at": "0.0625",+ "b": 119,+ "g": 41,+ "r": 23+ },+ {+ "a": 255,+ "at": "0.06640625",+ "b": 121,+ "g": 42,+ "r": 24+ },+ {+ "a": 255,+ "at": "0.0703125",+ "b": 123,+ "g": 42,+ "r": 25+ },+ {+ "a": 255,+ "at": "0.07421875",+ "b": 125,+ "g": 43,+ "r": 26+ },+ {+ "a": 255,+ "at": "0.078125",+ "b": 127,+ "g": 44,+ "r": 27+ },+ {+ "a": 255,+ "at": "0.08203125",+ "b": 129,+ "g": 45,+ "r": 28+ },+ {+ "a": 255,+ "at": "0.0859375",+ "b": 131,+ "g": 45,+ "r": 29+ },+ {+ "a": 255,+ "at": "0.08984375",+ "b": 133,+ "g": 46,+ "r": 30+ },+ {+ "a": 255,+ "at": "0.09375",+ "b": 134,+ "g": 47,+ "r": 30+ },+ {+ "a": 255,+ "at": "0.09765625",+ "b": 136,+ "g": 48,+ "r": 31+ },+ {+ "a": 255,+ "at": "0.1015625",+ "b": 138,+ "g": 48,+ "r": 32+ },+ {+ "a": 255,+ "at": "0.10546875",+ "b": 140,+ "g": 49,+ "r": 33+ },+ {+ "a": 255,+ "at": "0.109375",+ "b": 142,+ "g": 50,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.11328125",+ "b": 144,+ "g": 51,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.1171875",+ "b": 146,+ "g": 51,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.12109375",+ "b": 148,+ "g": 52,+ "r": 37+ },+ {+ "a": 255,+ "at": "0.125",+ "b": 149,+ "g": 53,+ "r": 37+ },+ {+ "a": 255,+ "at": "0.12890625",+ "b": 149,+ "g": 55,+ "r": 37+ },+ {+ "a": 255,+ "at": "0.1328125",+ "b": 150,+ "g": 56,+ "r": 37+ },+ {+ "a": 255,+ "at": "0.13671875",+ "b": 151,+ "g": 57,+ "r": 37+ },+ {+ "a": 255,+ "at": "0.140625",+ "b": 151,+ "g": 59,+ "r": 37+ },+ {+ "a": 255,+ "at": "0.14453125",+ "b": 152,+ "g": 60,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.1484375",+ "b": 152,+ "g": 61,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.15234375",+ "b": 153,+ "g": 63,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.15625",+ "b": 154,+ "g": 64,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.16015625",+ "b": 154,+ "g": 65,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.1640625",+ "b": 155,+ "g": 66,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.16796875",+ "b": 156,+ "g": 68,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.171875",+ "b": 156,+ "g": 69,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.17578125",+ "b": 157,+ "g": 70,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.1796875",+ "b": 157,+ "g": 72,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.18359375",+ "b": 158,+ "g": 73,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.1875",+ "b": 159,+ "g": 74,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.19140625",+ "b": 159,+ "g": 76,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.1953125",+ "b": 160,+ "g": 77,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.19921875",+ "b": 161,+ "g": 78,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.203125",+ "b": 161,+ "g": 80,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.20703125",+ "b": 162,+ "g": 81,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.2109375",+ "b": 162,+ "g": 82,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.21484375",+ "b": 163,+ "g": 84,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.21875",+ "b": 164,+ "g": 85,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.22265625",+ "b": 164,+ "g": 86,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.2265625",+ "b": 165,+ "g": 87,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.23046875",+ "b": 166,+ "g": 89,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.234375",+ "b": 166,+ "g": 90,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.23828125",+ "b": 167,+ "g": 91,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.2421875",+ "b": 167,+ "g": 93,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.24609375",+ "b": 168,+ "g": 94,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.25",+ "b": 169,+ "g": 96,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.25390625",+ "b": 170,+ "g": 97,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.2578125",+ "b": 170,+ "g": 99,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.26171875",+ "b": 171,+ "g": 100,+ "r": 33+ },+ {+ "a": 255,+ "at": "0.265625",+ "b": 172,+ "g": 102,+ "r": 33+ },+ {+ "a": 255,+ "at": "0.26953125",+ "b": 173,+ "g": 104,+ "r": 33+ },+ {+ "a": 255,+ "at": "0.2734375",+ "b": 173,+ "g": 105,+ "r": 33+ },+ {+ "a": 255,+ "at": "0.27734375",+ "b": 174,+ "g": 107,+ "r": 33+ },+ {+ "a": 255,+ "at": "0.28125",+ "b": 175,+ "g": 108,+ "r": 33+ },+ {+ "a": 255,+ "at": "0.28515625",+ "b": 176,+ "g": 110,+ "r": 32+ },+ {+ "a": 255,+ "at": "0.2890625",+ "b": 176,+ "g": 112,+ "r": 32+ },+ {+ "a": 255,+ "at": "0.29296875",+ "b": 177,+ "g": 113,+ "r": 32+ },+ {+ "a": 255,+ "at": "0.296875",+ "b": 178,+ "g": 115,+ "r": 32+ },+ {+ "a": 255,+ "at": "0.30078125",+ "b": 179,+ "g": 116,+ "r": 32+ },+ {+ "a": 255,+ "at": "0.3046875",+ "b": 179,+ "g": 118,+ "r": 32+ },+ {+ "a": 255,+ "at": "0.30859375",+ "b": 180,+ "g": 120,+ "r": 32+ },+ {+ "a": 255,+ "at": "0.3125",+ "b": 181,+ "g": 121,+ "r": 31+ },+ {+ "a": 255,+ "at": "0.31640625",+ "b": 182,+ "g": 123,+ "r": 31+ },+ {+ "a": 255,+ "at": "0.3203125",+ "b": 182,+ "g": 124,+ "r": 31+ },+ {+ "a": 255,+ "at": "0.32421875",+ "b": 183,+ "g": 126,+ "r": 31+ },+ {+ "a": 255,+ "at": "0.328125",+ "b": 184,+ "g": 127,+ "r": 31+ },+ {+ "a": 255,+ "at": "0.33203125",+ "b": 185,+ "g": 129,+ "r": 31+ },+ {+ "a": 255,+ "at": "0.3359375",+ "b": 185,+ "g": 131,+ "r": 30+ },+ {+ "a": 255,+ "at": "0.33984375",+ "b": 186,+ "g": 132,+ "r": 30+ },+ {+ "a": 255,+ "at": "0.34375",+ "b": 187,+ "g": 134,+ "r": 30+ },+ {+ "a": 255,+ "at": "0.34765625",+ "b": 188,+ "g": 135,+ "r": 30+ },+ {+ "a": 255,+ "at": "0.3515625",+ "b": 188,+ "g": 137,+ "r": 30+ },+ {+ "a": 255,+ "at": "0.35546875",+ "b": 189,+ "g": 139,+ "r": 30+ },+ {+ "a": 255,+ "at": "0.359375",+ "b": 190,+ "g": 140,+ "r": 29+ },+ {+ "a": 255,+ "at": "0.36328125",+ "b": 191,+ "g": 142,+ "r": 29+ },+ {+ "a": 255,+ "at": "0.3671875",+ "b": 191,+ "g": 143,+ "r": 29+ },+ {+ "a": 255,+ "at": "0.37109375",+ "b": 192,+ "g": 145,+ "r": 29+ },+ {+ "a": 255,+ "at": "0.375",+ "b": 192,+ "g": 146,+ "r": 30+ },+ {+ "a": 255,+ "at": "0.37890625",+ "b": 192,+ "g": 147,+ "r": 31+ },+ {+ "a": 255,+ "at": "0.3828125",+ "b": 192,+ "g": 148,+ "r": 32+ },+ {+ "a": 255,+ "at": "0.38671875",+ "b": 193,+ "g": 150,+ "r": 34+ },+ {+ "a": 255,+ "at": "0.390625",+ "b": 193,+ "g": 151,+ "r": 35+ },+ {+ "a": 255,+ "at": "0.39453125",+ "b": 193,+ "g": 152,+ "r": 36+ },+ {+ "a": 255,+ "at": "0.3984375",+ "b": 193,+ "g": 153,+ "r": 37+ },+ {+ "a": 255,+ "at": "0.40234375",+ "b": 193,+ "g": 154,+ "r": 38+ },+ {+ "a": 255,+ "at": "0.40625",+ "b": 193,+ "g": 155,+ "r": 39+ },+ {+ "a": 255,+ "at": "0.41015625",+ "b": 193,+ "g": 157,+ "r": 40+ },+ {+ "a": 255,+ "at": "0.4140625",+ "b": 193,+ "g": 158,+ "r": 41+ },+ {+ "a": 255,+ "at": "0.41796875",+ "b": 194,+ "g": 159,+ "r": 43+ },+ {+ "a": 255,+ "at": "0.421875",+ "b": 194,+ "g": 160,+ "r": 44+ },+ {+ "a": 255,+ "at": "0.42578125",+ "b": 194,+ "g": 161,+ "r": 45+ },+ {+ "a": 255,+ "at": "0.4296875",+ "b": 194,+ "g": 162,+ "r": 46+ },+ {+ "a": 255,+ "at": "0.43359375",+ "b": 194,+ "g": 164,+ "r": 47+ },+ {+ "a": 255,+ "at": "0.4375",+ "b": 194,+ "g": 165,+ "r": 48+ },+ {+ "a": 255,+ "at": "0.44140625",+ "b": 194,+ "g": 166,+ "r": 49+ },+ {+ "a": 255,+ "at": "0.4453125",+ "b": 194,+ "g": 167,+ "r": 50+ },+ {+ "a": 255,+ "at": "0.44921875",+ "b": 195,+ "g": 168,+ "r": 52+ },+ {+ "a": 255,+ "at": "0.453125",+ "b": 195,+ "g": 169,+ "r": 53+ },+ {+ "a": 255,+ "at": "0.45703125",+ "b": 195,+ "g": 170,+ "r": 54+ },+ {+ "a": 255,+ "at": "0.4609375",+ "b": 195,+ "g": 172,+ "r": 55+ },+ {+ "a": 255,+ "at": "0.46484375",+ "b": 195,+ "g": 173,+ "r": 56+ },+ {+ "a": 255,+ "at": "0.46875",+ "b": 195,+ "g": 174,+ "r": 57+ },+ {+ "a": 255,+ "at": "0.47265625",+ "b": 195,+ "g": 175,+ "r": 58+ },+ {+ "a": 255,+ "at": "0.4765625",+ "b": 195,+ "g": 176,+ "r": 59+ },+ {+ "a": 255,+ "at": "0.48046875",+ "b": 196,+ "g": 177,+ "r": 61+ },+ {+ "a": 255,+ "at": "0.484375",+ "b": 196,+ "g": 179,+ "r": 62+ },+ {+ "a": 255,+ "at": "0.48828125",+ "b": 196,+ "g": 180,+ "r": 63+ },+ {+ "a": 255,+ "at": "0.4921875",+ "b": 196,+ "g": 181,+ "r": 64+ },+ {+ "a": 255,+ "at": "0.49609375",+ "b": 196,+ "g": 182,+ "r": 65+ },+ {+ "a": 255,+ "at": "0.5",+ "b": 196,+ "g": 183,+ "r": 67+ },+ {+ "a": 255,+ "at": "0.50390625",+ "b": 195,+ "g": 183,+ "r": 69+ },+ {+ "a": 255,+ "at": "0.5078125",+ "b": 195,+ "g": 184,+ "r": 71+ },+ {+ "a": 255,+ "at": "0.51171875",+ "b": 195,+ "g": 185,+ "r": 73+ },+ {+ "a": 255,+ "at": "0.515625",+ "b": 195,+ "g": 186,+ "r": 75+ },+ {+ "a": 255,+ "at": "0.51953125",+ "b": 194,+ "g": 186,+ "r": 77+ },+ {+ "a": 255,+ "at": "0.5234375",+ "b": 194,+ "g": 187,+ "r": 79+ },+ {+ "a": 255,+ "at": "0.52734375",+ "b": 194,+ "g": 188,+ "r": 81+ },+ {+ "a": 255,+ "at": "0.53125",+ "b": 193,+ "g": 188,+ "r": 82+ },+ {+ "a": 255,+ "at": "0.53515625",+ "b": 193,+ "g": 189,+ "r": 84+ },+ {+ "a": 255,+ "at": "0.5390625",+ "b": 193,+ "g": 190,+ "r": 86+ },+ {+ "a": 255,+ "at": "0.54296875",+ "b": 193,+ "g": 191,+ "r": 88+ },+ {+ "a": 255,+ "at": "0.546875",+ "b": 192,+ "g": 191,+ "r": 90+ },+ {+ "a": 255,+ "at": "0.55078125",+ "b": 192,+ "g": 192,+ "r": 92+ },+ {+ "a": 255,+ "at": "0.5546875",+ "b": 192,+ "g": 193,+ "r": 94+ },+ {+ "a": 255,+ "at": "0.55859375",+ "b": 192,+ "g": 194,+ "r": 96+ },+ {+ "a": 255,+ "at": "0.5625",+ "b": 191,+ "g": 194,+ "r": 98+ },+ {+ "a": 255,+ "at": "0.56640625",+ "b": 191,+ "g": 195,+ "r": 100+ },+ {+ "a": 255,+ "at": "0.5703125",+ "b": 191,+ "g": 196,+ "r": 102+ },+ {+ "a": 255,+ "at": "0.57421875",+ "b": 190,+ "g": 196,+ "r": 104+ },+ {+ "a": 255,+ "at": "0.578125",+ "b": 190,+ "g": 197,+ "r": 106+ },+ {+ "a": 255,+ "at": "0.58203125",+ "b": 190,+ "g": 198,+ "r": 108+ },+ {+ "a": 255,+ "at": "0.5859375",+ "b": 190,+ "g": 199,+ "r": 110+ },+ {+ "a": 255,+ "at": "0.58984375",+ "b": 189,+ "g": 199,+ "r": 112+ },+ {+ "a": 255,+ "at": "0.59375",+ "b": 189,+ "g": 200,+ "r": 113+ },+ {+ "a": 255,+ "at": "0.59765625",+ "b": 189,+ "g": 201,+ "r": 115+ },+ {+ "a": 255,+ "at": "0.6015625",+ "b": 188,+ "g": 201,+ "r": 117+ },+ {+ "a": 255,+ "at": "0.60546875",+ "b": 188,+ "g": 202,+ "r": 119+ },+ {+ "a": 255,+ "at": "0.609375",+ "b": 188,+ "g": 203,+ "r": 121+ },+ {+ "a": 255,+ "at": "0.61328125",+ "b": 188,+ "g": 204,+ "r": 123+ },+ {+ "a": 255,+ "at": "0.6171875",+ "b": 187,+ "g": 204,+ "r": 125+ },+ {+ "a": 255,+ "at": "0.62109375",+ "b": 187,+ "g": 205,+ "r": 127+ },+ {+ "a": 255,+ "at": "0.625",+ "b": 187,+ "g": 206,+ "r": 129+ },+ {+ "a": 255,+ "at": "0.62890625",+ "b": 187,+ "g": 207,+ "r": 132+ },+ {+ "a": 255,+ "at": "0.6328125",+ "b": 186,+ "g": 208,+ "r": 134+ },+ {+ "a": 255,+ "at": "0.63671875",+ "b": 186,+ "g": 209,+ "r": 136+ },+ {+ "a": 255,+ "at": "0.640625",+ "b": 186,+ "g": 209,+ "r": 138+ },+ {+ "a": 255,+ "at": "0.64453125",+ "b": 186,+ "g": 210,+ "r": 141+ },+ {+ "a": 255,+ "at": "0.6484375",+ "b": 185,+ "g": 211,+ "r": 143+ },+ {+ "a": 255,+ "at": "0.65234375",+ "b": 185,+ "g": 212,+ "r": 145+ },+ {+ "a": 255,+ "at": "0.65625",+ "b": 185,+ "g": 213,+ "r": 147+ },+ {+ "a": 255,+ "at": "0.66015625",+ "b": 185,+ "g": 214,+ "r": 150+ },+ {+ "a": 255,+ "at": "0.6640625",+ "b": 185,+ "g": 215,+ "r": 152+ },+ {+ "a": 255,+ "at": "0.66796875",+ "b": 184,+ "g": 216,+ "r": 154+ },+ {+ "a": 255,+ "at": "0.671875",+ "b": 184,+ "g": 216,+ "r": 156+ },+ {+ "a": 255,+ "at": "0.67578125",+ "b": 184,+ "g": 217,+ "r": 159+ },+ {+ "a": 255,+ "at": "0.6796875",+ "b": 184,+ "g": 218,+ "r": 161+ },+ {+ "a": 255,+ "at": "0.68359375",+ "b": 184,+ "g": 219,+ "r": 163+ },+ {+ "a": 255,+ "at": "0.6875",+ "b": 183,+ "g": 220,+ "r": 165+ },+ {+ "a": 255,+ "at": "0.69140625",+ "b": 183,+ "g": 221,+ "r": 168+ },+ {+ "a": 255,+ "at": "0.6953125",+ "b": 183,+ "g": 222,+ "r": 170+ },+ {+ "a": 255,+ "at": "0.69921875",+ "b": 183,+ "g": 223,+ "r": 172+ },+ {+ "a": 255,+ "at": "0.703125",+ "b": 182,+ "g": 223,+ "r": 174+ },+ {+ "a": 255,+ "at": "0.70703125",+ "b": 182,+ "g": 224,+ "r": 177+ },+ {+ "a": 255,+ "at": "0.7109375",+ "b": 182,+ "g": 225,+ "r": 179+ },+ {+ "a": 255,+ "at": "0.71484375",+ "b": 182,+ "g": 226,+ "r": 181+ },+ {+ "a": 255,+ "at": "0.71875",+ "b": 182,+ "g": 227,+ "r": 183+ },+ {+ "a": 255,+ "at": "0.72265625",+ "b": 181,+ "g": 228,+ "r": 186+ },+ {+ "a": 255,+ "at": "0.7265625",+ "b": 181,+ "g": 229,+ "r": 188+ },+ {+ "a": 255,+ "at": "0.73046875",+ "b": 181,+ "g": 230,+ "r": 190+ },+ {+ "a": 255,+ "at": "0.734375",+ "b": 181,+ "g": 230,+ "r": 192+ },+ {+ "a": 255,+ "at": "0.73828125",+ "b": 180,+ "g": 231,+ "r": 195+ },+ {+ "a": 255,+ "at": "0.7421875",+ "b": 180,+ "g": 232,+ "r": 197+ },+ {+ "a": 255,+ "at": "0.74609375",+ "b": 180,+ "g": 233,+ "r": 199+ },+ {+ "a": 255,+ "at": "0.75",+ "b": 180,+ "g": 233,+ "r": 200+ },+ {+ "a": 255,+ "at": "0.75390625",+ "b": 180,+ "g": 234,+ "r": 201+ },+ {+ "a": 255,+ "at": "0.7578125",+ "b": 180,+ "g": 234,+ "r": 203+ },+ {+ "a": 255,+ "at": "0.76171875",+ "b": 180,+ "g": 235,+ "r": 204+ },+ {+ "a": 255,+ "at": "0.765625",+ "b": 180,+ "g": 235,+ "r": 205+ },+ {+ "a": 255,+ "at": "0.76953125",+ "b": 179,+ "g": 236,+ "r": 206+ },+ {+ "a": 255,+ "at": "0.7734375",+ "b": 179,+ "g": 236,+ "r": 207+ },+ {+ "a": 255,+ "at": "0.77734375",+ "b": 179,+ "g": 237,+ "r": 209+ },+ {+ "a": 255,+ "at": "0.78125",+ "b": 179,+ "g": 237,+ "r": 210+ },+ {+ "a": 255,+ "at": "0.78515625",+ "b": 179,+ "g": 238,+ "r": 211+ },+ {+ "a": 255,+ "at": "0.7890625",+ "b": 179,+ "g": 238,+ "r": 212+ },+ {+ "a": 255,+ "at": "0.79296875",+ "b": 179,+ "g": 239,+ "r": 213+ },+ {+ "a": 255,+ "at": "0.796875",+ "b": 179,+ "g": 239,+ "r": 214+ },+ {+ "a": 255,+ "at": "0.80078125",+ "b": 179,+ "g": 240,+ "r": 216+ },+ {+ "a": 255,+ "at": "0.8046875",+ "b": 179,+ "g": 240,+ "r": 217+ },+ {+ "a": 255,+ "at": "0.80859375",+ "b": 179,+ "g": 241,+ "r": 218+ },+ {+ "a": 255,+ "at": "0.8125",+ "b": 178,+ "g": 241,+ "r": 219+ },+ {+ "a": 255,+ "at": "0.81640625",+ "b": 178,+ "g": 241,+ "r": 220+ },+ {+ "a": 255,+ "at": "0.8203125",+ "b": 178,+ "g": 242,+ "r": 222+ },+ {+ "a": 255,+ "at": "0.82421875",+ "b": 178,+ "g": 242,+ "r": 223+ },+ {+ "a": 255,+ "at": "0.828125",+ "b": 178,+ "g": 243,+ "r": 224+ },+ {+ "a": 255,+ "at": "0.83203125",+ "b": 178,+ "g": 243,+ "r": 225+ },+ {+ "a": 255,+ "at": "0.8359375",+ "b": 178,+ "g": 244,+ "r": 226+ },+ {+ "a": 255,+ "at": "0.83984375",+ "b": 178,+ "g": 244,+ "r": 228+ },+ {+ "a": 255,+ "at": "0.84375",+ "b": 178,+ "g": 245,+ "r": 229+ },+ {+ "a": 255,+ "at": "0.84765625",+ "b": 178,+ "g": 245,+ "r": 230+ },+ {+ "a": 255,+ "at": "0.8515625",+ "b": 177,+ "g": 246,+ "r": 231+ },+ {+ "a": 255,+ "at": "0.85546875",+ "b": 177,+ "g": 246,+ "r": 232+ },+ {+ "a": 255,+ "at": "0.859375",+ "b": 177,+ "g": 247,+ "r": 233+ },+ {+ "a": 255,+ "at": "0.86328125",+ "b": 177,+ "g": 247,+ "r": 235+ },+ {+ "a": 255,+ "at": "0.8671875",+ "b": 177,+ "g": 248,+ "r": 236+ },+ {+ "a": 255,+ "at": "0.87109375",+ "b": 177,+ "g": 248,+ "r": 237+ },+ {+ "a": 255,+ "at": "0.875",+ "b": 178,+ "g": 248,+ "r": 238+ },+ {+ "a": 255,+ "at": "0.87890625",+ "b": 180,+ "g": 248,+ "r": 238+ },+ {+ "a": 255,+ "at": "0.8828125",+ "b": 181,+ "g": 249,+ "r": 239+ },+ {+ "a": 255,+ "at": "0.88671875",+ "b": 182,+ "g": 249,+ "r": 239+ },+ {+ "a": 255,+ "at": "0.890625",+ "b": 183,+ "g": 249,+ "r": 240+ },+ {+ "a": 255,+ "at": "0.89453125",+ "b": 185,+ "g": 249,+ "r": 240+ },+ {+ "a": 255,+ "at": "0.8984375",+ "b": 186,+ "g": 250,+ "r": 241+ },+ {+ "a": 255,+ "at": "0.90234375",+ "b": 187,+ "g": 250,+ "r": 242+ },+ {+ "a": 255,+ "at": "0.90625",+ "b": 188,+ "g": 250,+ "r": 242+ },+ {+ "a": 255,+ "at": "0.91015625",+ "b": 190,+ "g": 250,+ "r": 243+ },+ {+ "a": 255,+ "at": "0.9140625",+ "b": 191,+ "g": 250,+ "r": 243+ },+ {+ "a": 255,+ "at": "0.91796875",+ "b": 192,+ "g": 251,+ "r": 244+ },+ {+ "a": 255,+ "at": "0.921875",+ "b": 193,+ "g": 251,+ "r": 244+ },+ {+ "a": 255,+ "at": "0.92578125",+ "b": 195,+ "g": 251,+ "r": 245+ },+ {+ "a": 255,+ "at": "0.9296875",+ "b": 196,+ "g": 251,+ "r": 245+ },+ {+ "a": 255,+ "at": "0.93359375",+ "b": 197,+ "g": 252,+ "r": 246+ },+ {+ "a": 255,+ "at": "0.9375",+ "b": 198,+ "g": 252,+ "r": 247+ },+ {+ "a": 255,+ "at": "0.94140625",+ "b": 200,+ "g": 252,+ "r": 247+ },+ {+ "a": 255,+ "at": "0.9453125",+ "b": 201,+ "g": 252,+ "r": 248+ },+ {+ "a": 255,+ "at": "0.94921875",+ "b": 202,+ "g": 252,+ "r": 248+ },+ {+ "a": 255,+ "at": "0.953125",+ "b": 203,+ "g": 253,+ "r": 249+ },+ {+ "a": 255,+ "at": "0.95703125",+ "b": 205,+ "g": 253,+ "r": 249+ },+ {+ "a": 255,+ "at": "0.9609375",+ "b": 206,+ "g": 253,+ "r": 250+ },+ {+ "a": 255,+ "at": "0.96484375",+ "b": 207,+ "g": 253,+ "r": 251+ },+ {+ "a": 255,+ "at": "0.96875",+ "b": 208,+ "g": 253,+ "r": 251+ },+ {+ "a": 255,+ "at": "0.97265625",+ "b": 210,+ "g": 254,+ "r": 252+ },+ {+ "a": 255,+ "at": "0.9765625",+ "b": 211,+ "g": 254,+ "r": 252+ },+ {+ "a": 255,+ "at": "0.98046875",+ "b": 212,+ "g": 254,+ "r": 253+ },+ {+ "a": 255,+ "at": "0.984375",+ "b": 213,+ "g": 254,+ "r": 253+ },+ {+ "a": 255,+ "at": "0.98828125",+ "b": 215,+ "g": 255,+ "r": 254+ },+ {+ "a": 255,+ "at": "0.9921875",+ "b": 216,+ "g": 255,+ "r": 254+ }+ ]+ },"NEO_Land_Temperature": {- "description": "Land Surface Temperature","id": "NEO_Land_Temperature",- "name": "Bright Spectrum","source": "stock","stops": [{@@ -13365,9 +15150,7 @@]},"NEO_Sea_Temperature": {- "description": "Sea Surface Temperature","id": "NEO_Sea_Temperature",- "name": "Blue Spectrum","source": "stock","stops": [{@@ -15158,9 +16941,7 @@]},"NEO_Snow_Cover": {- "description": "Snow Cover","id": "NEO_Snow_Cover",- "name": "Blue to White","source": "stock","stops": [{@@ -16951,9 +18732,7 @@]},"NEO_Water_Vapor": {- "description": "Water Vapor","id": "NEO_Water_Vapor",- "name": "White to Blue","source": "stock","stops": [{@@ -23337,6 +25116,9 @@512]},+ "recommendedPalettes": [+ "NEO_Carbon_Monoxide"+ ],"rendered": "AIRS_CO_Total_Column","startDate": "2012-04-07","stops": [@@ -23391,6 +25173,9 @@512]},+ "recommendedPalettes": [+ "NEO_Carbon_Monoxide"+ ],"rendered": "AIRS_CO_Total_Column","startDate": "2012-04-07","stops": [@@ -24148,6 +25933,9 @@512]},+ "recommendedPalettes": [+ "NEO_Aerosol_Depth"+ ],"rendered": "MODIS_Aerosol","startDate": "2012-04-07","type": "wmts",@@ -25273,6 +27061,9 @@512]},+ "recommendPalettes": [+ "NEO_Land_Temperature"+ ],"rendered": "MODIS_Land_Surface_Temp","startDate": "2012-04-07","type": "wmts",@@ -25319,6 +27110,9 @@512]},+ "recommendPalettes": [+ "NEO_Land_Temperature"+ ],"rendered": "MODIS_Land_Surface_Temp","startDate": "2012-04-07","type": "wmts",@@ -25498,6 +27292,9 @@512]},+ "recommendPalettes": [+ "NEO_Snow_Cover"+ ],"rendered": "MODIS_Snow_Cover","startDate": "2012-04-07","stops": [@@ -25818,6 +27615,9 @@512]},+ "recommendPalettes": [+ "NEO_Water_Vapor"+ ],"rendered": "MODIS_Water_Vapor_5km","startDate": "2012-04-07","type": "wmts",@@ -25863,6 +27663,9 @@512]},+ "recommendPalettes": [+ "NEO_Water_Vapor"+ ],"rendered": "MODIS_Water_Vapor_5km","startDate": "2012-04-07","type": "wmts",@@ -25908,6 +27711,9 @@512]},+ "recommendPalettes": [+ "NEO_Aerosol_Depth"+ ],"rendered": "MODIS_Aerosol","startDate": "2012-04-07","type": "wmts",@@ -26028,6 +27834,9 @@512]},+ "recommendedPalettes": [+ "NEO_Aerosol_Depth"+ ],"rendered": "MODIS_Aerosol","startDate": "2012-04-07","type": "wmts",@@ -27245,6 +29054,9 @@512]},+ "recommendedPalettes": [+ "NEO_Land_Temperature"+ ],"rendered": "MODIS_Land_Surface_Temp","startDate": "2012-04-07","type": "wmts",@@ -27291,6 +29103,9 @@512]},+ "recommendedPalettes": [+ "NEO_Land_Temperature"+ ],"rendered": "MODIS_Land_Surface_Temp","startDate": "2012-04-07","type": "wmts",@@ -27470,6 +29285,9 @@512]},+ "recommendedPalettes": [+ "NEO_Snow_Cover"+ ],"rendered": "MODIS_Snow_Cover","startDate": "2012-04-07","stops": [@@ -27790,6 +29608,9 @@512]},+ "recommendedPalettes": [+ "NEO_Water_Vapor"+ ],"rendered": "MODIS_Water_Vapor_5km","startDate": "2012-04-07","type": "wmts",@@ -27835,6 +29656,9 @@512]},+ "recommendedPalettes": [+ "NEO_Water_Vapor"+ ],"rendered": "MODIS_Water_Vapor_5km","startDate": "2012-04-07","type": "wmts",@@ -27880,6 +29704,9 @@512]},+ "recommendedPalettes": [+ "NEO_Aerosol_Depth"+ ],"rendered": "OMI_Aerosol","startDate": "2012-04-07","type": "wmts",@@ -27925,6 +29752,9 @@512]},+ "recommendedPalettes": [+ "NEO_Aerosol_Depth"+ ],"rendered": "OMI_Aerosol","startDate": "2012-04-07","type": "wmts",@@ -27970,6 +29800,9 @@512]},+ "recommendedPalettes": [+ "NEO_Aerosol_Depth"+ ],"rendered": "OMI_Aerosol","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/act/index.json b/dev/generate-config/act/index.jsonindex f8ef357c6..dddc429aa 100644--- a/dev/generate-config/act/index.json+++ b/dev/generate-config/act/index.json@@ -1,31 +1,30 @@-[{- "id": "NEO_Land_Temperature",- "name": "Bright Spectrum",- "description": "Land Surface Temperature",- "input": "neo/modis_lst.act"-},{- "id": "NEO_Sea_Temperature",- "name": "Blue Spectrum",- "description": "Sea Surface Temperature",- "input": "neo/amsre_sst.act"-},{- "id": "NEO_Snow_Cover",- "name": "Blue to White",- "description": "Snow Cover",- "input": "neo/modis_snow.act"-},{- "id": "NEO_Aerosol_Depth",- "name": "Light to Brown",- "description": "Aerosol Optical Depth",- "input": "neo/modis_aer_od.act"-},{- "id": "NEO_Carbon_Monoxide",- "name": "Light to Red",- "description": "Carbon Monoxide",- "input": "neo/mopitt_co.act"-},{- "id": "NEO_Water_Vapor",- "name": "White to Blue",- "description": "Water Vapor",- "input": "neo/modis_sky_wv.act"-}]+[+{+ "id": "NEO_Aerosol_Depth",+ "input": "neo/modis_aer_od.act"+},+{+ "id": "NEO_Carbon_Monoxide",+ "input": "neo/mopitt_co.act"+},+{+ "id": "NEO_Chlorophyll Concentration",+ "input": "neo/modis_chlor.act"+},+{+ "id": "NEO_Land_Temperature",+ "input": "neo/modis_lst.act"+},+{+ "id": "NEO_Sea_Temperature",+ "input": "neo/amsre_sst.act"+},+{+ "id": "NEO_Snow_Cover",+ "input": "neo/modis_snow.act"+},+{+ "id": "NEO_Water_Vapor",+ "input": "neo/modis_sky_wv.act"+}+]diff --git a/dev/generate-config/act/neo/modis_chlor.act b/dev/generate-config/act/neo/modis_chlor.actnew file mode 100644index 000000000..e4a691a8fBinary files /dev/null and b/dev/generate-config/act/neo/modis_chlor.act differdiff --git a/dev/generate-config/act2json.py b/dev/generate-config/act2json.pyindex bd76007a5..4c3025e89 100755--- a/dev/generate-config/act2json.py+++ b/dev/generate-config/act2json.py@@ -16,7 +16,7 @@ import jsonprog = os.path.basename(__file__)basedir = os.path.dirname(__file__)-version = "1.1.0"+version = "1.1.1"help_description = """\Using a json index file, this converts ACT (Adobe Color Table) files intopaletttes suitable for Worldview. Each color table is written out to@@ -66,14 +66,25 @@ notify("Index file: %s" % options.index)notify("ACT base directory: %s" % options.act_dir)notify("Output directory: %s" % output_dir)-with open(options.index) as fp:- index = json.load(fp)-+try:+ with open(options.index) as fp:+ index = json.load(fp)+except Exception as e:+ sys.stderr.write("%s: Unable to load index %s\n%s" % (prog, options.index,+ str(e)))+ sys.exit(1)++return_code = 0for act in index:act_file = os.path.join(options.act_dir, act["input"])notify("Reading ACT: %s" % act_file)- with open(act_file) as fp:- data = fp.read()+ try:+ with open(act_file) as fp:+ data = fp.read()+ except Exception as e:+ sys.stderr.write("%s: Unable to load %s\n%s" % (prog, act_file,+ str(e)))+ return_code = 1stops = []for i in xrange(0, 255 * 3, 3):entry = {@@ -86,8 +97,6 @@ for act in index:stops += [entry]palette = {"id": act["id"],- "name": act["name"],- "description": act["description"],"source": "stock","stops": stops}@@ -98,3 +107,5 @@ for act in index:separators=(',', ': '))+sys.exit(return_code)+diff --git a/dev/generate-config/config/products/AIRS_CO_Total_Column_Day.json b/dev/generate-config/config/products/AIRS_CO_Total_Column_Day.jsonindex 89a3d8efc..f2b05726f 100644--- a/dev/generate-config/config/products/AIRS_CO_Total_Column_Day.json+++ b/dev/generate-config/config/products/AIRS_CO_Total_Column_Day.json@@ -37,6 +37,7 @@512]},+ "recommendedPalettes": [ "NEO_Carbon_Monoxide" ],"rendered": "AIRS_CO_Total_Column","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/config/products/AIRS_CO_Total_Column_Night.json b/dev/generate-config/config/products/AIRS_CO_Total_Column_Night.jsonindex 4c2bc5036..ae4bbc1eb 100644--- a/dev/generate-config/config/products/AIRS_CO_Total_Column_Night.json+++ b/dev/generate-config/config/products/AIRS_CO_Total_Column_Night.json@@ -37,6 +37,7 @@512]},+ "recommendedPalettes": [ "NEO_Carbon_Monoxide" ],"rendered": "AIRS_CO_Total_Column","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/config/products/MODIS_Aqua_Aerosol.json b/dev/generate-config/config/products/MODIS_Aqua_Aerosol.jsonindex a02c48d7f..bbe59a22d 100644--- a/dev/generate-config/config/products/MODIS_Aqua_Aerosol.json+++ b/dev/generate-config/config/products/MODIS_Aqua_Aerosol.json@@ -38,6 +38,7 @@]},"rendered": "MODIS_Aerosol",+ "recommendedPalettes": [ "NEO_Aerosol_Depth" ],"startDate": "2012-04-07","type": "wmts","units": ""diff --git a/dev/generate-config/config/products/MODIS_Aqua_Land_Surface_Temp_Day.json b/dev/generate-config/config/products/MODIS_Aqua_Land_Surface_Temp_Day.jsonindex 1f52958d1..0dab2e4f6 100644--- a/dev/generate-config/config/products/MODIS_Aqua_Land_Surface_Temp_Day.json+++ b/dev/generate-config/config/products/MODIS_Aqua_Land_Surface_Temp_Day.json@@ -39,6 +39,7 @@]},"rendered": "MODIS_Land_Surface_Temp",+ "recommendPalettes": [ "NEO_Land_Temperature" ],"startDate": "2012-04-07","type": "wmts","units": "K"diff --git a/dev/generate-config/config/products/MODIS_Aqua_Land_Surface_Temp_Night.json b/dev/generate-config/config/products/MODIS_Aqua_Land_Surface_Temp_Night.jsonindex 8077a38bc..a68bce6a8 100644--- a/dev/generate-config/config/products/MODIS_Aqua_Land_Surface_Temp_Night.json+++ b/dev/generate-config/config/products/MODIS_Aqua_Land_Surface_Temp_Night.json@@ -39,6 +39,7 @@]},"rendered": "MODIS_Land_Surface_Temp",+ "recommendPalettes": [ "NEO_Land_Temperature" ],"startDate": "2012-04-07","type": "wmts","units": "K"diff --git a/dev/generate-config/config/products/MODIS_Aqua_Snow_Cover.json b/dev/generate-config/config/products/MODIS_Aqua_Snow_Cover.jsonindex d93d964d1..3f8c26f82 100644--- a/dev/generate-config/config/products/MODIS_Aqua_Snow_Cover.json+++ b/dev/generate-config/config/products/MODIS_Aqua_Snow_Cover.json@@ -83,6 +83,7 @@512]},+ "recommendPalettes": [ "NEO_Snow_Cover" ],"rendered": "MODIS_Snow_Cover","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/config/products/MODIS_Aqua_Water_Vapor_5km_Day.json b/dev/generate-config/config/products/MODIS_Aqua_Water_Vapor_5km_Day.jsonindex e5ea5a786..5d5bb9d4e 100644--- a/dev/generate-config/config/products/MODIS_Aqua_Water_Vapor_5km_Day.json+++ b/dev/generate-config/config/products/MODIS_Aqua_Water_Vapor_5km_Day.json@@ -38,6 +38,7 @@]},"rendered": "MODIS_Water_Vapor_5km",+ "recommendPalettes": [ "NEO_Water_Vapor" ],"startDate": "2012-04-07","type": "wmts","units": "cm"diff --git a/dev/generate-config/config/products/MODIS_Aqua_Water_Vapor_5km_Night.json b/dev/generate-config/config/products/MODIS_Aqua_Water_Vapor_5km_Night.jsonindex 7bae790f4..2ecf8a95c 100644--- a/dev/generate-config/config/products/MODIS_Aqua_Water_Vapor_5km_Night.json+++ b/dev/generate-config/config/products/MODIS_Aqua_Water_Vapor_5km_Night.json@@ -38,6 +38,7 @@]},"rendered": "MODIS_Water_Vapor_5km",+ "recommendPalettes": [ "NEO_Water_Vapor" ],"startDate": "2012-04-07","type": "wmts","units": "cm"diff --git a/dev/generate-config/config/products/MODIS_Combined_Value_Added_AOD.json b/dev/generate-config/config/products/MODIS_Combined_Value_Added_AOD.jsonindex 132c352e2..6d59e42e7 100644--- a/dev/generate-config/config/products/MODIS_Combined_Value_Added_AOD.json+++ b/dev/generate-config/config/products/MODIS_Combined_Value_Added_AOD.json@@ -38,6 +38,7 @@]},"rendered": "MODIS_Aerosol",+ "recommendPalettes": [ "NEO_Aerosol_Depth" ],"startDate": "2012-04-07","type": "wmts","units": ""diff --git a/dev/generate-config/config/products/MODIS_Terra_Aerosol.json b/dev/generate-config/config/products/MODIS_Terra_Aerosol.jsonindex ff6aa3af8..3a4a1e16e 100644--- a/dev/generate-config/config/products/MODIS_Terra_Aerosol.json+++ b/dev/generate-config/config/products/MODIS_Terra_Aerosol.json@@ -37,6 +37,7 @@512]},+ "recommendedPalettes": [ "NEO_Aerosol_Depth" ],"rendered": "MODIS_Aerosol","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/config/products/MODIS_Terra_Land_Surface_Temp_Day.json b/dev/generate-config/config/products/MODIS_Terra_Land_Surface_Temp_Day.jsonindex 693043284..525f06acb 100644--- a/dev/generate-config/config/products/MODIS_Terra_Land_Surface_Temp_Day.json+++ b/dev/generate-config/config/products/MODIS_Terra_Land_Surface_Temp_Day.json@@ -38,6 +38,7 @@512]},+ "recommendedPalettes": [ "NEO_Land_Temperature" ],"rendered": "MODIS_Land_Surface_Temp","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/config/products/MODIS_Terra_Land_Surface_Temp_Night.json b/dev/generate-config/config/products/MODIS_Terra_Land_Surface_Temp_Night.jsonindex c639688bb..613e79164 100644--- a/dev/generate-config/config/products/MODIS_Terra_Land_Surface_Temp_Night.json+++ b/dev/generate-config/config/products/MODIS_Terra_Land_Surface_Temp_Night.json@@ -38,6 +38,7 @@512]},+ "recommendedPalettes": [ "NEO_Land_Temperature" ],"rendered": "MODIS_Land_Surface_Temp","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/config/products/MODIS_Terra_Snow_Cover.json b/dev/generate-config/config/products/MODIS_Terra_Snow_Cover.jsonindex c0b998dc5..890ca1e96 100644--- a/dev/generate-config/config/products/MODIS_Terra_Snow_Cover.json+++ b/dev/generate-config/config/products/MODIS_Terra_Snow_Cover.json@@ -83,6 +83,7 @@512]},+ "recommendedPalettes": [ "NEO_Snow_Cover" ],"rendered": "MODIS_Snow_Cover","startDate": "2012-04-07","stops": [diff --git a/dev/generate-config/config/products/MODIS_Terra_Water_Vapor_5km_Day.json b/dev/generate-config/config/products/MODIS_Terra_Water_Vapor_5km_Day.jsonindex ed733e107..4c0e8e7e6 100644--- a/dev/generate-config/config/products/MODIS_Terra_Water_Vapor_5km_Day.json+++ b/dev/generate-config/config/products/MODIS_Terra_Water_Vapor_5km_Day.json@@ -37,6 +37,7 @@512]},+ "recommendedPalettes": [ "NEO_Water_Vapor" ],"rendered": "MODIS_Water_Vapor_5km","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/config/products/MODIS_Terra_Water_Vapor_5km_Night.json b/dev/generate-config/config/products/MODIS_Terra_Water_Vapor_5km_Night.jsonindex fe8074b57..5e5e46fbb 100644--- a/dev/generate-config/config/products/MODIS_Terra_Water_Vapor_5km_Night.json+++ b/dev/generate-config/config/products/MODIS_Terra_Water_Vapor_5km_Night.json@@ -37,6 +37,7 @@512]},+ "recommendedPalettes": [ "NEO_Water_Vapor" ],"rendered": "MODIS_Water_Vapor_5km","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/config/products/OMI_Absorbing_Aerosol_Optical_Depth.json b/dev/generate-config/config/products/OMI_Absorbing_Aerosol_Optical_Depth.jsonindex 1e64de65e..ba3664fc5 100644--- a/dev/generate-config/config/products/OMI_Absorbing_Aerosol_Optical_Depth.json+++ b/dev/generate-config/config/products/OMI_Absorbing_Aerosol_Optical_Depth.json@@ -37,6 +37,7 @@512]},+ "recommendedPalettes": [ "NEO_Aerosol_Depth" ],"rendered": "OMI_Aerosol","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/config/products/OMI_Aerosol_Index.json b/dev/generate-config/config/products/OMI_Aerosol_Index.jsonindex fdfd98153..a2dcb053c 100644--- a/dev/generate-config/config/products/OMI_Aerosol_Index.json+++ b/dev/generate-config/config/products/OMI_Aerosol_Index.json@@ -37,6 +37,7 @@512]},+ "recommendedPalettes": [ "NEO_Aerosol_Depth" ],"rendered": "OMI_Aerosol","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/config/products/OMI_Aerosol_Optical_Depth.json b/dev/generate-config/config/products/OMI_Aerosol_Optical_Depth.jsonindex 6f6354deb..1431e0cc3 100644--- a/dev/generate-config/config/products/OMI_Aerosol_Optical_Depth.json+++ b/dev/generate-config/config/products/OMI_Aerosol_Optical_Depth.json@@ -37,6 +37,7 @@512]},+ "recommendedPalettes": [ "NEO_Aerosol_Depth" ],"rendered": "OMI_Aerosol","startDate": "2012-04-07","type": "wmts",diff --git a/dev/generate-config/vrt2json.py b/dev/generate-config/vrt2json.pyindex ea9e042f7..53d408dc1 100755--- a/dev/generate-config/vrt2json.py+++ b/dev/generate-config/vrt2json.py@@ -18,7 +18,7 @@ import xml.parsers.expatprog = os.path.basename(__file__)basedir = os.path.dirname(__file__)-version = "1.0.0"+version = "1.0.1"help_description = """\Given an index file of VRT color tables, converts them into JSON palettessuitable for Worldview. Also updates existing product JSON files to include@@ -133,6 +133,8 @@ def main():with open(options.index) as fp:index = json.load(fp)+ return_code = 0+for vrt_meta in index:# Retrieve product info for current iterationvrt_filename = os.path.join(options.vrt_dir, vrt_meta["filename"])@@ -196,9 +198,14 @@ def main():continuenotify("Modifying product %s" % product_file_name)- with open(product_file_name) as fp:- product = json.load(fp)-+ try:+ with open(product_file_name) as fp:+ product = json.load(fp)+ except Exception as e:+ sys.stderr.write("%s: Unable to load %s\n%s" %+ (prog, product_file_name, str(e)))+ return_code = 1+product["bins"] = len(bin_stops)product["rendered"] = vrt_meta["id"]if use_bin_stops:@@ -211,6 +218,7 @@ def main():with open(product_file_name, "w") as fp:json.dump(product, fp, sort_keys=True, indent=4,separators=(',', ': '))+ sys.exit(return_code)#end mainif __name__ == "__main__":diff --git a/js/Worldview.js b/js/Worldview.jsindex 9f87af52f..7d555a846 100644--- a/js/Worldview.js+++ b/js/Worldview.js@@ -82,7 +82,7 @@zIndex: 1020,visible: false});- o.setHeader(' Warning');+ o.setHeader('Warning');o.setBody("An unexpected error has occurred.<br/><br/>" + message);o.render(document.body);o.show();@@ -113,7 +113,7 @@visible: false});title = title || "Notice";- o.setHeader(' ' + title);+ o.setHeader(title);o.setBody(message);o.render(document.body);o.show();@@ -129,18 +129,19 @@* Asks the end user a yes or no question in a dialog box.** Parameters:- * spec.header - Header text to be displayed in the dialog box. If not- * specified, "Notice" will be used.- * spec.message - Message text to be displayed in the dialog box. If not- * specified, "Are you sure?" will be used.- * spec.noButton - Text to be used in the no button. If not specified,- * "No" will be used.- * spec.yesButton - Text to be used in the yes button. If not specified,- * "Yes" will be used.- * spec.onYes - Function to execute when the yes button is pressed. If- * not specified, the dialog box simply closes.- * spec.onNo - Function to execute when the no button is pressed. If- * not specified, the dialog box simply closes.+ * spec.header - Header text to be displayed in the dialog box. If not+ * specified, "Notice" will be used.+ * spec.message - Message text to be displayed in the dialog box. If+ * not specified, "Are you sure?" will be used.+ * spec.okButton - Text to be used in the no button. If not specified,+ * "OK" will be used.+ * spec.cancelButton - Text to be used in the yes button. If not specified,+ * "Cancel" will be used.+ * spec.onOk - Function to execute when the OK button is pressed.+ * If not specified, the dialog box simply closes.+ * spec.onCancel - Function to execute when the Cancel button is+ * pressed. If not specified, the dialog box simply+ * closes.*/ns.ask = function(spec) {var dialog = new YAHOO.widget.SimpleDialog("dialog", {@@ -156,24 +157,24 @@});var header = spec.header || "Notice";- dialog.setHeader(" " + header);+ dialog.setHeader(header);dialog.setBody(spec.message || "Are you sure?");- var handleYes = function() {+ var handleOk = function() {try {this.hide();- if ( spec.onYes ) {- spec.onYes();+ if ( spec.onOk) {+ spec.onOk();}} catch ( error ) {Worldview.error("Internal error", error);}};- var handleNo = function() {+ var handleCancel = function() {try {this.hide();- if ( spec.onNo ) {- spec.onNo();+ if ( spec.onCancel ) {+ spec.onCancel();}} catch ( error ) {Worldview.error("Internal error", error);@@ -181,8 +182,8 @@};var buttons = [- { text: spec.noButton || "No", handler: handleNo },- { text: spec.yesButton || "Yes", handler: handleYes }+ { text: spec.okButton || "Cancel", handler: handleOk },+ { text: spec.cancelButton || "OK", handler: handleCancel }];dialog.cfg.queueProperty("buttons", buttons);dialog.render(document.body);diff --git a/js/Worldview/Palette/PaletteSelector.js b/js/Worldview/Palette/PaletteSelector.jsindex 91de368a9..0f33a9cda 100644--- a/js/Worldview/Palette/PaletteSelector.js+++ b/js/Worldview/Palette/PaletteSelector.js@@ -58,8 +58,8 @@ Worldview.Palette.PaletteSelector = function(spec) {for ( var i = 0; i < palettes.length; i++ ) {var palette = palettes[i];var item = {- text: palette.name,- description: palette.description,+ text: palette.name || " ",+ description: palette.description || "",value: i,image: palette.image};@@ -69,8 +69,10 @@ Worldview.Palette.PaletteSelector = function(spec) {dropDown = $container.msDropDown({byJson: {name: "Palettes",- data: items- }+ data: items,+ width: 225,+ },+ visibleRows: 5}).data("dd");$container.on("change", function() {diff --git a/js/Worldview/Permalink.js b/js/Worldview/Permalink.jsindex fc14a6151..be07562f4 100644--- a/js/Worldview/Permalink.js+++ b/js/Worldview/Permalink.js@@ -140,7 +140,7 @@ $(function() {"<span style='font-weight:400; font-size:12px; line-spacing:24px;'>Copy and paste the following link to share this view:</span>" +"<input type='text' value='' name='permalink_content' id='permalink_content' />" +"</div>";- permOverlay.setHeader(' Permalink');+ permOverlay.setHeader("Permalink");permOverlay.setBody(item);permOverlay.render(document.body);}diff --git a/js/Worldview/Widget/Palette.js b/js/Worldview/Widget/Palette.jsindex cfee0906f..5213ddba1 100644--- a/js/Worldview/Widget/Palette.js+++ b/js/Worldview/Widget/Palette.js@@ -11,7 +11,7 @@Worldview.namespace("Widget");-Worldview.Widget.Palette = function(containerId, config) {+Worldview.Widget.Palette = function(containerId, config, spec) {var self = {};var log = Logging.getLogger("Worldview.paletteWidget");@@ -19,6 +19,7 @@ Worldview.Widget.Palette = function(containerId, config) {self.config = config;self.active = {};+ self.alignTo = spec.alignTo;var init = function() {//Logging.debug("Worldview.paletteWidget");@@ -75,17 +76,25 @@ Worldview.Widget.Palette = function(containerId, config) {};self.displaySelector = function(product) {- var dialog = new YAHOO.widget.Panel("palette-selector-dialog", {- width: "300px",- height: "500px",+ var properties = {+ width: "245px",+ height: "200px",zIndex: 1020,- visible: false- });+ visible: false+ }+ if ( self.alignTo ) {+ var $element = $(self.alignTo);+ properties.x = Math.ceil($element.offset().left ++ $element.width() + 20);+ properties.y = Math.ceil($element.offset().top);+ }++ var dialog = new YAHOO.widget.Panel("palette-selector-dialog",+ properties);dialog.setHeader("Select palette");dialog.setBody("<div id='palette-selector'></div>");dialog.render(document.body);dialog.show();- dialog.center();dialog.hideEvent.subscribe(function(i) {setTimeout(function() {dialog.destroy();}, 25);});@@ -95,38 +104,56 @@ Worldview.Widget.Palette = function(containerId, config) {canvas.width = 100;canvas.height = 14;+ // The default palette the product is rendered invar productConfig = self.config.products[product];var renderedName = productConfig.rendered;- var renderedPalette = Worldview.Palette.ColorBar({+ var renderedPalette = $.extend(true, {},+ config.palettes[renderedName]);+ var renderedColorBar = Worldview.Palette.ColorBar({canvas: canvas,- palette: config.palettes[renderedName],+ palette: renderedPalette,bins: productConfig.bins,stops: productConfig.stops});renderedPalette.name = "Default";- renderedPalette.image = renderedPalette.toImage();+ renderedPalette.image = renderedColorBar.toImage();palettes.push(renderedPalette);var activePalette = self.active[product];var selected = null;+ // Palettes for the drop down, place the recommended ones first+ var recommendedPalettes = [];+ var otherPalettes = [];+$.each(self.config.palettes, function(name, p) {if ( p.source === "stock" ) {- var cb = Worldview.Palette.ColorBar({+ var palette = $.extend(true, {}, p);+ var colorBar = Worldview.Palette.ColorBar({canvas: canvas,- palette: p,+ palette: palette,bins: productConfig.bins,stops: productConfig.stops});- p.image = cb.toImage();- palettes.push(p);- if ( p.id === activePalette ) {- selected = palettes.length - 1;+ palette.image = colorBar.toImage();+ if ( $.inArray(palette.id,+ productConfig.recommendedPalettes) >= 0 ) {+ palette.name = "Recommended";+ recommendedPalettes.push(palette);+ } else {+ otherPalettes.push(palette);}}});-+ palettes = palettes.concat(recommendedPalettes, otherPalettes);++ $.each(palettes, function(index, palette) {+ if ( palette.id === activePalette ) {+ selected = index;+ }+ });+var paletteSelector = Worldview.Palette.PaletteSelector({selector: "#palette-selector",palettes: palettesdiff --git a/js/bank.js b/js/bank.jsindex 7d1e638d3..b32714822 100644--- a/js/bank.js+++ b/js/bank.js@@ -219,7 +219,7 @@ SOTE.widget.Bank.prototype.render = function(){}*/if(m.palette){var paletteString = "<span class='palette'><span class='p-min' style='margin-right:10px;'>"+m.min+"</span>" +- "<canvas id='canvas"+this.values[formattedCategoryName.toLowerCase()][j].value+"' width=100px height=14px'></canvas>" ++ "<canvas class='colorBar' id='canvas"+this.values[formattedCategoryName.toLowerCase()][j].value+"' width=100px height=14px'></canvas>" +"<span class='p-max' style='margin-left:10px;'>"+m.max+"</span>";if(m.units && m.units != ""){paletteString += "<span class='units' style='margin-left:3px;'>("+m.units+")</span></span>";diff --git a/js/main.js b/js/main.jsindex 7868d37b7..47120fa8a 100644--- a/js/main.js+++ b/js/main.js@@ -29,7 +29,7 @@ $(function() {// Initialize "static" vars// Create mapvar m = Worldview.Widget.WorldviewMap("map", config);- var palettes = Worldview.Widget.Palette("palettes", config);+ var palettes = Worldview.Widget.Palette("palettes", config, {alignTo: "#products"});var ss = new SOTE.widget.Switch("switch",{dataSourceUrl:"a",selected:"geographic"});var a = new SOTE.widget.Bank("products",{paletteWidget: palettes, dataSourceUrl:"ap_products.php",title:"My Layers",selected:{antarctic:"baselayers,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,antarctic_coastlines", arctic:"baselayers,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,arctic_coastlines",geographic:"baselayers,MODIS_Terra_CorrectedReflectance_TrueColor~overlays,sedac_bound"},categories:["Base Layers","Overlays"],callback:showSelector,selector:selector,config:config});var s = new SOTE.widget.Selector("selectorbox",{dataSourceUrl:"ap_products.php",categories:["Base Layers","Overlays"]});diff --git a/js/rubberBand.js b/js/rubberBand.jsindex 60b705545..74cd28810 100644--- a/js/rubberBand.js+++ b/js/rubberBand.js@@ -103,7 +103,7 @@ SOTE.widget.RubberBand.toggle = function(o){Worldview.ask({header: "Notice",message: self.PALETTE_WARNING,- onYes: disablePalettes+ onOk: disablePalettes});} else {toggleOn();diff --git a/js/util.js b/js/util.jsindex 1f0ee56aa..ed4b1397e 100644--- a/js/util.js+++ b/js/util.js@@ -31,7 +31,7 @@ SOTE.util.extractFromQuery = function(key,qs){SOTE.util.throwError = function(errorTextHTML){o = new YAHOO.widget.Panel("WVerror", {width:"300px", zIndex:1020, visible:false } );- o.setHeader(' Warning');+ o.setHeader('Warning');o.setBody(errorTextHTML);o.render(document.body);o.show();