def test_sqlalchemy_function_find_datasets(self): from datetime import datetime from madmex.persistence.driver import find_datasets start_date = datetime.strptime('2015-01-01', "%Y-%m-%d") end_date = datetime.strptime( '2015-12-31', "%Y-%m-%d") image_paths = find_datasets(start_date, end_date, 12, 1, 10, '21048') print image_paths
def get_images_for_tile(tile_id, sensor_id, product_id, cloud_cover=100): ''' This method will query the database for all the images between 1990 and 2020. ''' start_date = datetime.strptime('1990-01-01', '%Y-%m-%d') end_date = datetime.strptime('2020-01-01', '%Y-%m-%d') return find_datasets(start_date, end_date, sensor_id, product_id, cloud_cover, tile_id)
def test_sqlalchemy_function_find_datasets(self): from datetime import datetime from madmex.persistence.driver import find_datasets start_date = datetime.strptime('2015-01-01', "%Y-%m-%d") end_date = datetime.strptime('2015-12-31', "%Y-%m-%d") image_paths = find_datasets(start_date, end_date, 12, 1, 10, '21048') print image_paths