Vous êtes sur la page 1sur 9

Mapping ToolBox Using (map) Chapter 1 worldmap function: Africa', 'Antarctica', 'Asia', 'Europe', 'North America', 'North Pole',

'Pacific', 'South America', 'South Pole', 'World'C


worldmap 'North America' scaleruler hidem(gca)

worldmap([25 35],[45 65]) scaleruler . worldmap([25 35],[45 65]) scaleruler set(handlem('allpatch'),'Facecolor','w') setm(gca,'FFaceColor','c') hidem(gca)

load geoid figure worldmap(geoid,geoidlegend) . load geoid figure worldmap(geoid,geoidlegend) contourcmap(10,'jet','colorbar','on') . load geoid figure worldmap(geoid,geoidlegend) contourcmap(10,'jet','colorbar','on','location','horizontal')

load korea figure worldmap(map,maplegend,'ldem3d') load korea figure worldmap(map,maplegend,'ldem3d') view(3)

figure usamap conus figure usamap([37.5 40],[-78 -75]) hidem(gca)

figure axesm('MapProjection','ortho','Origin',[-35 70 45]) framem;gridm figure axesm('MapProjection','ortho','Origin',[-35 70 45]) framem;gridm displaym(worldlo('POpatch')) figure axesm('MapProjection','ortho','Origin',[-35 70 45]) framem;gridm displaym(worldlo('POpatch')) polcmap didem(gca) worldmap Jamaica worldmap jamaica [lat,lon]=inputm(4) plotm(lat,lon,'-+r') worldmap jamaica [lat,lon]=inputm(4) plotm(lat,lon,'-+r') hidem(gca) 2

load korea worldmap(map,maplegend,'dem') load korea worldmap(map,maplegend,'dem') load geoid [c,h]=contourm(geoid,geoidlegend,-100:5:100,'r'); load korea worldmap(map,maplegend,'dem') load geoid [c,h]=contourm(geoid,geoidlegend,-100:5:100,'r'); ht=clabelm(c,h);set(ht,'color','r') hidem(gca)

>> nm2km(1) ans = 1.8520 >> sm2km(1) ans = 1.6093 >> dst=distance(45,115,30,135) dst = 21.7213 >> deg2km(dst) ans = 2.4153e+003 >> azimuth(45,115,30,135) ans = 126.8377 >> load korea >> ltln2val(map,maplegend,35,125) ans = -64 >> load geoid >> ltln2val(geoid,geoidlegend,35,125) ans = 19.7490 >> load worldmtxmed >> code=ltln2val(map,maplegend,36,127) code = 104 >> load korea >> ltln2val(map,maplegend,35,125) ans = -64

>> load geoid >> ltln2val(geoid,geoidlegend,35,125) ans = 19.7490 >> load worldmtxmed >> code=ltln2val(map,maplegend,36,127) code = 104 >> names{code} ans = Korea, Republic of >> load korea >> mapprofile(map,maplegend,[45;30],[115;135])

Chapter 2
load topo axesm sinusoid meshlsrm(topo,topolegend)

axesm robinson meshm(topo,topolegend); axesm robinson meshm(topo,topolegend); demcmap(topo)

Geographic Measurement npi2pi zero22pi deg2rad antipode distance deg2km azimuth elevation reckon areaquad almanac minaxis Nq
Truncates angles into the -180 deg to 180 deg range Truncates angles into the 0 deg to 360 deg range Truncates angles into the 0 deg to 360 deg range Converts angles from degrees to radians Calculates distances between points on a geoid Converts distances from degrees to kilometers Calculates azimuth between points on a geoid Calculates elevation angle between points on a geoid Computes points at a specified azimuth and range Calculates the area of a lat-long quadrangle using spherical geometry Almanac data for the Solar System Computes semiminor axis given a semimajor axis and an eccentricity

Angle, Times, and DistanceUnit and Notation mat2dms dms2deg angledim strvcat deg2nm Nq Converts a [deg min sec] matrix to vector format Converts angles from deg:min:sec to degrees Converts angles from deg:min:sec to degrees Vertically concatenate strings Converts distances from degrees to nautical miles d

Working with Vector Maps polysplit polyjoin polymerge scircle1 scircle2 track1 track2 interpm intrplat almanac areaint scxsc rhxrh polyxpoly bufferm reducem Nq extracts segments of NaN-delimited polygon vectors to cell arrays convert polygon segments from cell array to vector format merge line segments with matching endpoints Small circle defined by its center, range and azimuth Small circle defined by its center and perimeter Track lines defined by starting point, azimuth and range Track lines defined by a starting and ending point Interpolates vector data to a specified data separation Computes an interpolated latitude for a given longitude Almanac data for the Solar System Calculates the spherical surface area of a polygon Calculates the spherical surface area of a polygon Finds the intersection point between two rhumb lines Line or polygon intersection points buffer zones for vector data Reduce the number of points in vector data d

flatearthpoly inserts points along the dateline to the pole

Working with Matrix Maps limitm setltln setpostn ltln2val findm maskm sizem onem zerom areamat gradientm viewshed meshgrat nanm imbedm Nq
Latitude and longitude limits for a regular matrix map Computes the lat/lon coordinates given regular matrix row/col Converts Greenwich to regular matrix coordinate frame Returns map code value associated with positions Lat/lon values of non-zero map entries Substitutes codes based on a specified map mask Row and column dimension needed for a regular matrix map Constructs a regular matrix map of all ones Constructs a regular matrix map of all zeros Calculates the geographic area of matrix elements Numerical gradient, slope and aspect of matrix maps visible areas from a point on a digital elevation map Construct a graticule for a surface map object Constructs a regular matrix map of all NaNs Constructs a regular matrix map of all NaNs

Chapter 3 latlim=[37 40];lonlim=[-78 -74]


figure usamap(latlim,lonlim) plotm(38.8063,-77.1312,'r+') textm(38.8063,-77.1312,'SPA',... 'fontweight','bold','HorizontalAlignment','r')

load coast
axesm mollweid framem('FEdgeColor','blue','FLineWidth',0.5) plotm(lat,long,'LineWidth',1,'Color','blue') citylats=[30 -23 -32];citylongs=[32 -43 116] plotm(citylats,citylongs,'r*')

Map Axes (axesm)

Accessing and Manipulating Map Axes Properties (axesm, getm)

The Map Frame (FLatLimit, FlonLimit)

The Map Grid (GAltitude)

Displaying Vector Maps as Lines contorm contor3m linem plotm plot3m Nq Project a contour plot of data onto the current map axes Project a 3D contour plot of data onto the current map axes Project line objects onto the current map axes Project 2D line objects onto the current map axes Project 3D line objects onto the current map axes d

Displaying Vector Maps as Patches fillm fll3m patchm patchesm Nq Project 2D patch objects onto the current map axes Project 3D patch objects onto the current map axes Project patch objects onto the current map axes Project patch objects onto the current map axes d

Displaying Matrix Maps meshm surfm imagem pcolorm surfacem surflm meshlsrm surflsrm Nq
Display a regular matrix map warped to a projected graticule Display a matrix map warped to a projected graticule Display a regular matrix map as an image Projected matrix map in the z = 0 plane Display a matrix map warped to a projected graticule Display a lighted matrix map warped to a projected graticule Project 3-D lighted shaded relief of a regular matrix map Project 3-D lighted shaded relief of a general matrix map

Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10

Vous aimerez peut-être aussi