We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd6fc8a commit b6d6168Copy full SHA for b6d6168
1 file changed
ocean_dp/qc/netcdf_gen.py
@@ -74,7 +74,7 @@ def netcdf_gen(file_name, nominal_depth, *args):
74
time_var.setncattr('valid_min', 0)
75
76
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)
+ ds.variables['TIME'][:] = np.linspace(t0,t0 + (1 / 24) * (len(var_data[0]-1)),num=len(var_data[0]))
78
79
# Create the nominal depth variable
80
nom_depth_var = ds.createVariable("NOMINAL_DEPTH", "f8")
0 commit comments