How to map elevation in Matlab
Ältere Kommentare anzeigen
Hi,
I latitude and longitude as well as elevation. I want to show elevation using 'contourf'. Here is my script.
latlim = [47 62]; lonlim = [-124 -88]; figure('Color','white') axesm('miller','MapLatLimit',latlim,'MapLonLimit',lonlim, ... 'Frame','on','Grid','off','MeridianLabel','on', ... 'ParallelLabel','on') axis on geoshow('PrairiesBoundaries.shp', 'FaceColor','white') framem('FEdgeColor','blue','FLineWidth',0.5) hold on [LONG,LAT]=meshgrid(linspace(min(long),max(long)),linspace(min(lat),max(lat))); F = TriScatteredInterp(long,lat,elevation); qz = F(LONG,LAT); [C,h]=contourf(LONG,LAT,qz); colormap jet
My problems: - I need to transform
LONG,LAT]=meshgrid(linspace(min(long),max(long)),linspace(min(lat),max(lat))); F = TriScatteredInterp(long,lat,elevation); qz = F(LONG,LAT); [C,h]=contourf(LONG,LAT,qz);
so that it aligns with the projection
axesm('miller','MapLatLimit',latlim,'MapLonLimit',lonlim, ... 'Frame','on','Grid','off','MeridianLabel','on', ... 'ParallelLabel','on')
- secondly, I would like to improve my contour spacing and labelling.
Thanks so much for your help. Asong.
Antworten (0)
Kategorien
Mehr zu Map Display finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!