📄 map.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Mozilla/4.05 [en] (X11; I; Linux 2.0.34 i686) [Netscape]"> <title>M_Map: A Mapping package for Matlab</title></head><body bgcolor="#fff5ee"><center><h1> M_Map: A mapping package for <a href="http://www.mathworks.com">Matlab</a></h1></center><hr><center><img src="./private/mlogo.gif" nosave="" height="216" width="216"> </center><p> </p><hr><p>You have collected your data, loaded it into <a href="http://www.mathworks.com">Matlab </a>, analyzed everything todeath, and now you want to make a simple map showing how it relates tothe world. </p><p>But you can't. </p><p>Instead you have to figure out how to save all your data, and thenread it into another program (like, for example <a href="http://gmt.soest.hawaii.edu">GMT </a>), and then spend all thatextratime figuring out why it doesn't give you what you expected itwould...oryou can invest in Matlab's own mapping toolbox (with a similarly steeplearningcurve)... or not! </p><p></p><hr ,="" width="5"><center><h4> Announcing M_Map v1.4c! (updated 23/Oct/06)</h4></center><table align="center" border="1" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td align="center" valign="middle"><a href="#1._M_Map_Logo"><img src="private/thumb_mlogo.gif" alt="" height="108" width="108"> </a><br> </td> <td align="center" valign="middle"><a href="#2._Lambert_Conformal_Conic_projection_of"><img src="private/thumb_exlamber.gif" alt="" height="73" width="119"> </a><br> </td> <td align="center" valign="middle"><a href="#3._Stereographic_projection_of_North"><img src="private/thumb_exster.gif" alt="" height="99" width="100"> </a><br> </td> <td align="center" valign="middle"><a href="#4._Two_Interrupted_Projections_of_the"><img src="private/thumb_exsinus.gif" alt="" height="125" width="121"> </a><br> </td> <td align="center" valign="middle"><a href="#5._Oblique_Mercator_Projection_with"><img src="private/thumb_exquiv.gif" alt="" height="78" width="124"> </a><br> </td> </tr> <tr> <td align="center" valign="middle"><a href="#6._Miller_Projection_with_Great_Circle"><img src="private/thumb_exmiller.gif" alt="" height="77" width="124"> </a><br> </td> <td align="center" valign="middle"><a href="#7._Lambert_Conformal_Projection_with_Med"><img src="private/thumb_extbase.gif" alt="" height="79" width="124"> </a><br> </td> <td align="center" valign="middle"><a href="#8._Demonstration_of_fancy_vectors"><img src="private/thumb_exvec.gif" alt="" height="126" width="99"> </a><br> </td> <td align="center" valign="middle"><a href="#9._Zoom_in_on_Prince_Edward_Island_to_co"><img src="private/thumb_exgshhs.gif" alt="" height="108" width="144"> </a><br> </td> <td align="center" valign="middle"><a href="#10._Tracklines_and_UTM_projection"><img src="private/thumb_track1.gif" alt="" height="137" width="135"> </a><br> </td> </tr> <tr> <td align="center" valign="middle"><a href="#11._Range_rings"><img src="private/thumb_rring.gif" alt="" height="64" width="113"> </a><br> </td> <td align="center" valign="middle"><a href="#12._Speckle"><img src="private/thumb_extspeckle.gif" alt="" height="64" width="113"> </a><img src="./private/new.gif"><br> </td> <td align="center" valign="middle"><a href="#13._Blueocean"><img src="private/thumb_extblueocean.gif" alt="" height="64" width="113"> </a><img src="./private/new.gif"><br> </td> <td align="center" valign="middle"><br> </td> <td align="center" valign="middle"><br> </td> </tr> <tr> <td align="center" valign="middle"><a href="map.html#1._Global_SST"><img src="private/thumb_ex_sst.gif" alt="" height="94" width="138"></a><br> <a href="map.html#1._Global_SST"> </a></td> <td align="center" valign="middle"> <a href="map.html#2._SSMI_Ice_cover"><img src="private/thumb_ex_ssmi.gif" alt="" height="103" width="130"></a><br> <a href="map.html#2._SSMI_Ice_cover"> </a></td> <td align="center" valign="middle"><a href="map.html#3._Aerial_photos"><img src="private/thumb_ex_terra.gif" alt="" height="100" width="135"></a><a href="map.html#3._Aerial_photos"> </a></td> <td align="center" valign="middle"><a href="map.html#4._A_subset_of_a_global_dataset"><img src="private/thumb_ex_modis.gif" alt="" height="99" width="135"></a><a href="map.html#4._A_subset_of_a_global_dataset"> </a></td> <td align="center" valign="middle"><br> </td> </tr> </tbody></table><hr ,="" width="5">M_Map is a set of mapping tools written for Matlabv5 and later. These include:<ol> <li> Routines to project data in 18 different spherical projections(and determine inverse mappings)</li> <li> A grid generation routine to make nice axes with limits eitherin lat/long terms or in planar X/Y terms.</li> <li> A coastline database (with 1/4 degree resolution)</li> <li> A global elevation database (1 degree resolution)</li> <li> Hooks into freely available high-resolution coastline andbathymetry databases</li></ol><center> </center>New in release 1.4b are<br><ol> <li>m_hatch for hatched and speckled patches</li> <li>old-fashioned speckled coastlines (good for B&W pics - see <a href="#12._Speckle">Example 13</a>).<br> </li> <li>m_lldist now also returns points on great circle geodesics.</li> <li>m_fdist, m_idist, and m_geodesic for geodesics on an ellipsoidalearth.<br> </li></ol>New in release 1.4 are<br><ol> <li>m_pcolor</li> <li>m_coord (to allow for geographic and geomagnetic coordinatesystems)</li> <li>A very few minor bug fixes.</li> <li>Some hints about and examples of adding satellite image data toyourmaps.<br> </li></ol><p></p><ol></ol><hr><h2> <a name="download"></a>How to get M_Map</h2>You can download the M_Map toolbox either as a <a href="http://www.eos.ubc.ca/%7Erich/m_map1.4.tar.gz">gzipped tar-file </a>,or as <a href="http://www.eos.ubc.ca/%7Erich/m_map1.4.zip">zip archive</a>(Click on these links to download). If you are unpacking the zipfile MAKE SURE YOUALSO UNPACK SUBDIRECTORIES! Both are around 650k in size. Once you havethisarchive, read the <a href="private/mapug.html#p1">Getting started </a>sectionof the <a href="private/mapug.html">User's guide </a>to correctlyinstall this toolbox, and sections <a href="private/mapug.html#p9">9</a>and <a href="private/mapug.html#p9.6">10.1</a> to install TerrainBaseand GSHHS respectively.<p>A number of <a href="#examples">examples</a> have been given tohighlight the various capabilities of M_Map (thumbnails are shownabove). </p><p>You can also get <b>m_namebox </b>(a set of utilities forautomatically adding names to your map), through its home page at<a href="http://www.nersc.no/%7Eeven/matlab/m_namebox/m_namebox.html">http://www.nersc.no/~even/.</a> </p><p> </p><hr><h2> <a href="private/mapug.html">User's guide</a></h2><ol> <li> <a href="private/mapug.html#p1">Getting started</a></li> <li> <a href="private/mapug.html#p2">Specifying projections</a></li> <ol> <li> <a href="private/mapug.html#p2.1">Azimuthal projections</a></li> <li> <a href="private/mapug.html#p2.2">Cylindrical andPseudo-cylindrical projections</a></li> <li> <a href="private/mapug.html#p2.3">Conic projections</a></li> <li> <a href="private/mapug.html#p2.4">Miscellaneous globalprojections</a></li> <li> <a href="private/mapug.html#p2.5">Yeah, but which projectionshould I use?</a></li> <li> <a href="private/mapug.html#p2.6">Map scales</a></li> <li><a href="./private/mapug.html#p2.7">Map coordinate systems-geographic and geomagnetic</a> <br> </li> </ol> <li> <a href="private/mapug.html#p3">Coastlines and Bathymetry</a></li> <ol> <li> <a href="private/mapug.html#p3.1">Coastline options</a><img src="./private/new.gif"></li> <li> <a href="private/mapug.html#p3.2">Topography/Bathymetryoptions</a></li> </ol> <li> <a href="private/mapug.html#p4">Customizing the axes</a></li> <ol> <li> <a href="private/mapug.html#p4.1">Grid lines and labels</a></li> <li> <a href="private/mapug.html#p4.2">Titles and x/ylabels</a></li> <li> <a href="private/mapug.html#p4.3">Legend Boxes </a></li> </ol> <li> <a href="private/mapug.html#p5">Adding your own data</a></li> <ol> <li> <a href="private/mapug.html#p5.3">Drawing lines, text,arrows, patches, hatches, speckles, and contours</a><img src="./private/new.gif"></li> <li><a href="private/mapug.html#p5.2new">Drawing images and p_color </a> </li> <li> <a href="private/mapug.html#p5.4">Drawing tracklines</a></li> <li> <a href="private/mapug.html#p5.5">Drawing range rings andgeodesics</a><img src="./private/new.gif"></li> <li> <a href="private/mapug.html#p5.1">Convertinglongitude/latitude to projection coordinates</a></li> <li> <a href="private/mapug.html#p5.2">Converting projectioncoordinates to longitude/latitude</a></li> <li> <a href="private/mapug.html#p5.6">Computing distances betweenpoints </a></li> </ol> <li> <a href="private/mapug.html#p6">More complex plots</a></li> <li> <a href="private/mapug.html#p13">Removing data from a plot</a></li> <li> <a href="private/mapug.html#p7">Adding your own coastlines</a></li> <ol> <li> <a href="private/mapug.html#p7.1">DCW political boundaries</a></li> </ol> <li> <a href="private/mapug.html#p8">Adding your owntopography/bathymetry</a></li> <ol> <li> <a href="private/mapug.html#p8.1">Sandwell and SmithBathymetry</a></li> </ol> <li> <a href="private/mapug.html#p9">Using TerrainBase 5-minuteor ETOPO2 2-minute global bathymetry/topography </a></li> <li> <a href="private/mapug.html#p9.5">Using the GSHHShigh-resolution coastline database</a></li> <ol> <li> <a href="private/mapug.html#p9.6">Installing GSHHS</a></li> <li> <a href="private/mapug.html#p9.7">Using GSHHS effectively</a></li> </ol> <li> <a href="private/mapug.html#p10">M_Map toolbox contents anddescription</a></li> <li> <a href="private/mapug.html#p11">Known Problems and Bugs</a></li> <li> <a href="private/mapug.html#p12">Changes since lastrelease </a> <img src="./private/new.gif"> </li></ol>For information, help, suggestions, or bug reports, contact <a href="http://www.eos.ubc.ca/people/faculty/pawlowicz/">Rich Pawlowicz </a>,(<a href="mailto:rich@eos.ubc.ca"> rich@eos.ubc.ca </a>) <br><hr> <br> <h2> Acknowledgements</h2> A number of people have helped out with suggestions, code fixes,etc. I am especially grateful for the work done by E. Firing, D.Byrne, M. Mann, J. Pringle, and J. E. Nilsen who have allcontributed code.<p> </p><hr><h2> <a name="examples"></a>Examples</h2><h4><a name="1._M_Map_Logo"></a> 1. M_Map Logo</h4><pre>m_proj('ortho','lat',48','long',-123');<br>m_coast('patch','r');<br>m_grid('linest','-','xticklabels',[],'yticklabels',[]);<br>patch(.55*[-1 1 1 -1],.25*[-1 -1 1 1]-.55,'w');<br>text(0,-.55,'M\_Map','fontsize',25,'color','b',...<br> 'vertical','middle','horizontal','center');<br>set(gcf,'units','inches','position',[2 2 3 3]);<br>set(gcf,'paperposition',[3 3 3 3]);</pre><center><img src="./private/mlogo.gif"> </center> <h4><a name="2._Lambert_Conformal_Conic_projection_of"></a> <a name="e2"></a>2.Lambert Conformal Conic projection of North American Topography</h4><pre>m_proj('lambert','long',[-160 -40],'lat',[30 80]);<br>m_coast('patch',[1 .85 .7]);<br>m_elev('contourf',[500:500:6000]);<br>m_grid('box','fancy','tickdir','in');<br>colormap(flipud(copper));</pre><center><img src="./private/exlamber.gif"> </center> <h4><a name="3._Stereographic_projection_of_North"></a> 3.Stereographicprojection of North Polar regions</h4><pre>% Note that coastline is drawn OVER the grid because of the order in which<br>% the two routines are called<br><br>m_proj('stereographic','lat',90,'long',30,'radius',25);<br>m_elev('contour',[-3500:1000:-500],'edgecolor','b');<br>m_grid('xtick',12,'tickdir','out','ytick',[70 80],'linest','-');<br>m_coast('patch',[.7 .7 .7],'edgecolor','r');</pre><center><img src="./private/exster.gif"> </center> <h4><a name="4._Two_Interrupted_Projections_of_the"></a> <a name="e4"></a>4.Two Interrupted Projections of the World's Oceans</h4>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -