Skip to content

Commit

Permalink
Remove if statement that has the same selection for each condition
Browse files Browse the repository at this point in the history
  • Loading branch information
measrainsey committed Nov 20, 2024
1 parent 1971a5a commit 4153010
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,7 @@ def process_raster(user, isimip, cl, scen, var, data):
hydro_data = path_water + f"*{cl}*{scen}*{var}*monthly*.nc"

files = glob.glob(hydro_data)
if var != "qr":
# Open hydrological data as a combined dataset
da = xr.open_mfdataset(files)
else:
# Open hydrological data as a combined dataset
da = xr.open_mfdataset(files)
da = xr.open_mfdataset(files)

if monthlyscale:
if var == "dis":
Expand Down

0 comments on commit 4153010

Please sign in to comment.