Question
In matlab, I am trying to extract netcdf data for a vector of latitude and longitudes to develop a time series. My code only produces
In 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started