jms1980
jms1980

Reputation: 1075

merging multiple netcdf files into one netcdf file

I have three netcdf files with three different variables:

PRMSL.nc with variable PRMSL
UGRD.nc with variable UGRD
VGRD.nc with variable VGRD

These files have the same longitudinal and latitudinal coverage and resolution. These files also have the same time steps.

How do I combine the above netcdf files into one big netcdf file with the variables PRMSL,VGRD,and UGRD?

Upvotes: 1

Views: 2145

Answers (1)

jms1980
jms1980

Reputation: 1075

cdo merge PRMSL.nc VGRD.nc UGRD.nc final.nc

where final.nc contains all the variables PRMSL,UGRD, and VGRD.

Upvotes: 4

Related Questions