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 @@ -315,7 +315,7 @@ def decompose_NWP(
315
315
)
316
316
317
317
# Make a NetCDF file
318
- output_date = f"{ analysis_time .astype (datetime .datetime ):%Y%m%d%H%M%S} "
318
+ output_date = f"{ analysis_time .astype ('datetime64[us]' ). astype ( datetime .datetime ):%Y%m%d%H%M%S} "
319
319
outfn = Path (output_path ) / f"cascade_{ NWP_model } _{ output_date } .nc"
320
320
ncf = netCDF4 .Dataset (outfn , "w" , format = "NETCDF4" )
321
321
@@ -411,7 +411,7 @@ def compute_store_nwp_motion(
411
411
"""
412
412
413
413
# Set the output file
414
- output_date = f"{ analysis_time .astype (datetime .datetime ):%Y%m%d%H%M%S} "
414
+ output_date = f"{ analysis_time .astype ('datetime64[us]' ). astype ( datetime .datetime ):%Y%m%d%H%M%S} "
415
415
outfn = Path (output_path ) / f"motion_{ nwp_model } _{ output_date } .npy"
416
416
417
417
# Get the velocity field per time step
You can’t perform that action at this time.
0 commit comments