How to find the difference between two column in two netcdf files
Show older comments
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)
KSSV
on 16 Apr 2020
0 votes
- You have to read netCDf files. Read about ncdisp, ncread.
- Load the data of two files into two variables.
- Get the difference using -.
- Write the data into netCDF file using ncrwrite.
Categories
Find more on NetCDF in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!