Skip to content

Commit 2426e1c

Browse files
committed
add recipe list to parsers
1 parent 62435a6 commit 2426e1c

1 file changed

Lines changed: 25 additions & 4 deletions

File tree

oceanval/parsers.py

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@
88

99
session_info["keys"] = []
1010

11+
recipe_list = [
12+
{"chlorophyll": "occci"},
13+
{"oxygen": "woa23"},
14+
{"temperature": "cobe2"},
15+
{"salinity": "woa23"},
16+
{"nitrate": "woa23"},
17+
{"ammonium": "nsbc"},
18+
{"phosphate": "woa23"},
19+
{"silicate": "woa23"},
20+
{"kd490": "occci"},
21+
{"ph": "glodap"},
22+
{"alkalinity": "glodap"},
23+
# nsbc
24+
{"chlorophyll": "nsbc"},
25+
{"oxygen": "nsbc"},
26+
{"temperature": "nsbc"},
27+
{"salinity": "nsbc"},
28+
{"nitrate": "nsbc"},
29+
{"ammonium": "nsbc"},
30+
{"phosphate": "nsbc"},
31+
{"silicate": "nsbc"}
32+
33+
]
34+
1135
def find_recipe(x, start = None, end = None):
1236
output = dict()
1337
# check if there is only one key and one value
@@ -431,10 +455,7 @@ def add_gridded_comparison(self,
431455
# vertical is not None
432456
if recipe_info["vertical"] is not None:
433457
vertical = recipe_info["vertical"]
434-
try:
435-
obs_variable = recipe_info["obs_variable"]
436-
except:
437-
pass
458+
obs_variable = recipe_info["obs_variable"]
438459
recipe = True
439460
else:
440461
recipe = False

0 commit comments

Comments
 (0)