I have two netcdf files: downwelling radiation named rsds.nc
and confined radiation named rsns.nc
. rsds.nc
contains a variable named rsds and rsns.nc
contains a variable named rsns. Now I would like to have the upwelling radiation rsus.nc
by subtracting the variables within rsds.nc
and rsns.nc
, respectively.
I tried the following methods:
ncdiff rsds.nc rsns.nc rsus.nc
ncbo op_typ=diff rsds.nc rsns.nc rsus.nc
All of them produced a rsus.nc
but the variable rsus, within this file is missing. Any idea of why this is so?