Howto: Meteor M2 weather satellite image decoding

I found that adding:

if not os.path.isdir(RAW_DESTINATION_DIR):
    os.makedirs(RAW_DESTINATION_DIR)

before

shutil.move(_file, RAW_DESTINATION_DIR + os.path.basename(_file))

Makes the code a little more robust if there was reboot that cleared the /tmp

@EelkeVisser I’ve got one issue - thermal image is still all black despite adding:

if suffix == "_ir":
        subprocess.call([CONVERT_PATH, "-negate", "-linear-stretch", "1x1%", raw_image_path, result_image])

Any ideas where to start looking to determine the reason?