R/make360.R

Defines functions make360

Documented in make360

# Convert Longitudes to (0,360)
# 'make360()' is an internal function that converts a vector of longitudes
# from (-180,180) to (0,360)
#
# lon  - A vector of longitudes
# return - A vector of longitudes all mapped to (0,360)
#

make360 <- function(lon) {

    ind <- which(lon < 0)
    lon[ind] <- lon[ind] + 360

  return(lon)
}
rmendels/rerddapXtracto documentation built on July 20, 2024, 4:58 p.m.