Skip to content

Commit b6d6168

Browse files
committed
Update netcdf_gen.py
1 parent cd6fc8a commit b6d6168

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ocean_dp/qc/netcdf_gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def netcdf_gen(file_name, nominal_depth, *args):
7474
time_var.setncattr('valid_min', 0)
7575

7676
t0 = date2num(datetime(2020, 1, 1), units=time_var.units)
77-
ds.variables['TIME'][:] = np.arange(t0, t0 + (1 / 24) * len(var_data[1]), 1 / 24)
77+
ds.variables['TIME'][:] = np.linspace(t0,t0 + (1 / 24) * (len(var_data[0]-1)),num=len(var_data[0]))
7878

7979
# Create the nominal depth variable
8080
nom_depth_var = ds.createVariable("NOMINAL_DEPTH", "f8")

0 commit comments

Comments
 (0)