I made 2-D color map by using those datasets below
- latmat.mat… latitude data (171*171)
- lonmat.mat…longitude data(171*171)
- CH4.mat…. CH4 emission data (171*171)
Coding is as follows,
figurelatlim=[min(latmat(:)) max(latmat(:))]lonlim=[min(lonmat(:)) max(lonmat(:))]ax=usamap(latlim,lonlim);title('Air Pollution Map');surfm(latmat,lonmat,CH4)states=shaperead('usastatehi',... 'UseGeoCoords',true,'BoundingBox',[lonlim',latlim']);geoshow(ax,states,'FaceColor','none')contourcbar
And got this figure below.
However, I would like to make a map within those ranges below.
70W<Longitude<75W
40N<Latitude<43N
How can I extract the datasets and make a colormap?
Best Answer