Skip to content

Commit f8fca8a

Browse files
Update local_forecasts.js
1 parent 1caf2ae commit f8fca8a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

local_forecasts.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ function add_the_banner(site, param) {
890890
source = "NASA GEOS CF, NASA Pandora";
891891
} else if (param === "pm25" || param === "pm2.5") {
892892
aqiValue = pm25_aqi;
893-
source = "NASA MERRA 2 CNN, AirNow";
893+
source = "NASA GEOS-FP, AirNow";
894894
} else if (param === "o3") {
895895
aqiValue = o3_aqi
896896
source = "NASA GEOS CF, NASA Pandora";
@@ -1060,6 +1060,7 @@ function readApiBaker(options = {}) {
10601060
return JSON.parse(sanitizedText);
10611061
})
10621062
.then(data => {
1063+
console.log("Data from API Baker:", data);
10631064
if (!data || data.status !== "200" || !Array.isArray(data.forecasts) || data.forecasts.length === 0) {
10641065
throw new Error("No valid data received");
10651066
}
@@ -1133,7 +1134,7 @@ function readApiBaker(options = {}) {
11331134
param: "no2",
11341135
tabName: "Nitrogen Dioxide (NO<sub>2</sub>)",
11351136
tabId: "tab_no2",
1136-
description: "Source: SNWG bias-corrected model",
1137+
description: "Source: NASA SNWG bias-corrected model",
11371138
columns: [
11381139
{ column: "master_predicted_aqi", name: "Corrected AQI", color: "blue", width: 2 }
11391140
],
@@ -1166,7 +1167,7 @@ function readApiBaker(options = {}) {
11661167
param: "no2",
11671168
tabName: "Nitrogen Dioxide (NO<sub>2</sub>)",
11681169
tabId: "tab_no2",
1169-
description: "Supporting: SNWG bias-corrected model (concentration)",
1170+
description: "Supporting: NASA SNWG bias-corrected model (concentration)",
11701171
columns: [
11711172
{ column: "master_predicted", name: "Corrected", color: "blue", width: 2 }
11721173
],
@@ -1181,7 +1182,7 @@ function readApiBaker(options = {}) {
11811182
param: "pm25",
11821183
tabName: "Fine Particulate Matter (PM<sub>2.5</sub>)",
11831184
tabId: "tab_pm25",
1184-
description: "Supporting: GEOS-CF (concentration)",
1185+
description: "Supporting: NASA GEOS-CF (concentration)",
11851186
columns: [
11861187
{ column: "master_pm25", name: "PM2.5", color: "green", width: 2 }
11871188
],
@@ -1196,7 +1197,7 @@ function readApiBaker(options = {}) {
11961197
param: "o3",
11971198
tabName: "Ozone (O<sub>3</sub>)",
11981199
tabId: "tab_o3",
1199-
description: "Supporting: GEOS-CF (concentration)",
1200+
description: "Supporting: NASA GEOS-CF (concentration)",
12001201
columns: [
12011202
{ column: "master_o3", name: "O3", color: "orange", width: 2 }
12021203
],
@@ -1227,7 +1228,7 @@ function readApiBaker(options = {}) {
12271228
param: "no2",
12281229
tabName: "Nitrogen dioxide (NO<sub>2</sub>)",
12291230
tabId: "tab_no2",
1230-
description: "Source: GEOS-CF",
1231+
description: "Source: NASA GEOS-CF",
12311232
columns: [
12321233
{ column: "master_no2", name: "NO2", color: "red", width: 2 }
12331234
],

0 commit comments

Comments
 (0)