Skip to content

Commit

Permalink
Clean up yamls with anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
geier1993 committed Jun 24, 2024
1 parent ba8468d commit 6975635
Show file tree
Hide file tree
Showing 4 changed files with 1,060 additions and 3,049 deletions.
23 changes: 13 additions & 10 deletions share/metkit/mars2grib/GenerateTimeDescriptionRule.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,26 +74,29 @@ def main():


# TODO handle other products like satellite which have no timeExtent. Possibly have to evaluate stream for that
pointInTime = {
"write-work": {
"timeExtent": "pointInTime"
}
}
timeRange = {
"write-work": {
"timeExtent": "timeRange"
}
}
timeExtentRule = {
"key": "paramId",
"dict": "initial",
"default": {
"key": "stream",
"dict": "initial",
"default": {
"write-work": {
"timeExtent": "pointInTime"
}
},
"default": pointInTime,
"value-map": {} # PUT in stream general stuff
},
"value-map": {
"{}".format(paramId): (specialHandlingForParamId[paramId]
if paramId in specialHandlingForParamId.keys() else {
"write-work": {
"timeExtent": "timeRange"
}
}) for paramId in statisticalParamIds
if paramId in specialHandlingForParamId.keys() else timeRange
) for paramId in statisticalParamIds
}
}

Expand Down
Loading

0 comments on commit 6975635

Please sign in to comment.