Campus Maps & Directions Find our libraries on campus.
Library Computers Find and use computer stations at both libraries.
News & Events Stay up-to-date on library events.
#PYTHON BASEMAP 3D EARTHQUAKE DATA UPGRADE#
Digital Scholarship Upgrade your digital skills.
Teaching Support Consult with us on your next assignment.
Online Journals Locate a journal by its title.
Open Access Learn about OA policies and publishing.
Faculty & Graduate Services Learn about how we support your work.
Borrow Tech & Equipment Laptops, cameras, mics, and more.
Special Collections Find and use our unique collections and archives.
Media Collection & Desk Borrow films, music, and digital equipment.
Our Collections Digital collections, video games, maps, and more.
#PYTHON BASEMAP 3D EARTHQUAKE DATA HOW TO#
Start Your Research Learn how to use library resources.
Sign In from Off-Campus Access books, articles, and other online materials from off-campus.
Cite Your Sources Get help with citation basics.
Get Research Help Contact the library with your questions.
Recommended Resources Find the best databases for your classes.
Interlibrary Loan: Borrow from other libraries Borrow items from libraries worldwide.
Databases A - Z Continue your research with more databases.
Course Reserves Set up reserves or find course materials.
UC Library Search Books, articles, and more.
We'll see some examples of a few of these as we continue.įor more information on these functions, including several example plots, see the online Basemap documentation.
drawgreatcircle(): Draw a great circle.
pcolor()/ pcolormesh() : Draw a pseudocolor plot for irregular/regular meshes.
contour()/ contourf() : Draw contour lines or filled contours.
These work very similarly to their standard Matplotlib counterparts, but have an additional Boolean argument latlon, which if set to True allows you to pass raw latitudes and longitudes to the method, rather than projected (x, y) coordinates. In addition to this, there are many map-specific functions available as methods of the Basemap instance. Perhaps the most useful piece of the Basemap toolkit is the ability to over-plot a variety of data onto a map background.įor simple plotting and text, any plt function works on the map you can use the Basemap instance to project latitude and longitude coordinates to (x, y) coordinates for plotting with plt, as we saw earlier in the Seattle example. We'll create both a low- and high-resolution map of Scotland's beautiful Isle of Skye. Here's an example of drawing land/sea boundaries, and the effect of the resolution parameter. This choice is important: setting high-resolution boundaries on a global map, for example, can be very slow. The resolution argument of the Basemap class sets the level of detail in boundaries, either 'c' (crude), 'l' (low), 'i' (intermediate), 'h' (high), 'f' (full), or None if no boundaries will be used.
warpimage(): Project a user-provided image onto the mapįor the boundary-based features, you must set the desired resolution when creating a Basemap image.
etopo(): Draw an etopo relief image onto the map.
shadedrelief(): Project a shaded relief image onto the map.
bluemarble(): Project NASA's blue marble image onto the map.
drawmapscale(): Draw a linear scale on the map.
drawmeridians(): Draw lines of constant longitude.
drawparallels(): Draw lines of constant latitude.
drawgreatcircle(): Draw a great circle between two points.
drawcounties(): Draw US county boundaries.
drawcountries(): Draw country boundaries.
fillcontinents(): Fill the continents with a given color optionally fill lakes with another color.
drawmapboundary(): Draw the map boundary, including the fill color for oceans.
drawlsmask(): Draw a mask between the land and sea, for use with projecting images on one or the other.
drawcoastlines(): Draw continental coast lines.
The following are some of the available drawing functions that you may wish to explore using IPython's help features: The Basemap package contains a range of useful functions for drawing borders of physical features like continents, oceans, lakes, and rivers, as well as political boundaries such as countries and US states and counties. Earlier we saw the bluemarble() and shadedrelief() methods for projecting global images on the map, as well as the drawparallels() and drawmeridians() methods for drawing lines of constant latitude and longitude.