File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ for yr in $yearsRange; do
272
272
273
273
# setting the end point, either the end of current year, or the $endDate
274
274
# last time-step of the current year
275
- endOfCurrentYearUnix=$( date --date=" $yr -01-01 +1year -1day" " +%s" )
275
+ endOfCurrentYearUnix=$( date --date=" $yr -01-01 23:00:00 +1year -1day" " +%s" )
276
276
if [[ $endOfCurrentYearUnix -le $endDateUnix ]]; then
277
277
endPointUnix=$endOfCurrentYearUnix
278
278
else
@@ -287,7 +287,7 @@ for yr in $yearsRange; do
287
287
288
288
# creating file name
289
289
file=" ${toDateFormatted} 12.nc" # current file name
290
-
290
+
291
291
# extracting variables from the files and spatial subsetting
292
292
# assuring the process finished using an `until` loop
293
293
until ncks -A -v ${variables} \
You can’t perform that action at this time.
0 commit comments