[gradsusr] how to combine nc files with performing some arithmatics on the variable in these files
曹宁
caoning1525 at gmail.com
Mon Mar 14 10:00:38 EDT 2011
Hi Waheed,
Maybe you can try this in a Grads Script :
'set fwrite ^prep.grd'
'set gxout fwrite'
i=1951
while(i<=2007)
'sdfopen ^**'i'**.nc'
……
You can take a yearly average here , and then there will be a file with 57
time steps.
Good luck!
2011/3/14 Waheed <waheed.met at gmail.com>
> Dear all
>
> I have 57 nc files from 1951 to 2007 on monthly sum of precipitation for
> our region ( these files have one variable pptn). now i want to combine
> these files to get one file with 57 time steps such that t=1 shows the time
> 1957 and t=57 shows the time 2007 also i want to divide this sum in the
> final file with 57. how to do this any help.
>
> I have tried to combine these nc files through xconv software on RHL
> operating system it does not give any error while converting but when i go
> in and check the file it shows only one time step rather than 75 time steps.
> I have searched it on the Internet and got that CDO( climate data operator)
> can do it. but i am unable to install it and get it from net? how to do
> this? or is there any easy way to do this. because i have 57 files for each
> month ( i:e from January to December) .
>
> thanks to all in advance...
>
> Best regards
>
> --
> Waheed Iqbal
> Meteorologist
> Pakistan Meteorological Department
> R & D Division, Islamabad,Pakistan.
> +923334547814
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
曹宁
MSN&Gmail&Gtalk:caoning1525 at gmail.com
安徽,合肥,China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110314/25ece9ed/attachment-0003.html
More information about the gradsusr
mailing list