Skip to content

Commit

Permalink
skip appending required vars for ATL14, 15, and 23
Browse files Browse the repository at this point in the history
  • Loading branch information
rwegener2 committed Nov 2, 2023
1 parent b552808 commit 37bcc96
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions icepyx/core/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,22 +730,22 @@ def load(self):
)

# Append the minimum variables needed for icepyx to merge the datasets
var_list=[
"sc_orient",
"atlas_sdp_gps_epoch",
"cycle_number",
"rgt",
"data_start_utc",
"data_end_utc",
]

# Adjust the nec_varlist for individual products
if self.product == "ATL11":
var_list.remove("sc_orient")

# Note: This fails if we are reading a file that doesn't have the var_list
# variables in it.
self.vars.append(defaults=False, var_list=var_list)
# Skip products which do not contain required variables
if self.product not in ['ATL14', 'ATL15', 'ATL23']:
var_list=[
"sc_orient",
"atlas_sdp_gps_epoch",
"cycle_number",
"rgt",
"data_start_utc",
"data_end_utc",
]

# Adjust the nec_varlist for individual products
if self.product == "ATL11":
var_list.remove("sc_orient")

self.vars.append(defaults=False, var_list=var_list)

try:
groups_list = list_of_dict_vals(self.vars.wanted)
Expand Down

0 comments on commit 37bcc96

Please sign in to comment.