Waterfall plot of a time series data

조회 수: 1 (최근 30일)
Shreya
Shreya 2014년 6월 4일
편집: Shreya 2014년 6월 4일
I want to create a waterfall plot of a daily temperature time series data against months of the x-axis, depth on the y-axis and years on the z-axis. My daily temperature data is in netcdf format. The data is a daily temperature data from Nov 2007 to May 2014 over 15 different levels of depth. I wish to contour the vertical temperature profile over 3 tempearature isotherms and average the dailty data to monthly mean. I wish to use the plot to see temperature anomaly (peaks and dips) over the period of years given on the y-axis.

답변 (1개)

David Sanchez
David Sanchez 2014년 6월 4일
You can use ncread to access your data within the netcdf file. ( From MATLAB documentation )
ncdisp('example.nc','peaks');
peaksData = ncread('example.nc','peaks');
peaksDesc = ncreadatt('example.nc','peaks','description');
surf(double(peaksData));
title(peaksDesc);
Not knowing how your data is structured within the netcdf renders a better answer impossible.

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by