Project

General

Profile

have wrong result after using monmean for wrfout data

Added by huiqi you over 1 year ago

hi,cdo experts
I have wrfout files for 6 hour intervals(form 2018-9-30 to 2019-9-30). I use 'cdo monmean infile out.nc' to calculate the monthly average, but there is wrong value for the time dimension in the results. I used panoply to check the results and found a strange value between March.

Everything is fine with my original file and I can't find anything that might be causing this. I desperately need your help, thank so much!
I have attached the problematic file, but the wrfout file is too large for me to upload.


Replies (2)

RE: have wrong result after using monmean for wrfout data - Added by Estanislao Gavilan over 1 year ago

Hi huiqi,

maybe your data is corrupted. It seems that the error appears in March. You should check the time axis of your original data. Make sure that your do not have nan values or empty values for your date. 10101 could mean 1st January of the year 1. Some software fill empty data with that type of date.

Kind regards,

Estanislao

RE: have wrong result after using monmean for wrfout data - Added by Ralf Mueller over 1 year ago

hi!

you cannot edit single timesteps with CDO. But since you have monthly data, the exact time might not be so important.

So if you don't care if your monthly values are from hour 9, 12 or 21, you can fix this with

 cdo -settaxis,2018-09-01,12:00:00,1months <ifile> <ofile>

hth
ralf

    (1-2/2)