def load_config():
config_file = tkFileDialog.askopenfile("r")
# Get parameters from .txt file
[username, password, start_date, end_date, area_of_interest, platform, max_cloud_cover, download_path, image_id, download_options,
image_path, preprocessing_options] = configuration.read_txt(config_file)
# Clear old values
clear_all()
# Set new settings
entries.set(username, password, start_date, end_date, area_of_interest, platform, max_cloud_cover, download_path, download_options,
image_id, image_path, preprocessing_options, textbox_username, textbox_password, textbox_start_date,
textbox_end_date, textbox_aoi, variable_sentinel1, variable_sentinel2, textbox_cloud_cover, textbox_download_path,
textbox_product_id, variable_save_metadata, variable_plot_footprints, variable_download_test_image,
variable_download_all, textbox_image_path, variable_mosaick, variable_subset)
# Method for saving a configuration file
评论列表
文章目录