imapToRAST: 'imap' to 'plotRAST'

imapToRASTR Documentation

imap to plotRAST

Description

imapToRAST will zoom into an area using imap and then use the same bounding box to replace the figure with a raster image using plotRAST.

Usage

imapToRAST(landOverlay = FALSE, ...)

Arguments

landOverlay

Use imap to overlay land onto the figure. Default is FALSE.

...

Additional arguments passed to plotRAST

Value

A list with the latitude and longitude ranges used is invisibly returned.

Author(s)

John R. Wallace: John.Wallace@noaa.gov

See Also

imap, plotRAST

Examples

## Not run: 
# imap() is used to zoom into an area. When the interaction is stopped, the figure will be replaced with a raster image.
imapToRAST()

# For faster download times, use the 'etopo1' layer with its lower resolution for all areas.
imapToRAST(autoLayer = FALSE) 

  
# Compare the bathymetry of the ice sheet in Greenland with the bedrock underneath. After imapToRAST() is run, use the zoom tool of imap() create a bounding box around all of Greenland.
(BB <- imapToRAST())   # Default is ETOPO1_ice_surface
dev.new()
plotRAST(latrange = BB$latrange, longrange = BB$longrange, layer = 'ETOPO1_ice_surface', landOverlay = F) # Start over with the first figure for the same look as below
dev.new()
plotRAST(latrange = BB$latrange, longrange = BB$longrange, layer = 'ETOPO1_bedrock', landOverlay = F)
  
  
# Compare the bathymetry in Southern California with the 3 available resolutions. (Zoom into a smallish part of So. Cal. on the water with or without land.)
BB <- imapToRAST(layer = 'ETOPO1_ice_surface') 
dev.new()
plotRAST(latrange = BB$latrange, longrange = BB$longrange, layer = 'ETOPO1_ice_surface', landOverlay = F) # Start over with the first figure for the same look as below
dev.new()
plotRAST(latrange = BB$latrange, longrange = BB$longrange, layer = 'crm', landOverlay = F)
dev.new()
plotRAST(latrange = BB$latrange, longrange = BB$longrange, landOverlay = F)


## End(Not run)

John-R-Wallace-NOAA/Imap documentation built on April 1, 2024, 8:31 p.m.