简体   繁体   English

在 R 中拆分 .nc 文件

[英]split .nc file in R

I have a file, clip_pr_day_GFDL-ESM2M_historical_r1i1p1_19810101-19851231.nc.我有一个文件,clip_pr_day_GFDL-ESM2M_historical_r1i1p1_19810101-19851231.nc。 It has 5 years data from 1981-1985.它有 1981-1985 年的 5 年数据。 I want to split it into yearly data.我想将其拆分为年度数据。 I need 5 files rather than 1 single file.我需要 5 个文件而不是 1 个单个文件。 I am beginner at R and have installed cdo 1.6.4.我是 R 的初学者并且已经安装了 cdo 1.6.4。 Could you please send me an script for this using CDO in R?你能用 R 中的 CDO 给我发送一个脚本吗? Thank you.谢谢你。

the CDO command is CDO 命令是

cdo splityear in.nc out.nc 

you can also call this from R using sys你也可以使用 sys 从 R 调用它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM