示例#1
0
 def buildObjectList(self):
     self.logger.info("Building Object List")
     frames = findFrames(self.folder)
     frameTypes = getFrameLists(frames)  #get frame types
     self.objects = splitByHeader(frameTypes['object'], 'filter')
     #save a cache of the frame info to speed up future uses of the ZeroDarkProcessor
     with open(path.join(self.folder, 'filterLists.json'), 'w') as f:
         json.dump(self.objects, f)
     return self
示例#2
0
 def buildObjectList(self):
     self.logger.info("Building Object List")
     frames = findFrames(self.folder)
     frameTypes = getFrameLists(frames)  # get frame types
     self.objects = splitByHeader(frameTypes["object"], "filter")
     # save a cache of the frame info to speed up future uses of the ZeroDarkProcessor
     with open(path.join(self.folder, "filterLists.json"), "w") as f:
         json.dump(self.objects, f)
     return self
示例#3
0
 def buildObjectList(self):
     """discover object frames in the folder, and what the targets are"""
     for im in findFrames(self.folder):
         header = pyfits.getheader(im)
         self.objects[normalizedName(header)].append(im)
     # now save the object lists
     with open(path.join(self.folder, "objectLists.json"), "w") as f:
         json.dump(self.objects, f)
     return self
示例#4
0
 def buildObjectList(self):
     '''discover object frames in the folder, and what the targets are'''
     for im in findFrames(self.folder):
         header = pyfits.getheader(im)
         self.objects[normalizedName(header)].append(im)
     #now save the object lists
     with open(path.join(self.folder, 'objectLists.json'), 'w') as f:
         json.dump(self.objects, f)
     return self