def addMultiObsMeta(meta, obsList): """ Insert metadata for related observations. Input: meta metadata to be added to obsList list of observation ids """ dict = MetaDataDictionary.getInstance() myBaseParam = 'photObsid' for i in range(0, len(obsList)): param = dict.newParameter(myBaseParam, Long(obsList[i])) param.setDescription("%s %03d" % (param.getDescription(), i)) meta.set("%s%03d" % (myBaseParam, i), param)
def addMultiObsMeta(meta, obsList): """ Insert metadata for related observations. Input: meta metadata to be added to obsList list of observation ids """ dict = MetaDataDictionary.getInstance() myBaseParam = 'photObsid' for i in range(0,len(obsList)): param = dict.newParameter(myBaseParam, Long(obsList[i])) param.setDescription("%s %03d"%(param.getDescription(), i)) meta.set("%s%03d"%(myBaseParam, i), param)