⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapug.html

📁 m_map是加拿大学者编写的一个在matlab上绘地图的软件
💻 HTML
📖 第 1 页 / 共 5 页
字号:
coastlines or other awkwardly shaped or aligned regions. It isconformal but not equal area. The following properties govern thisprojection: </a>    <h4><a name="p2.2"> <code> &lt;,'lon&lt;gitude&gt;',[ G1 G2 ]&gt; <br>&lt;,'lat&lt;itude&gt;', [ L1 L2 ]&gt; </code> </a></h4>    <a name="p2.2">Two points specify a great circle, and thus thelimits of this map (it is assumed that the region near the shortest ofthe two arcs is desired). The 2 points (G1,L1) and (G2,L2) are thus atthe center of either the top/bottom or left/right sides of the map(depending on the <code>'direction'</code> property). </a>    <h4><a name="p2.2"> <code> &lt;,'asp&lt;ect&gt;',value&gt; </code>    </a></h4>    <a name="p2.2"> This specifies the size of the map in the directionperpendicular to the great circle of tangency, as a proportion of thelength shown. An aspect ratio of 1 results in a square map, smallernumbersresult in skinnier maps. Aspect ratios &gt;1 are possible, but notrecommended. </a>    <h4><a name="p2.2"> <code> &lt;,'dir&lt;ection&gt;',( 'horizontal'| 'vertical' ) </code> </a></h4>    <a name="p2.2"> This specifies whether the great circle of tangencywill be horizontal on the page (for making short wide maps), orvertical (for tall thin maps). </a>    <h4><li><a name="p2.2"> Transverse Mercator </a></li>    </h4>    <a name="p2.2">The Transverse Mercator is a special case of theoblique mercator when the great circle of tangency lies along ameridian of longitude, and is therefore conformal. It is often used forlarge-scale maps andcharts. The following properties govern this projection: </a>    <h4><a name="p2.2"> <code> &lt;,'lon&lt;gitude&gt;',[min max]&gt; <br>&lt;,'lat&lt;itude&gt;',[min max]&gt; </code> </a></h4>    <a name="p2.2"> These specify the limits of the map. </a>    <h4><a name="p2.2"> <code> &lt;,'clo&lt;ngitude&gt;',value&gt; </code>    </a></h4>    <a name="p2.2"> Although it makes most sense in generalto specify the central meridian as the meridian of tangency (this isthedefault), certain map classification systems (noteably UTM) use only afixed set of central longitudes, which may not be in the map center. </a>    <h4><a name="p2.2"> <code> &lt;,'rec&lt;tbox&gt;', ( 'on' | 'off')&gt; </code> </a></h4>    <a name="p2.2">The map limits can either be based onlatitude/longitude (the default), or the map boundaries can form anexact rectangle. Thedifference is small for large-scale maps. Note: Although thisprojectionis similar to the Universal Transverse Mercator (UTM) projection, thelatter is actually ellipsoidal in nature. </a>    <h4><li><a name="p2.2"> Universal Transverse Mercator (UTM) </a></li>    </h4>    <a name="p2.2">UTM maps are needed only for high-quality maps ofsmall regions of the globe (less than a few degrees in longitude). Thisis an ellipsoidal projection. Options are similar to those of theTransverseMercator, with the addition of </a>    <h4><a name="p2.2"> <code> &lt;,'zon&lt;e&gt;', value 1-60&gt; </code>    </a></h4>    <a name="p2.2"> </a>    <h4><a name="p2.2"> <code> &lt;,'hem&lt;isphere&gt;',value0=N,1=S&gt; </code> </a></h4>    <a name="p2.2"> These are computed automatically if not specified.The ellipsoid defaults to <code>'normal'</code>, a spherical earth ofradius 1 unit, but other options can also be chosen using the followingproperty: </a>    <h4><a name="p2.2"> <code> &lt;,'ell&lt;ipsoid&gt;', ellipsoid&gt;    </code> </a></h4>    <a name="p2.2"> For a list of available ellipsoids try <code>m_proj('get','utm')</code>.    </a>    <p> <a name="p2.2">The big difference between UTM and all theother projections is that for ellipsoids other than <code>'normal'</code>the projectioncoordinates are in meters of easting and northing. To take fulladvantageof this it is often useful to call <code>m_proj</code> with <code>'rectbox'</code>set to <code>'on'</code> and not to use the long/lat grid generatedby <code>m_grid</code> (since the regular matlab grid will be in unitsof meters). </a></p>    <h4><li><a name="p2.2"> Sinusoidal </a></li>    </h4>    <a name="p2.2">This projection is usually called"pseudo-cylindrical" since parallels of latitude appear as straightlines, similar to their appearance in cylindrical projections tangentto the equator. However, meridians curve together in this projection ina sinusoidal way (hence the name), making this map equal-area. </a>    <h4><li><a name="p2.2"> Gall-Peters </a></li>    </h4>    <a name="p2.2">Parallels of latitude and meridians both appear asstraight lines, but the vertical scale is distorted so that area ispreserved. This is useful for tropical areas, but the distortion inpolar areas is extreme. </a>  </ol>  <h3><a name="p2.2"> <li> <br>  </li>  </a><a name="p2.3"> Conic Projections </a></h3>  <a name="p2.3">Conic projections result from projecting onto a conewrapped around the sphere. The vertex of the cone lies on therotational axis of the sphere. The cone is either tangent at a singlelatitude, or can intersect the sphere at two separated latitudes. It isa useful projection for mid-latitude areas of large east-west extent.The following properties affect these projections: </a>  <h4><a name="p2.3"> <code> &lt;,'lon&lt;gitude&gt;',[min max]&gt; <br>&lt;,'lat&lt;itude&gt;',[min max]&gt; </code> </a></h4>  <a name="p2.3"> These specify the limits of the map. </a>  <h4><a name="p2.3"> <code> &lt;,'clo&lt;ngitude&gt;',value&gt; </code>  </a></h4>  <a name="p2.3"> The central longitude appears as a vertical on thepage. The default value is the mean longitude, although it may be setto any value (even one outside the limits). </a>  <h4><a name="p2.3"> <code> &lt;,'par&lt;allels&gt;',[lat1 lat2]&gt; </code>  </a></h4>  <a name="p2.3">The standard parallels can be specified. Either one ortwo parallels can be given, the default is a single parallel at themean latitude </a>  <h4><a name="p2.3"> <code> &lt;,'rec&lt;tbox&gt;', ( 'on' | 'off')&gt; </code> </a></h4>  <a name="p2.3">The map limits can either be based onlatitude/longitude (the default), or the map boundaries can form anexact rectangle whichcontain the given limits. Unless the region being mapped is small, itisbest to leave this <code> 'off' </code>. </a>  <ol>    <a name="p2.3"> </a>    <h4><li><a name="p2.3"> Albers Equal-Area Conic </a></li>    </h4>    <a name="p2.3">This projection is equal-area, but not conformal </a>    <h4><li><a name="p2.3"> Lambert Conformal Conic </a></li>    </h4>    <a name="p2.3">This projection is conformal, but not equal-area. </a>  </ol>  <h3><a name="p2.3"> <li> <br>  </li>  </a><a name="p2.4"> Miscellaneous global projections </a></h3>  <a name="p2.4">There are a number of projections which don't reallyfit into any of the above categories. Mostly these are globalprojections (i.e. they show the whole world), and they have beendesigned to be "pleasing to the eye". I'm not sure what use they are ingeneral, but they makenice logos! </a>  <ol>    <a name="p2.4"> </a>    <h4><li><a name="p2.4"> Hammer-Aitoff </a></li>    </h4>    <a name="p2.4">An equal-area projection with curved meridians andparallels. </a>    <h4><li><a name="p2.4"> Mollweide </a></li>    </h4>    <a name="p2.4"> Also called the Elliptical or HomolographicEqual-Area Projection. Parallels are straight (and parallel) in thisprojection.Note that </a><a href="../map.html#e4">example 4</a> shows a rathersophisticated use designed to reduce distortion, a more standard mapcan be made using    <pre>m_proj('mollweide');<br>m_coast('patch','r');<br>m_grid('xaxislocation','middle');<br></pre>    <h4><li><a name="p2.4"> Robinson </a></li>    </h4>    <a name="p2.4"> Not equal-area OR conformal, but supposedly "pleasing to the eye".  </ol>  <h3> <li> <a name="p2.5"> Yeah, but which projection should I use?</a></li>  </h3>  <a name="p2.5">Well, it depends really on how large an area you aremapping. Usually, maps of the whole world are Mercator, although oftenthe Miller Cylindrical projection looks better because it doesn'temphasize the polar areas as much. Another choice is the Hammer-Aitoffor Mollweide (which has meridians curving together near the poles).Both are equal-area. It's probably not a good idea to use theseprojections for maps that don't have the equator somewhere near themiddle. The Robinson projection is not equal-area or conformal, but was the choice of National Geographic (for a while, anyway),and also appears in the IPCC reports.</a>  <p> <a name="p2.5">If you are plotting something with a largenorth/south extent, but not very wide (say, North and South America, orthe Northand South Atlantic), then the Sinusoidal or Mollweide projections willlook pretty good. Another choice is the Transverse Mercator, althoughthatis usually used only for very large-scale maps. </a></p>  <p><a name="p2.5"> For smaller areas within one hemisphere or other(say, Australia, the United States, the Mediterranean, the NorthAtlantic) you might pick a conic projection. The differences betweenthe two available conic projections are subtle, and if you don't knowmuch about projections it probably won't make much difference which oneyou use. </a></p>  <p> <a name="p2.5">If you get smaller than that, it doesn't matter awhole lot which projection you use. One projection I find useful inmany cases is the Oblique Mercator, since you can align it along a long(but narrow) coastal area. If map limits along lines oflongitude/latitude are OK, use a Transverse Mercator or ConicProjection. The UTM projection is also useful. </a></p>  <p> <a name="p2.5">Polar areas are traditionally mapped using aStereographic projection, since for some reason it looks nice to have a"bullseye" pattern of latitude lines. </a></p>  <p> <a name="p2.5">If you want to get a quick idea of what anyprojection looks like, default parameters for all functions are set fora "typical" usage, i.e. to get a quick idea of what any projectionlooks like, youcan do so without having to figure out a lot of numerical values: </a></p>  <pre><a name="p2.5">m_proj('stereographic');  % Example for stereographic projection<br>m_coast;<br>m_grid;<br></a></pre>  <p> </p>  <li>    <h3><a name="p2.6">Map scales</a></h3>  </li>  <a name="p2.6">M_Map usually scales the map so that it fits exactlywithin the current axes. If you just want a nice picture (which ismostly the case) then this is exactly what you need. On the other hand,sometimes you want to print things out at some exact scale (i.e. if youreally much prefer sitting at your desk with a ruler and a piece ofpaper trying to figure out how far apart Bangkok and Tokyo are). Usethe <code>m_scale</code> primitive for this - for a 1:250000 map, call  </a>  <pre><a name="p2.6">m_scale(250000);<br></a></pre>  <a name="p2.6">after you have drawn everything (Be careful - a1:250000 map of the world is a lot bigger than 8.5"x11" sheet ofpaper). </a>  <p> <a name="p2.6">This option is usually only useful forlarge-scale maps, i.e. maps of very small areas). </a></p>  <p> <a name="p2.6">If you wish to know the current scale, calling <code>m_scale</code>without any parameters will calculate and return that value. </a></p>  <p><a name="p2.6"> To return to the default scaling call <code>m_scale('auto')</code>.  </a></p>  <p> <a name="p2.6">(PS - If you do want to find distances fromBangkokto anywhere, plot an azimuthal equidistant projection of the worldcentered on Bangkok (13 44'N, 100 30'E), and choose a fairly smallscale, like1:200,000,000). Another option would be to use range rings, see </a><a href="../map.html#e11">example 11</a>.</p>  <h3> <li> <a name="p2.7"> </a> <a name="p2.7">Map coordinatesystems - geographic and geomagnetic.</a></li>  </h3>  <a name="p2.7"> </a>  <p><a name="p2.7"> </a><a name="p2.6">Latitude/Longitude is theusual coordinate system for maps. In some cases UTM coords are alsoused, but these are really just a simple transformation based on thelocation of the equator and certain lines of longitude. On the otherhand, there are occasions when a coordinate system based on some otherset of axes is useful. For example, in spacephysics data is often projected in coordinates based on the magneticpoles.&nbsp;M_Map has a limited capabality to deal with data in these othercoordinatesystems. m_coord allows you to chnage the coordinate system fromgeographicto geomagnetic.&nbsp; The following code gives you the idea:<br>  </a></p>  <p><a name="p2.6"><code>&nbsp;lat=[25*ones(1,100) 50*ones(1,100) 25];<br>lon=[-99:0 0:-1:-99 -99];<br>  <br>clf<br>subplot(121);<br>m_coord('IGRF2000-geomagnetic'); % Treat all lat/longs as geomagnetic<br>m_proj('stereographic');<br>m_coast;<br>m_grid;<br>m_line(lon,lat,'color','r');&nbsp;&nbsp;&nbsp;&nbsp; % "lat/ln" assumed

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -