In matlab, I am trying to extract netcdf data for a vector of latitude and longi
ID: 3844703 • Letter: I
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 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)
Explanation / Answer
Solution:-
The detailed program is as follows. Hope you will thumbs up.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.