コード例 #1
0
ファイル: test_util.py プロジェクト: CONABIO/madmex-antares
 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
コード例 #2
0
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)
コード例 #3
0
ファイル: test_util.py プロジェクト: makeling/antares
 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
コード例 #4
0
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)