Question: n matlab, I am trying to extract netcdf data for a vector of latitude and longitudes to develop a time series. My code only produces
n matlab, I am trying to extract netcdf data for a vector of latitude and longitudes to develop a time series. My code only produces a time series for an individual lat long value. Can someone please help me code a matlab program that will let me plot a vector of lat long values? My code is attached below, thank you. lat=nc_varget('/Users/Ajanardhanan/Documents/MATLAB/Complete_TMAX_LatLong1.nc','latitude'); lon=nc_varget('/Users/Ajanardhanan/Documents/MATLAB/Complete_TMAX_LatLong1.nc','longitude'); t=nc_varget('/Users/Ajanardhanan/Documents/MATLAB/Complete_TMAX_LatLong1.nc','temperature'); time=nc_varget('/Users/Ajanardhanan/Documents/MATLAB/Complete_TMAX_LatLong1.nc','time'); a=find(lon==72.5); b=find(lat==30.5); r=t(:,b,a); plot(time,r)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
