def test_orthoplot(self): from pyresample import plot, kd_tree, geometry from pyresample import parse_area_file area_def = parse_area_file(os.path.join(os.path.dirname(__file__), 'test_files', 'areas.cfg'), 'ortho')[0] swath_def = geometry.SwathDefinition(self.lons, self.lats) result = kd_tree.resample_nearest(swath_def, self.tb37v, area_def, radius_of_influence=20000, fill_value=None) plot._get_quicklook(area_def, result)
def test_orthoplot(self): """Test the ortho plotting.""" from pyresample import plot, kd_tree, geometry from pyresample import parse_area_file area_def = parse_area_file(os.path.join(os.path.dirname(__file__), 'test_files', 'areas.cfg'), 'ortho')[0] swath_def = geometry.SwathDefinition(self.lons, self.lats) result = kd_tree.resample_nearest(swath_def, self.tb37v, area_def, radius_of_influence=20000, fill_value=None) plot._get_quicklook(area_def, result)
def test_easeplot(self): """Test the plotting on the ease grid area.""" from pyresample import geometry, kd_tree, parse_area_file, plot area_def = parse_area_file( os.path.join(os.path.dirname(__file__), 'test_files', 'areas.yaml'), 'ease_sh')[0] swath_def = geometry.SwathDefinition(self.lons, self.lats) result = kd_tree.resample_nearest(swath_def, self.tb37v, area_def, radius_of_influence=20000, fill_value=None) plot._get_quicklook(area_def, result)
def test_plate_carreeplot(self): from pyresample import plot, kd_tree, geometry from pyresample import parse_area_file area_def = parse_area_file( os.path.join(os.path.dirname(__file__), 'test_files', 'areas.cfg'), 'pc_world')[0] swath_def = geometry.SwathDefinition(self.lons, self.lats) result = kd_tree.resample_nearest(swath_def, self.tb37v, area_def, radius_of_influence=20000, fill_value=None) plot._get_quicklook(area_def, result, num_meridians=0, num_parallels=0)
def test_easeplot(self): area_def = utils.parse_area_file(os.path.join(os.path.dirname(__file__), 'test_files', 'areas.cfg'), 'ease_sh')[0] swath_def = geometry.SwathDefinition(self.lons, self.lats) result = kd_tree.resample_nearest(swath_def, self.tb37v, area_def, radius_of_influence=20000, fill_value=None) plt = plot._get_quicklook(area_def, result)
def test_plate_carreeplot(self): area_def = utils.parse_area_file(os.path.join(os.path.dirname(__file__), 'test_files', 'areas.cfg'), 'pc_world')[0] swath_def = geometry.SwathDefinition(self.lons, self.lats) result = kd_tree.resample_nearest(swath_def, self.tb37v, area_def, radius_of_influence=20000, fill_value=None) plt = plot._get_quicklook(area_def, result, num_meridians=0, num_parallels=0)
def test_easeplot(self): area_def = utils.parse_area_file( os.path.join(os.path.dirname(__file__), 'test_files', 'areas.cfg'), 'ease_sh')[0] swath_def = geometry.SwathDefinition(self.lons, self.lats) result = kd_tree.resample_nearest(swath_def, self.tb37v, area_def, radius_of_influence=20000, fill_value=None) plt = plot._get_quicklook(area_def, result)
def test_plate_carreeplot(self): """Test the Plate Caree plotting functionality.""" from pyresample import geometry, kd_tree, parse_area_file, plot area_def = parse_area_file( os.path.join(os.path.dirname(__file__), 'test_files', 'areas.yaml'), 'pc_world')[0] swath_def = geometry.SwathDefinition(self.lons, self.lats) result = kd_tree.resample_nearest(swath_def, self.tb37v, area_def, radius_of_influence=20000, fill_value=None) plot._get_quicklook(area_def, result, num_meridians=0, num_parallels=0) plot._get_quicklook(area_def, result, num_meridians=10, num_parallels=10) plot._get_quicklook(area_def, result, num_meridians=None, num_parallels=None)