How to impose conditions on 4D data to retrieve required information>?

1 view (last 30 days)
Iam working with netcdf format data. I have used the following commands.
data = ' name of the file '; ncdisp(data)
the above command displayed the information about the various fields in it. it contains 23 no of latitudes, 32 no of longitudes, and 12 pressure levels, for 11 years time period i.e., 11x12x365days.
For all the above time period another variable temp is present which i need to retrieve between specific latitude and longitude, pressure and time intervals.
I used following commands. lat= ncread(data,'lat'); long=ncread(data,'long'); level=ncread(data,'level'); time=ncread(data,'time');
Now for retrieving the temp between 2nd and 6th lat, 4th and 8th long that is present in the levels between 1 to 3 what should I do ?
Thankyou in advance.
I apologize for my bad english.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!