Skip to content

Commit

Permalink
Loop through all vars in RegridLoop().
Browse files Browse the repository at this point in the history
Resolves NGEET#15: RegridLoop does not iterate to the last index in the LUH2 dataset variable list
  • Loading branch information
samsrabin committed Aug 23, 2024
1 parent 1e38cbc commit b688b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/landusedata/regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def RegridLoop(ds_to_regrid, regridder):
ds_varnames = list(ds_to_regrid.variables.keys())
varlen = len(ds_to_regrid.variables)
first_var = False
for i in range(varlen-1):
for i in range(varlen):

# Skip time variable
if (not "time" in ds_varnames[i]):
Expand Down

0 comments on commit b688b37

Please sign in to comment.