makeGridMask | R Documentation |
This function takes supplied longitude, latitude along with the grid spacing, and creates an equally spaced rectangular grid mask.
makeGridMask(
gridLongitudeOriginal,
gridLatitudeOriginal,
gridPtLongitude,
gridPtLatitude,
gridDiffLongitude,
gridDiffLatitude,
useCtd = FALSE,
ctdLongitude = NULL,
ctdLatitude = NULL,
ctd = NULL,
ctdDistance = 30
)
gridLongitudeOriginal |
a numerical vector of the unique grid longitude values |
gridLatitudeOriginal |
a numerical vector of the unique grid latitude values |
gridPtLongitude |
a numerical vector of the grid point longitude values |
gridPtLatitude |
a numerical vector of the grid point latitude values |
gridDiffLongitude |
a numerical value indicating the delta value between |
gridDiffLatitude |
a numerical value indicating the delta value between |
useCtd |
a logical value indicating whether or not to use ctd data when making the mask, default is |
ctdLongitude |
a numerical vector of the ctd longitude, ignored if |
ctdLatitude |
a numerical vector of the ctd latitude, ignored if |
ctd |
a list of ctd objects, default is |
ctdDistance |
a numerical value indicating the minimum distance, in kilometers, that grid points should
be to a ctd profile, default is |
a list containing the gridmask, which is a vector of TRUE/FALSE values,the expanded grid, and the gridLongitude and gridLatitude
Chantelle Layton
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.