Skip to content

Commit

Permalink
bugfix: only retrieve the layer name and URL when Worldview is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
aronnem committed Jul 12, 2021
1 parent 9b07d47 commit f23acf4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oco_vistool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,8 +1305,10 @@ def do_overlay_plot(
odat = load_OCO2_L1L2_overlay_data(ovr_d)

# defining both name and XML url of the chosen layer (from the user's code)
layer_name = layers_encoding[layers_encoding['Code'] == cfg_d['layer']]['Name'].values[0]
layer_url = layers_url[layers_url['Name'] == layer_name]['Url'].values[0]
# this happens only for Worldview layers
if cfg_d['sensor'] == 'Worldview':
layer_name = layers_encoding[layers_encoding['Code'] == cfg_d['layer']]['Name'].values[0]
layer_url = layers_url[layers_url['Name'] == layer_name]['Url'].values[0]


# construct the auto-generated filenames. These are of the form:
Expand Down

0 comments on commit f23acf4

Please sign in to comment.