Project

General

Profile

using splitmon and splityear at the same time

Added by Toni Jung almost 11 years ago

Hi,

I have several netCDF (.nc) files (temperature, minimum temp, max temp, etc) that contains data for over a hundred years, I would like to split it by year and by month. Whenever I have been able to split by year but then I am unable to split that by month. Same problem when I splitmon first and then split year... it seems like it doesn't want to be split a second time. I am using a unix shell script.

This is what I'm using to splityear:
cdo splityear /dir/*tmn*.nc tmin
mv tmin* "new/directory/"

And to splitmon:
cdo splitmon /new/directory/*tmin*.nc m
mv m* "new/directory/month/"

The format I would like to end up with is: temp1901m01.nc, temp1901m02.nc, ... , temp2010m12.nc.

Thank you in advance.


Replies (1)

RE: using splitmon and splityear at the same time - Added by Jaison-Thomas Ambadan almost 11 years ago

Hi,

it seems like it doesn't want to be split a second time.

Did you get any error message(s)?

Could you please upload:

1) sample of your input file(s) (< 50MB, or a link to download)
2) the output of "cdo -V"

Cheers,
J

    (1-1/1)