diff --git a/src/access_nri_intake/source/utils.py b/src/access_nri_intake/source/utils.py index a3a057e..3ec01e6 100644 --- a/src/access_nri_intake/source/utils.py +++ b/src/access_nri_intake/source/utils.py @@ -42,7 +42,7 @@ class _AccessNCFileInfo: variable_standard_name: list[str] variable_cell_methods: list[str] variable_units: list[str] - coords: list[str] + coord: list[str] coord_long_name: list[str] coord_cartesian_axes: list[str] coord_calendar_types: list[str] diff --git a/tests/test_builders.py b/tests/test_builders.py index 032ad94..d21857f 100644 --- a/tests/test_builders.py +++ b/tests/test_builders.py @@ -379,7 +379,7 @@ def test_parse_access_filename(builder, filename, expected): variable_cell_methods=["time: point", "time: point"], variable_units=["degrees_N", "degrees_E"], coord_long_name=["tcell longitude", "tcell latitude"], - coords=["xt_ocean", "yt_ocean"], + coord=["xt_ocean", "yt_ocean"], coord_cartesian_axes=["X", "Y"], coord_calendar_types=["", ""], coord_bounds=["", ""], @@ -402,7 +402,7 @@ def test_parse_access_filename(builder, filename, expected): variable_standard_name=["sea_water_conservative_temperature", ""], variable_cell_methods=["time: mean", ""], variable_units=["K", "days"], - coords=["nv", "st_ocean", "time", "xt_ocean", "yt_ocean"], + coord=["nv", "st_ocean", "time", "xt_ocean", "yt_ocean"], coord_long_name=[ "vertex number", "tcell zstar depth", @@ -444,7 +444,7 @@ def test_parse_access_filename(builder, filename, expected): ], variable_cell_methods=["time: mean", ""], variable_units=["m", "days"], - coords=["nv", "time", "xt_ocean", "yt_ocean"], + coord=["nv", "time", "xt_ocean", "yt_ocean"], coord_long_name=[ "vertex number", "time", @@ -480,7 +480,7 @@ def test_parse_access_filename(builder, filename, expected): ], variable_cell_methods=["time: mean"], variable_units=["m"], - coords=["time", "xt_ocean", "yt_ocean"], + coord=["time", "xt_ocean", "yt_ocean"], coord_long_name=["time", "tcell longitude", "tcell latitude"], coord_cartesian_axes=["T", "X", "Y"], coord_calendar_types=["NOLEAP", "", ""], @@ -520,7 +520,7 @@ def test_parse_access_filename(builder, filename, expected): "m^2", "days since 1900-01-01 00:00:00", ], - coords=["time"], + coord=["time"], coord_long_name=["model time"], coord_cartesian_axes=[""], coord_calendar_types=[""], @@ -544,7 +544,7 @@ def test_parse_access_filename(builder, filename, expected): variable_standard_name=["air_temperature"], variable_cell_methods=["time: mean"], variable_units=["K"], - coords=[], + coord=[], coord_long_name=[], coord_cartesian_axes=[], coord_calendar_types=[], @@ -580,7 +580,7 @@ def test_parse_access_filename(builder, filename, expected): "m^2", "days since 1850-01-01 00:00:00", ], - coords=["time"], + coord=["time"], coord_long_name=["model time"], coord_cartesian_axes=[""], coord_calendar_types=[""], @@ -604,7 +604,7 @@ def test_parse_access_filename(builder, filename, expected): variable_standard_name=["sea_surface_temperature", ""], variable_cell_methods=["time: mean", ""], variable_units=["K", "days"], - coords=["nv", "time", "xt_ocean", "yt_ocean"], + coord=["nv", "time", "xt_ocean", "yt_ocean"], coord_long_name=[ "vertex number", "time", @@ -641,7 +641,7 @@ def test_parse_access_filename(builder, filename, expected): variable_standard_name=["sea_water_potential_temperature", ""], variable_cell_methods=["time: mean", ""], variable_units=["deg_C", "days"], - coords=["nv", "scalar_axis", "time"], + coord=["nv", "scalar_axis", "time"], coord_long_name=["vertex number", "none", "time"], coord_cartesian_axes=["N", "X", "T"], coord_calendar_types=["", "", "GREGORIAN"], @@ -665,7 +665,7 @@ def test_parse_access_filename(builder, filename, expected): variable_standard_name=["air_temperature"], variable_cell_methods=["time: mean"], variable_units=["K"], - coords=[], + coord=[], coord_long_name=[], coord_cartesian_axes=[], coord_calendar_types=[], @@ -701,7 +701,7 @@ def test_parse_access_filename(builder, filename, expected): "m^2", "days since 0001-01-01 00:00:00", ], - coords=["time"], + coord=["time"], coord_long_name=["model time"], coord_cartesian_axes=[""], coord_calendar_types=[""], @@ -728,7 +728,7 @@ def test_parse_access_filename(builder, filename, expected): variable_standard_name=["", ""], variable_cell_methods=["time: mean", ""], variable_units=["mmol/m^2/s", "days"], - coords=["nv", "time", "xt_ocean", "yt_ocean"], + coord=["nv", "time", "xt_ocean", "yt_ocean"], coord_long_name=[ "vertex number", "time", @@ -762,7 +762,7 @@ def test_parse_access_filename(builder, filename, expected): variable_standard_name=["", ""], variable_cell_methods=["time: mean", ""], variable_units=["mmol/m^3", "days"], - coords=["nv", "st_ocean", "time", "xt_ocean", "yt_ocean"], + coord=["nv", "st_ocean", "time", "xt_ocean", "yt_ocean"], coord_long_name=[ "vertex number", "tcell zstar depth", @@ -828,7 +828,7 @@ def test_parse_access_filename(builder, filename, expected): "degC", "days since 0001-01-01 00:00:00", ], - coords=["nv", "time", "xh", "yh", "zl"], + coord=["nv", "time", "xh", "yh", "zl"], coord_long_name=[ "vertex number", "time", @@ -882,7 +882,7 @@ def test_parse_access_filename(builder, filename, expected): "days since 0001-01-01 00:00:00", "degC", ], - coords=["nv", "time", "xh", "yh"], + coord=["nv", "time", "xh", "yh"], coord_long_name=[ "vertex number", "time", @@ -919,7 +919,7 @@ def test_parse_access_filename(builder, filename, expected): variable_standard_name=["", ""], variable_cell_methods=["time: point", "time: point"], variable_units=["degrees_north", "degrees_east"], - coords=["xh", "yh"], + coord=["xh", "yh"], coord_long_name=[ "h point nominal longitude", "h point nominal latitude", @@ -976,7 +976,7 @@ def test_parse_access_filename(builder, filename, expected): "degC", "days since 0001-01-01 00:00:00", ], - coords=["nv", "time", "xh", "yh", "z_l"], + coord=["nv", "time", "xh", "yh", "z_l"], coord_long_name=[ "vertex number", "time", @@ -1024,7 +1024,7 @@ def test_parse_access_filename(builder, filename, expected): "m^2", "days since 0000-01-01 00:00:00", ], - coords=["time"], + coord=["time"], coord_long_name=["time"], coord_cartesian_axes=[""], coord_calendar_types=[""], @@ -1048,7 +1048,7 @@ def test_parse_access_filename(builder, filename, expected): variable_standard_name=["", ""], variable_cell_methods=["", ""], variable_units=["m2 s", "unitless"], - coords=[], + coord=[], coord_long_name=[], coord_cartesian_axes=[], coord_calendar_types=[],