Created
August 21, 2016 19:25
-
-
Save robintw/5faf577e209d381a55e6a7f3a3374ad0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
> python prepare_landsat_image.py D:\HOTBAR\L7Examples\LE72020252001228EDC00.tar.bz | |
recipy run inserted, with ID 2e1ae247-6dac-489c-9b66-e75ad6e3414b | |
20:22:47:INFO:Processing image with scene ID = LE72020252001228EDC00 to D:\HOTBAR\L7Examples\LE72020252001228EDC00 | |
20:22:47:INFO:Extracting D:\HOTBAR\L7Examples\LE72020252001228EDC00.tar.bz | |
20:23:16:INFO:Extraction complete. | |
20:23:16:INFO:Renaming images | |
20:23:16:INFO:Not renaming file: README.GTF | |
20:23:16:INFO:Merging uncorrected images | |
20:23:16:INFO:Generating radiance scaling factors for Landsat 7 | |
Traceback (most recent call last): | |
File "D:\HOTBAR\LandsatUtils\convert_DN_to_radiance.py", line 21, in get_radiance_scaling | |
rad_scaling = metadata['RADIOMETRIC_RESCALING'] | |
KeyError: 'RADIOMETRIC_RESCALING' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "prepare_landsat_image.py", line 162, in <module> | |
main() | |
File "prepare_landsat_image.py", line 159, in main | |
prepare(args['<targzfile>'], output_dir) | |
File "prepare_landsat_image.py", line 52, in prepare | |
prepare1(filename, path) | |
File "prepare_landsat_image.py", line 92, in prepare1 | |
extract_and_process_uncorrected(filename, path, "Merged_Radiance.tif") | |
File "D:\HOTBAR\LandsatUtils\extract_and_process.py", line 50, in extract_and_process_uncorrected | |
os.path.join(path, output_name)) | |
File "D:\HOTBAR\LandsatUtils\convert_DN_to_radiance.py", line 124, in create_radiance_image | |
radiance_mult, radiance_add = get_radiance_scaling(mtl_filename) | |
File "D:\HOTBAR\LandsatUtils\convert_DN_to_radiance.py", line 24, in get_radiance_scaling | |
fixMTL(filename, rad_scaling) | |
File "D:\HOTBAR\LandsatUtils\tweak_images.py", line 9, in fixMTL | |
id_ = filename.split('/')[-2] | |
IndexError: list index out of range |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment