How to find the difference between two column in two netcdf files

I have two NetCDF files of global radiation data (721x361x491). The files have lon, lat, time and radiation columns. I want to subract just the radiation columns in the two files and then write a third netCDF file with the difference in radiation as the new radiation column. Please, how do I do this? Any assistance will be highly apprecaited.

Answers (1)

  1. You have to read netCDf files. Read about ncdisp, ncread.
  2. Load the data of two files into two variables.
  3. Get the difference using -.
  4. Write the data into netCDF file using ncrwrite.

Products

Release

R11.1

Answered:

on 16 Apr 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!