Change default bands args to None to match docs

As reported in #191, Google Storage is not used to download Landsat 8 .tar.bz files even if they are available, as the list of bands is set to '' by default. Changing this to None fixes this.

I imagine the previous behaviour is not intentional, as it means that if no --bands argument is passed then the only files that are downloaded are the _MTL.txt and _BQA.tif files.
This commit is contained in:
Robin Wilson
2016-08-26 07:54:23 +01:00
committed by Drew Bollinger
parent d2dcc4e882
commit 66bc72be70

View File

@@ -216,7 +216,7 @@ def args_options():
help="Provide Full sceneID, e.g. LC81660392014196LGN00")
parser_download.add_argument('-b', '--bands', help='If you specify bands, landsat-util will try to download '
'the band from S3. If the band does not exist, an error is returned', default='')
'the band from S3. If the band does not exist, an error is returned', default=None)
parser_download.add_argument('-d', '--dest', help='Destination path')
parser_download.add_argument('-p', '--process', help='Process the image after download', action='store_true')
parser_download.add_argument('--pansharpen', action='store_true',