-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download Collection 1 datastructure with AWS en Google-storage #241
Open
jmellian
wants to merge
16
commits into
developmentseed:develop
Choose a base branch
from
jmellian:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added download Collection 1 landsat 8 data from AWS after 1 may 2017: Example use: pre-collection en collection 1 Landsat 8 data - landsat download LC81970232017085LGN00 --bands 432 - landsat download LC08_L1TP_139045_20170304_20170316_01_T1 --bands 432 - landsat download LC81970232017085LGN00 - landsat download LC08_L1TP_139045_20170304_20170316_01_T1
added extra fields to dict result for landsat search import field is the new 'product_id' in the Collection 1 datastructure example use: - landsat search --limit 2000 --pathrow 199,23 Added to Dict: result['results'] = [{'sceneID': i['sceneID'], 'sat_type': u'L8', 'path2': three_digit(i['path']), 'row2': three_digit(i['row']), 'download_links' : i['download_links'], 'BPF_NAME_OLI' : i['BPF_NAME_OLI'], 'thumbnail': i['browseURL'], 'date': i['acquisitionDate'], 'GROUND_CONTROL_POINTS_VERSION': i['GROUND_CONTROL_POINTS_VERSION'], 'DATE_L1_GENERATED': i['DATE_L1_GENERATED'],
removed some forgotten print statements
delete some forgotten print statements
…orage bucket Add support for download Landsat Collection 1 data from new Google storage bucket Only the *.TIF, _MTL.txt and _ANG..TXT are downloadable. Files *.TIF.ovr and _wrk.IMD are forbidden to download. On AWS these file are accessable.
Added a comment
Added test with Collection 1 Data and change a test because of the changed datastructure
Fixed an error in test_download
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added download Collection 1 landsat 8 data from AWS after 1 may 2017:
Example use: pre-collection en collection 1 Landsat 8 data
landsat download LC81970232017085LGN00 --bands 432
landsat download LC08_L1TP_139045_20170304_20170316_01_T1 --bands 432
landsat download LC81970232017085LGN00
landsat download LC08_L1TP_139045_20170304_20170316_01_T1
added extra fields to dict result for landsat search
import field is the new 'product_id' in the Collection 1 datastructure
example use:
landsat search --limit 2000 --pathrow 199,23
Added to Dict:
result['results'] = [{'sceneID': i['sceneID'],
'sat_type': u'L8',
'path2': three_digit(i['path']),
'row2': three_digit(i['row']),
'download_links' : i['download_links'],
'BPF_NAME_OLI' : i['BPF_NAME_OLI'],
'thumbnail': i['browseURL'],
'date': i['acquisitionDate'],
'GROUND_CONTROL_POINTS_VERSION': i['GROUND_CONTROL_POINTS_VERSION'],
'DATE_L1_GENERATED': i['DATE_L1_GENERATED'],
'NADIR_OFFNADIR': i['NADIR_OFFNADIR'],
'data_geometry': i['data_geometry'],
'sunAzimuth': i['sunAzimuth'],
'cloudCover': i['cloudCover'],
'COLLECTION_NUMBER': i['COLLECTION_NUMBER'],
'sceneCenterLatitude': i['sceneCenterLatitude'],
'cartURL': i['cartURL'],
'sunElevation': i['sunElevation'],
'cloud_coverage': i['cloud_coverage'],
'CLOUD_COVER_LAND': i['CLOUD_COVER_LAND'],
'scene_id': i['scene_id'],
'GROUND_CONTROL_POINTS_MODEL': i['GROUND_CONTROL_POINTS_MODEL'],
'row': i['row'],
'imageQuality1': i['imageQuality1'],
'cloudCoverFull': i['cloudCoverFull'],
'aws_index': i['aws_index'],
'browseURL': i['browseURL'],
'browseAvailable': i['browseAvailable'],
'BPF_NAME_TIRS': i['BPF_NAME_TIRS'],
'dayOrNight': i['dayOrNight'],
'TIRS_SSM_MODEL': i['TIRS_SSM_MODEL'],
'CPF_NAME': i['CPF_NAME'],
'FULL_PARTIAL_SCENE': i['FULL_PARTIAL_SCENE'],
'DATA_TYPE_L1': i['DATA_TYPE_L1'],
'aws_thumbnail': i['aws_thumbnail'],
'google_index': i['google_index'],
'sceneStartTime': i['sceneStartTime'],
'dateUpdated': i['dateUpdated'],
'sensor': i['sensor'],
'lowerRightCornerLatitude': i['lowerRightCornerLatitude'],
'LANDSAT_PRODUCT_ID': i['LANDSAT_PRODUCT_ID'],
'acquisitionDate': i['acquisitionDate'],
'PROCESSING_SOFTWARE_VERSION': i['PROCESSING_SOFTWARE_VERSION'],
'lowerRightCornerLongitude': i['lowerRightCornerLongitude'],
'lowerLeftCornerLatitude': i['lowerLeftCornerLatitude'],
'sceneCenterLongitude': i['sceneCenterLongitude'],
'COLLECTION_CATEGORY': i['COLLECTION_CATEGORY'],
'upperLeftCornerLongitude': i['upperLeftCornerLongitude'],
'path': i['path'],
'lowerLeftCornerLongitude': i['lowerLeftCornerLongitude'],
'GEOMETRIC_RMSE_MODEL_X': i['GEOMETRIC_RMSE_MODEL_X'],
'GEOMETRIC_RMSE_MODEL_Y': i['GEOMETRIC_RMSE_MODEL_Y'],
'sceneStopTime': i['sceneStopTime'],
'upperLeftCornerLatitude': i['upperLeftCornerLatitude'],
'upperRightCornerLongitude': i['upperRightCornerLongitude'],
'product_id': i['product_id'],
'satellite_name': i['satellite_name'],
'GEOMETRIC_RMSE_MODEL': i['GEOMETRIC_RMSE_MODEL'],
'upperRightCornerLatitude': i['upperRightCornerLatitude'],
'receivingStation': i['receivingStation'],
'cloud': i['cloudCoverFull']} for i in r_dict['results']]
Added Landsat Collection 1 data structure download
Changed a Test to pass the download test, because of the changed files from google after 1 may 2017