@@ -443,7 +443,7 @@ def get_dist_to_edge_and_gl(self, thk, topg, x, y,
443
443
elif window_size < min (high_dist , high_dist_bed ):
444
444
logger .info ('WARNING: window_size was set to a value smaller'
445
445
' than high_dist and/or high_dist_bed. Resetting'
446
- f' window_size to { max (high_dist , high_dist_bed )} , '
446
+ f' window_size to { max (high_dist , high_dist_bed )} ,'
447
447
' which is max(high_dist, high_dist_bed)' )
448
448
window_size = max (high_dist , high_dist_bed )
449
449
@@ -972,7 +972,7 @@ def preprocess_ais_data(self, source_gridded_dataset,
972
972
tic = time .perf_counter ()
973
973
logger .info (f"Beginning interpolation for { field } " )
974
974
# NOTE: Do not need to evaluate the extrapolator at all grid cells.
975
- # Only needed for ice-free grid cells, since it's NN extrapolation
975
+ # Only needed for ice-free grid cells, since is NN extrapolation
976
976
data .variables [field ][0 , :] = interp (xGrid , yGrid )
977
977
toc = time .perf_counter ()
978
978
logger .info (f"Interpolation completed in { toc - tic } seconds" )
@@ -1029,8 +1029,8 @@ def interp_gridded2mali(self, source_file, mali_scrip, nProcs, dest_file, proj,
1029
1029
proj: str
1030
1030
projection of the source dataset
1031
1031
1032
- variables: str or list of strings
1033
-
1032
+ variables: "all" or list of strings
1033
+ either the string "all" or a list of strings
1034
1034
"""
1035
1035
1036
1036
def __guess_scrip_name (filename ):
@@ -1057,7 +1057,7 @@ def __guess_scrip_name(filename):
1057
1057
variables = [variables ]
1058
1058
if not isinstance (variables , list ):
1059
1059
raise TypeError ("Arugment 'variables' is of incorrect type, must"
1060
- " either the string 'all' or a list string " )
1060
+ " either the string 'all' or a list of strings " )
1061
1061
1062
1062
logger .info ('creating scrip file for source dataset' )
1063
1063
# Note: writing scrip file to workdir
@@ -1090,9 +1090,6 @@ def __guess_scrip_name(filename):
1090
1090
1091
1091
check_call (args , logger = logger )
1092
1092
1093
- # should I delted the weights file, since that could cause namespace
1094
- # conflicts when multiple interpolations are done?
1095
-
1096
1093
1097
1094
def clean_up_after_interp (fname ):
1098
1095
"""
0 commit comments