Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

Students also viewed these Databases questions

Question

KEY QUESTION Refer to columns 1 and 6 in the table for question

Answered: 1 week ago