targetGrid: Function to calculate a stars grid based on the x,y,z...

View source: R/supportFun.R

targetGridR Documentation

Function to calculate a stars grid based on the x,y,z attributes that represents the coordinates of the map tile

Description

Function to calculate a stars grid based on the x,y,z attributes that represents the coordinates of the map tile

Usage

targetGrid(x, y, z, tileSize = 256L)

Arguments

x

The location of the tile in the x dimension

y

The location of the tile in the y dimension

z

The zoom level

tileSize

The size of the tile generally 256 pixels

Details

This function is mostly useful for testing purpose.

Value

A stars grid with all values being zero with the dimensions matching those required for the tile specified

Examples

targetGrid(4, 2, 4)
targetGrid(4, 2, 4, 128)

starsTileServer documentation built on Aug. 23, 2022, 1:06 a.m.