From 519f3dca9120b9ba5ec32deca451eb4d9fbe934b Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Mon, 6 Nov 2023 14:33:47 -0700 Subject: [PATCH] placeholder for publicDate --- bin/mk_metadata.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/mk_metadata.py b/bin/mk_metadata.py index 3493b9d..8156382 100755 --- a/bin/mk_metadata.py +++ b/bin/mk_metadata.py @@ -31,7 +31,7 @@ import dvpipe.utils as utils from dvpipe.pipelines.metadatagroup import LmtMetadataGroup, example -_version = "31-oct-2023" +_version = "7-nov-2023" def header(rc, key, debug=False): """ @@ -146,6 +146,7 @@ def get_version(): lmtdata.add_metadata("projectID", header(rc,"ProjectId",debug)) lmtdata.add_metadata("projectTitle", header(rc,"projectTitle",debug)) lmtdata.add_metadata("PIName", header(rc,"PIName",debug)) + lmtdata.add_metadata("publicDate", "2099-12-31") # @todo #lmtdata.add_metadata("obsnum", header(rc,"obsnum",debug)) #lmtdata.add_metadata("subobsnum", header(rc,"subobsnum",debug)) @@ -185,7 +186,10 @@ def get_version(): # isCombined - bool, True if more than one obsnum/combined data - lmtdata.add_metadata("isCombined", False) + if obsinfo["obsNum"].find("_") > 0: + lmtdata.add_metadata("isCombined", True) + else: + lmtdata.add_metadata("isCombined", False) # obsnumlist is deprecated #lmtdata.add_metadata("obsnumList", header(rc,"obsnum_list",debug))