Skip to content

Commit

Permalink
add isPolarimetry and halfWavePlateMode
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Nov 7, 2023
1 parent 519f3dc commit fa99925
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions bin/mk_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":

Expand Down Expand Up @@ -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)
Expand All @@ -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))
Expand Down

0 comments on commit fa99925

Please sign in to comment.