rnoaa (version 0.9.5)

sea_ice: Get sea ice data.

Description

Get sea ice data.

Usage

sea_ice(year = NULL, month = NULL, pole = NULL, format = "shp",
  ...)

Arguments

year

(numeric) a year

month

(character) a month, as character abbrevation of a month

pole

(character) one of S (south) or N (north)

format

(character) one of shp (default), geotiff-extent (for geotiff extent data), or geotiff-conc (for geotiff concentration data)

...

Further arguments passed on to rgdal::readshpfile() if format="shp" or raster::raster() if not

Value

data.frame if format="shp" (a fortified sp object); raster::raster() if not

References

See the "User Guide" pdf at https://nsidc.org/data/g02135

See Also

sea_ice_tabular()

Examples

Run this code
# NOT RUN {
if (requireNamespace("raster")) {

## one year, one moth, one pole
sea_ice(year = 1990, month = "Apr", pole = "N")
sea_ice(year = 1990, month = "Apr", pole = "N", format = "geotiff-extent")
sea_ice(year = 1990, month = "Apr", pole = "N", format = "geotiff-conc")

## one year, one month, many poles
sea_ice(year = 1990, month = "Apr")

## one year, many months, many poles
sea_ice(year = 1990, month = c("Apr", "Jun", "Oct"))

## many years, one month, one pole
sea_ice(year = 1990:1992, month = "Sep", pole = "N")

# Map a single year/month/pole combo
out <- sea_ice(year = 1990, month = 'Apr', pole = 'N')
library('sf')
plot(out[[1]])

# get geotiff instead of shp data. 
x <- sea_ice(year = 1990, month = "Apr", format = "geotiff-extent")
y <- sea_ice(year = 1990, month = "Apr", format = "geotiff-conc")
}

# }

Run the code above in your browser using DataCamp Workspace