I have a monthly .nc file from ISIMIP. Here's the time series:
time = "2000-01-01", "2000-02-01", "2000-03-01", "2000-04-01", "2000-05-01",
"2000-06-01", "2000-07-01", "2000-08-01", "2000-09-01", "2000-10-01",
"2000-11-01", "2000-12-01", "2001-01-01", "2001-02-01", "2001-03-01"
... until 2014-12-01.
I need to duplicate every month and make a new time after 15 days. So, I will get 2 times in a month with the same value like:
2000-01-01, 2000-01-16, 2000-02-01, 2000-02-16, 2000-03-01, 2000-03-16....
The times of each month are the same values.
I tried:
cdo inttime,2000-01-01,12:00,15days my_file.nc interpolated_file.nc
ncks -F -d time,,,2 original_file.nc first_days.nc
ncks -F -d time,1,,2 interpolated_file.nc sixteenth_days.nc
ncrcat first_days.nc sixteenth_days.nc final_file.nc
But it did not work. I'd appreciate any suggestions.