예제 #1
0
 def ncTiffCase(name, path):
     """Method for extracting the convex hull of a netCDF file
     @param filepath Full path to netCDF file
     @returns a tuple where in first place is the convex hull as an array of point tuples
     """
     bbox = getBoundingBox.getBoundingBox(name, path)
     if bbox[1] is None:
         return ([(bbox[0][0], bbox[0][1]), (bbox[0][0], bbox[0][3]),
                  (bbox[0][2], bbox[0][3]), (bbox[0][2], bbox[0][1])], None)
     else:
         return bbox
예제 #2
0
 def spaceOption(path, name):
     res = box.getBoundingBox(name, path)
     if res[0] is not None:
         return res[0]
     else:
         return res[1]
예제 #3
0
 def run(self):
     bbox = box.getBoundingBox(path=self.path, name=self.name)
     time = timeEx.getTimeExtent(path=self.path, name=self.name)
     self.result.extend([self.name, bbox, time])