Get the name of a future climate layer(s) based on the current climate layer(s)

Description

get_future_layers returns information on the future climate layers for the matching current climate layers.

Usage

1
get_future_layers(current_layer_codes, scenario, year)

Arguments

current_layer_codes

character vector. Code(s) of the current climate layers either as a character vector or as the dataframe provided by list_layers.

scenario

character vector. Climate change scenario, e.g. "B1", "A1B", "A2".

year

integer. Year for which you want the climate change prediction, e.g. 2100, 2200.

Details

Stops with an exception if no matching future climate layer was found for one or more of the provided current climate layer codes.

Value

A dataframe with information on the future layer(s) matching the provided current layer(s).

See Also

list_layers_future, list_layers, load_layers

Examples

1
2
3
future_layers <- get_future_layers(c("BO_salinity", "BO_sstmean"), 
                                   scenario = "B1", year = 2100)
future_layers$layer_code