lattice.retrieve {ssBase}R Documentation

Determine Lattice Indices for Given Circle

Description

This is a complementary function to the function lattice. The function lattice calculates longitude-latitude centres for a (2*J+1) by (2*K+1) grid. It produces a vector of (2*J+1)*(2*K+1) centres. Given the ith centre, lattice.retrieve calculates the corresponding values of j and k. Alternatively, given j and k, the function returns the corresponding index i.

Usage

lattice.retrieve(i, K, J)
lattice.retrieve(j, k, K, J)

Arguments

i the index number of the centre of interest.
j scalar where -J <= j <= J, and J is defined in the documentation for the function lattice.
k scalar where -K <= k <= K, and J is defined in the documentation for the function lattice.
K see documentation for the function lattice.
J see documentation for the function lattice.

Value

Returns a list object with the values of i, j, k, J, and K.

See Also

lattice


[Package ssBase version 2.2-1 Index]