Plotting a map by extracting data in time intervals from a netcdf file
显示 更早的评论
My netcdf file has longitude, latitude, month, and monthly mean temperature. Data are for 10 years. I have to get the average for each month (ie mean for all January months over 10 years, mean for all February months over 10 years, etc). Data file sizes are 180 for latitude, 360 for longitude, 120 for month and monthly mean temperatures. Size of the final answer should be 360 x 180 x12.
Then I need to get the standard deviation and make a plot of it.
Please help me with this.
1 个评论
Walter Roberson
2023-2-11
If you ncread() the monthly mean temperature, is the result an array that is (number of longitude) by (number of latitude) by (12) by (number of years) ? Something else?
Data file sizes are 180 for latitude, 360 for longitude, 120 for month and monthly mean temperatures.
So when you ncread() the monthly mean temperature, the result is 360 x 180 x 120 ? Please verify this explicitly: it would be common in netcdf files to instead find that the data was 180 x 360 x 120 .
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 NetCDF 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!