I have a nc file with 145 long, 129 lat and 10227 time values, I want to change this daily data (10,227) to monthly values. What could be easy way?
Show older comments
Actually, this is a climate data and I need monthly values from which I shall create seasons and plot in map form.
Accepted Answer
More Answers (2)
KSSV
on 23 Feb 2018
0 votes
You should be having dates in your hand.......read the dates....pick the months and calculate the mean of monthly data.
3 Comments
Neha Kanda
on 24 Feb 2018
Neha Kanda
on 24 Feb 2018
KSSV
on 24 Feb 2018
It is not a deal..it can be done...you need to get indices of months you want and run mean on the roster...the output would be a raster itself...it can be then written to NC file..
Peter Perkins
on 23 Feb 2018
0 votes
This seems like it could be easily solved using retime on a timetable, but there's not enough information in you post to go on.
1 Comment
Neha Kanda
on 24 Feb 2018
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!