def test_valid_load(self):
        dataset = bp._load_rcmed_dataset_object(self.dataset_info, self.eval_bounds)
        lat_min, lat_max, lon_min, lon_max = dataset.spatial_boundaries()
        start_time, end_time = dataset.temporal_boundaries()

        self.assertTrue(self.eval_bounds['lat_min'] <= lat_min)
        self.assertTrue(self.eval_bounds['lat_max'] >= lat_max)
        self.assertTrue(self.eval_bounds['lon_min'] <= lon_min)
        self.assertTrue(self.eval_bounds['lon_max'] >= lon_max)
        self.assertTrue(self.eval_bounds['start_time'] <= start_time)
        self.assertTrue(self.eval_bounds['end_time'] >= end_time)
Пример #2
0
    def test_valid_load(self):
        dataset = bp._load_rcmed_dataset_object(self.dataset_info, self.eval_bounds)
        lat_min, lat_max, lon_min, lon_max = dataset.spatial_boundaries()
        start_time, end_time = dataset.time_range()

        self.assertTrue(self.eval_bounds['lat_min'] <= lat_min)
        self.assertTrue(self.eval_bounds['lat_max'] >= lat_max)
        self.assertTrue(self.eval_bounds['lon_min'] <= lon_min)
        self.assertTrue(self.eval_bounds['lon_max'] >= lon_max)
        self.assertTrue(self.eval_bounds['start_time'] <= start_time)
        self.assertTrue(self.eval_bounds['end_time'] >= end_time)
 def test_default_name_assignment(self):
     dataset = bp._load_rcmed_dataset_object(self.dataset_info, self.eval_bounds)
     self.assertEquals(dataset.name, 'TRMM v.7 Monthly Precipitation')
 def test_custom_name_assignment(self):
     self.dataset_info['name'] = 'CustomName'
     dataset = bp._load_rcmed_dataset_object(self.dataset_info, self.eval_bounds)
     self.assertEquals(dataset.name, self.dataset_info['name'])
Пример #5
0
 def test_default_name_assignment(self):
     dataset = bp._load_rcmed_dataset_object(self.dataset_info, self.eval_bounds)
     self.assertEquals(dataset.name, 'TRMM v.7 Monthly Precipitation')
Пример #6
0
 def test_custom_name_assignment(self):
     self.dataset_info['name'] = 'CustomName'
     dataset = bp._load_rcmed_dataset_object(self.dataset_info, self.eval_bounds)
     self.assertEquals(dataset.name, self.dataset_info['name'])