From fa999256de61a7207db0a4cdaebc2fe0db3eb29e Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Tue, 7 Nov 2023 11:45:07 -0700 Subject: [PATCH] add isPolarimetry and halfWavePlateMode --- bin/mk_metadata.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/mk_metadata.py b/bin/mk_metadata.py index 8156382..f525918 100755 --- a/bin/mk_metadata.py +++ b/bin/mk_metadata.py @@ -96,6 +96,12 @@ def get_version(): lines = fp.readlines() fp.close() return lines[0].strip() + +def get_publicDate(projectId): + """ + return the date the data will go public + """ + return "2099-12-31" if __name__ == "__main__": @@ -131,7 +137,6 @@ def get_version(): # get version, as comment (or metadata?) print("# LMTOY version %s" % get_version()) - # deal with the enum's we use for instrument on the DV side # valid names: TolTEC, MSIP1mm, SEQUOIA, RSR, OMAYA instrument = header(rc,"instrument", debug) @@ -146,7 +151,11 @@ 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("publicDate", get_publicDate(header(rc,"ProjectId"))) + lmtdata.add_metadata("isPolarimetry", 0) + lmtdata.add_metadata("halfWavePlateMode", "ABSENT") + + #lmtdata.add_metadata("obsnum", header(rc,"obsnum",debug)) #lmtdata.add_metadata("subobsnum", header(rc,"subobsnum",debug))