fill.grid: Fill a box with overlapping tiles

View source: R/fill.grid.R

fill.gridR Documentation

Fill a box with overlapping tiles

Description

Tile a box of radius 'rad' within the limits of 'ra' and 'dec', with overlaps of size 'buffer'.

Usage

fill.grid(ra, dec, buffer=0.1, rad=sqrt(3)/2, buffer.edge=TRUE, plot=TRUE, main="Block Coverage Map")

Arguments

ra

numeric vector; The RA limits of the box, in degrees.

dec

numeric vector; The DEC limits of the box, in degrees.

buffer

numeric; The overlap between adjacent tiles, in degrees.

rad

numeric; The radius of each tile, in degrees.

buffer.edge

logical; do we need to buffer the limits of the box as well?

plot

logical; do you want a plot of the box and tiles?

main

string; the title for the plot.

Value

array of dimension 2; the central RA and DEC positions of each tile.

Author(s)

Angus H Wright ICRAR angus.wright@icrar.org

Examples


#Load LAMBDAR
library(LAMBDAR)

ra<-c(120,140)
dec<-c(-3,2)
tile.cen<-fill.grid(ra,dec,plot=TRUE)


AngusWright/LAMBDAR documentation built on Sept. 19, 2024, 10:26 a.m.