-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into update-landingpage-info
- Loading branch information
Showing
4 changed files
with
93 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import isodate | ||
|
||
|
||
def seconds_to_iso_8601_duration(seconds: int) -> str: | ||
duration = isodate.Duration(seconds=seconds) | ||
iso_duration = isodate.duration_isoformat(duration) | ||
|
||
# TODO: find a better way to format these | ||
# Use PT24H instead of P1D | ||
if iso_duration == "P1D": | ||
iso_duration = "PT24H" | ||
|
||
# iso_duration defaults to P0D when seconds is 0 | ||
if iso_duration == "P0D": | ||
iso_duration = "PT0S" | ||
|
||
return iso_duration | ||
|
||
|
||
def convert_to_meter(level: int) -> str: | ||
level = str(float(level) / 100) | ||
return level |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,56 @@ | ||
{ | ||
"properties": { | ||
"title": "JAN MAYEN", | ||
"institution": "Norwegian Meteorological Institute (MET Norway)", | ||
"Conventions": "CF-1.10, ACDD-1.3", | ||
"history": "2023-10-09 10:19:00: Created from kvalobs.", | ||
"keywords": "Meteoroligical observations from ground stations", | ||
"keywords_vocabulary": "placeholder", | ||
"summary": "Ground observation from kvalobs, stationJAN MAYEN", | ||
"source": "kvalobs", | ||
"creator_name": "Norwegian Meteorological Institute", | ||
"creator_url": "https//www.met.no", | ||
"creator_email": "[email protected]", | ||
"creator_type": "institution", | ||
"integrity": { | ||
"method": "sha256", | ||
"value": "91.0" | ||
[ | ||
{ | ||
"properties": { | ||
"title": "JAN MAYEN", | ||
"institution": "Norwegian Meteorological Institute (MET Norway)", | ||
"Conventions": "CF-1.10, ACDD-1.3", | ||
"history": "2023-10-09 10:19:00: Created from kvalobs.", | ||
"keywords": "Meteoroligical observations from ground stations", | ||
"keywords_vocabulary": "placeholder", | ||
"summary": "Ground observation from kvalobs, stationJAN MAYEN", | ||
"source": "kvalobs", | ||
"creator_name": "Norwegian Meteorological Institute", | ||
"creator_url": "https//www.met.no", | ||
"creator_email": "[email protected]", | ||
"creator_type": "institution", | ||
"integrity": { | ||
"method": "sha256", | ||
"value": "91.0" | ||
}, | ||
"processing_level": "q1", | ||
"license": "http//spdx.org/licenses/CC-BY-4.0(CC-BY-4.0)", | ||
"platform": "0-20000-0-01001", | ||
"platform_vocabulary": "placeholder", | ||
"naming_authority": "no.met", | ||
"datetime": "2024-04-24T10:19:00+00:00", | ||
"level": "12", | ||
"function": "point", | ||
"period": "PT0S", | ||
"content": { | ||
"encoding": "utf-8", | ||
"standard_name": "relative_humidity", | ||
"unit": "percent", | ||
"size": 4, | ||
"value": "91.0" | ||
}, | ||
"metadata_id": "urn:x-wmo:md:norway:no.met:bb8c10a1-ba20-4676-a193-1e1929de9d13", | ||
"data_id": "urn:x-wmo:md:norway:no.met:bb8c10a1-ba20-4676-a193-1e1929de9d13", | ||
"pubtime": "2023-10-10T07:50:09.607843+00:00" | ||
}, | ||
"processing_level": "q1", | ||
"license": "http//spdx.org/licenses/CC-BY-4.0(CC-BY-4.0)", | ||
"platform": "0-20000-0-01001", | ||
"platform_vocabulary": "placeholder", | ||
"naming_authority": "no.met", | ||
"datetime": "2024-04-24T10:19:00+00:00", | ||
"level": "12", | ||
"function": "point", | ||
"period": "P3DT12H30M5S", | ||
"content": { | ||
"encoding": "utf-8", | ||
"standard_name": "relative_humidity", | ||
"unit": "percent", | ||
"size": 4, | ||
"value": "91.0" | ||
"links": [ | ||
{ | ||
"href": "Insert documentation about E-SOH datastore", | ||
"rel": "canonical" | ||
} | ||
], | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": { | ||
"lat": "70.9394", | ||
"lon": "-8.669" | ||
} | ||
}, | ||
"metadata_id": "urn:x-wmo:md:norway:no.met:bb8c10a1-ba20-4676-a193-1e1929de9d13", | ||
"data_id": "urn:x-wmo:md:norway:no.met:bb8c10a1-ba20-4676-a193-1e1929de9d13", | ||
"pubtime": "2023-10-10T07:50:09.607843+00:00" | ||
}, | ||
"links": [ | ||
{ | ||
"href": "Insert documentation about E-SOH datastore", | ||
"rel": "canonical" | ||
} | ||
], | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": { | ||
"lat": "70.9394", | ||
"lon": "-8.669" | ||
} | ||
}, | ||
"type": "Feature", | ||
"version": "v4.0" | ||
} | ||
"type": "Feature", | ||
"version": "v4.0" | ||
} | ||
] |