Description Usage Arguments Value Examples

This function subsets an spatial region from spatial data giving a vector with the maximum and minimum of latitudes and longitudes of the selected region.

1 |

`data` |
An array with minimum two dimensions of latitude and longitude. |

`lon` |
Numeric vector of longitude locations of the cell centers of the grid of |

`lat` |
Numeric vector of latitude locations of the cell centers of the grid of |

`region` |
A vector of length four indicating the minimum longitude, the maximum longitude, the minimum latitude and the maximum latitude. |

`londim` |
An integer number indicating the position of the longitude dimension in the |

`latdim` |
An integer number indicating the position of the latitude dimension in the |

`mask` |
A matrix with the same spatial dimensions of |

A list of length 4:

`$data`

An array with the same dimensions as the input`data`

array, but with spatial dimension reduced to the selected`region`

`$lat`

A vector with the new corresponding latitudes for the selected`region`

`$lon`

A vector with the new corresponding longitudes for the selected`region`

`$mask`

If parameter`mask`

is supplied, an array with reduced length of the dimensions to the selected`region`

. Otherwise, a NULL element is returned.

1 2 3 4 5 6 7 8 9 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.