CDO: Calculating Flux Terms

To compute simple flux terms wT, wq from gridded data in NetCDF format we can use the CDOmul” operator:

cdo  mul  W.nc  T.nc  WT.nc
cdo  mul  W.nc  Q.nc  WQ.nc

The resulting variable in the output file will have the name of the first variable “W”. So we can then rename the variables using “chname“:

cdo  chname,W,wT  WT.nc  wT.nc
rm WT.nc

 

Leave a Reply

Your email address will not be published. Required fields are marked *