Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions ARGO/oceancurrent/oceancurrent_file_server_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,16 @@ def _load_api_endpoint():
"region_layer": 3,
"max_layer": 3,
},
{
"productId": "adjustedSeaLevelAnomaly-nonTidalSla",
"include":[
{"path": "STATE_daily", "layer": 1},
{"path": "^NTSLA$", "layer": 2}
],
"filetype": ".gif",
"region_layer": 3,
"max_layer": 3,
},
{
"productId": "adjustedSeaLevelAnomaly-centiles",
"include":[
Expand Down Expand Up @@ -472,6 +482,16 @@ def _load_api_endpoint():
"max_layer": 3,
"save_in_product_folder": True
},
{
"productId": "tidalCurrents-monthplots",
"include": [
{"path": "tides", "layer": 1},
{"path": "monthplots", "layer": 2}
],
"filetype": ".gif",
"max_layer": 2,
"save_in_product_folder": True
},
{
"productId": "EACMooringArray",
"include": [
Expand Down
31 changes: 31 additions & 0 deletions ARGO/oceancurrent/test_oceancurrent_file_server_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,22 @@ def prepare_test_cases(self):
]
}
],
"adjustedSeaLevelAnomaly-nonTidalSla": [
{
"path": "/STATE_daily/NTSLA/Au",
"productId": "adjustedSeaLevelAnomaly-nonTidalSla",
"region": "Au",
"depth": None,
"files": [
{
"name": "2026011812.gif"
},
{
"name": "2026011818.gif"
}
]
}
],
"oceanColour-chlA": [
{
"path": "/STATE_daily/CHL/NZ",
Expand Down Expand Up @@ -356,6 +372,19 @@ def prepare_test_cases(self):
],
},
],
"tidalCurrents-monthplots": [
{
"path": "/tides/monthplots",
"productId": "tidalCurrents-monthplots",
"region": None,
"depth": None,
"files": [
{"name": "CSIRO_28064_198712.gif"},
{"name": "CSIRO_28072_202101.gif"},
{"name": "NTC_Y_island_202512.gif"},
],
},
],
"EACMooringArray": [
{
"path": "/EAC_array_figures/SST/Brisbane",
Expand Down Expand Up @@ -452,6 +481,7 @@ def test_file_structure_explorer(self):
self.verify_json("sealCtdTags-10days", "AATAMS/", "sealCtdTags-10days")
self.verify_json("sealCtdTags-temperature", "AATAMS/", "sealCtdTags-temperature")
self.verify_json("adjustedSeaLevelAnomaly-sla", "STATE_daily/SLA", "SLA")
self.verify_json("adjustedSeaLevelAnomaly-nonTidalSla", "STATE_daily/NTSLA", "NTSLA")
self.verify_json("oceanColour-chlA", "STATE_daily/CHL", "CHL")
self.verify_json("oceanColour-chlA-region", "", "oceanColour-chlA")
self.verify_json("adjustedSeaLevelAnomaly-sst", "", "adjustedSeaLevelAnomaly-sst")
Expand All @@ -461,6 +491,7 @@ def test_file_structure_explorer(self):
self.verify_json("currentMetersPlot-49", "timeseries", "currentMetersPlot-49")
self.verify_json("tidalCurrents-spd", "tides", "tidalCurrents-spd")
self.verify_json("tidalCurrents-sl", "tides", "tidalCurrents-sl")
self.verify_json("tidalCurrents-monthplots", "tides", "tidalCurrents-monthplots")
self.verify_json("EACMooringArray", "EAC_array_figures", "EACMooringArray")
# Verify no JSON file required if no gif files listed
not_existed_path = os.path.join(self.file_test_dir, "timeseries", "currentMetersCalendar-48.json")
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading