Skip to content

Commit

Permalink
Merge pull request #25 from NIVANorge/norsoot_dev
Browse files Browse the repository at this point in the history
updated catalogue details
  • Loading branch information
lisapro authored Aug 15, 2024
2 parents 94a2d8a + ae50858 commit a8f9245
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions dscreator/cfarray/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ class FlagAttrs:

long_name: str
standard_name: str = "status_flag"
flag_meanings: str = "no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed value_below_detection nominal_value interpolated_value missing_value"
flag_meanings: str = (
"no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed value_below_detection nominal_value interpolated_value missing_value"
)
valid_max: int = 9
valid_min: int = 0
flag_values: List[int] = field(init=False)
Expand Down Expand Up @@ -132,12 +134,14 @@ class DatasetAttrsDefaults:
institution: str = "Norwegian Institute for Water Research (NIVA)"
creator_email: str = "[email protected]"
creator_url: str = "https://niva.no"
creator_name: str = "Norwegian Institute for Water Research"
data_owner: str = "Norwegian Institute for Water Research"
# One of https://htmlpreview.github.io/?https://github.com/metno/mmd/blob/master/doc/mmd-specification.html#operational-status
processing_level: str = "Not available"
Conventions: str = "CF-1.7, ACDD-1.3"
netcdf_version: str = "4"
publisher_name: str = "Norwegian Institute for Water Research"
publisher_insitution: str = "Norwegian Institute for Water Research"
publisher_email: str = "[email protected]"
publisher_url: str = "https://niva.no"
# From https://spdx.org/licenses/
Expand All @@ -163,7 +167,7 @@ class FerryboxDatasetAttrsBase(DatasetAttrsDiscreteBase):
platform_code: str
platform_name: str
references: str
depth : str
depth: str


@dataclass
Expand Down
4 changes: 2 additions & 2 deletions dscreator/datasets/trajectories/ferrybox.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def dataset_attributes(self, ds: xr.Dataset) -> FerryboxDatasetAttrs:
),
keywords_vocabulary=",".join(
[
"GCMDSK:GCMD Science Keywords:https://gcmd.earthdata.nasa.gov/kms/concepts/concept_scheme/sciencekeywords",
"CFSTDN:CF Standard Names:https://cfconventions.org/Data/cf-standard-names/current/build/cf-standard-name-table.html",
"GCMDSK:GCMD Science Keywords:https://gcmd.earthdata.nasa.gov/kms/concepts/concept_scheme/sciencekeywords"
]
),
depth="~5m",
Expand All @@ -52,6 +51,7 @@ def dataset_attributes(self, ds: xr.Dataset) -> FerryboxDatasetAttrs:
"Inner and Outer Oslofjord Fagrådet",
]
),
iso_topic_category="oceans",
time_coverage_start=utils.to_isoformat(ds.time.min().values),
time_coverage_end=utils.to_isoformat(ds.time.max().values),
geospatial_lat_min=53.8,
Expand Down

0 comments on commit a8f9245

Please sign in to comment.