create_grid: Creates a continious grid

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/create_grid.R

Description

Create a continious (regular) geospatial grid

Usage

1
create_grid(latmin,latmax,lonmin,lonmax,resolution,crs,centred)

Arguments

latmin

real smallest latitude for the spatial grid in degree (range: -90 to 90)

latmax

real biggest latitude wanted for the spatial grid in degree (range: -90 to 90)

lonmin

real smallest longitude for the spatial grid in degree (range: -180 to 180)

lonmax

real biggest longitude wanted for the spatial grid in degree (range: -180 to 180)

resolution

real spatial resolution of the grid in degree

crs

character string a character string of projection arguments; the arguments must be entered exactly as in the PROJ.4 documentation.

centred

boolean TRUE for a grid centred on zero. default is TRUE

Details

The default CRS is EPSG 4326: "+init=epsg:4326 +proj=longlat +datum=WGS84"

Value

A sf object (package : sf) based on input parameters and composed by square polygons.

Author(s)

ChloƩ Dalleau, dalleau.chloe@hotmail.fr; modified by Paul Taconet, paul.taconet@ird.fr

See Also

Other process data: convert_units, create_calendar, get_rfmos_datasets_level0, map_codelist, raise_datasets_by_dimension, raise_get_rf, raise_incomplete_dataset_to_total_dataset, rasterize_geo_timeseries, spatial_curation_downgrade_resolution, spatial_curation_intersect_areas, spatial_curation_reallocate_data, spatial_curation_upgrade_resolution

Examples

1
grid <- create_grid(latmin=-90,latmax=90,lonmin=-180,lonmax=80,resolution=1,centred=T)

ptaconet/rtunaatlas documentation built on Sept. 21, 2021, 10:43 p.m.