MATLAB Answers


How to save the results of NetCDF as .nc file?

Asked by Jitesh Dadich on 10 Apr 2019
Latest activity Commented on by Jitesh Dadich on 9 May 2019
Hi all,
I have a .nc file containing lat, lon, time, and values of parameters.
After applying my conditions, i get the values of parameters in same [x y t] dimension, now i want to save my outputs as a different nc file having same lat, lon and time as it had before.
How to do it... could anyone help me?


Sign in to comment.

1 Answer

Answer by ANKUR KUMAR on 9 May 2019
 Accepted Answer

You can use nccreatewrite function to create a nc file having all the required variables. Example:
The files created by matlab (either from this funciton or from the basic matlab function) won't work in grads. You have to write the descriptor file for the MATLAB created nc file.

  1 Comment

Thank you @Ankur really worked well...

Sign in to comment.