Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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