[Thread Prev][Thread Next][Index]

Re: [ferret_users] Appending multiple nc files into single

Instead of using ferret for that, you may use the ‘cdo’ (NetCDF operators) with the merge and copy or cat options:
cdo merge u1_wind.nc v1_wind.nc uv1_wind.nc
cdo merge u2_wind.nc v1_wind.nc uv2_wind.nc
cdo copy uv1_wind.nc uv2_wind.nc uv_wind.nc
You can make a whole loop to cycle thru all files. CDO has an extensive documentation and has compatibility support for Ferret and GrADS. See CDO’s manual pages 25 and 27 (chapters 2.2.1 and 2.2.3). Sorry if that was not the solution you were looking for, but it is very simple once you have CDO handy. Ubuntu at least can install cdo via an apt-get.
- fabricio
Sent: Wednesday, October 02, 2013 1:34 PM
Subject: [ferret_users] Appending multiple nc files into single
Dear Ferret users,
I have netcdf wind data for two months in the following fashion.

u1_wind.nc; v1_wind.nc (For January month)
u2_wind.nc; v2_wind.nc (For February month)

It would be helpful for me if anyone tell how to write a script for me to append these files into a single netcdf file.


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement