R/collate.bathy.R

Defines functions collate.bathy

Documented in collate.bathy

collate.bathy <- function(east,west){
	as.numeric(rownames(west))+360 -> rownames(west)  # new coordinate system
	rbind(east, west) -> collated                     # collate the two matrices into one
	collated[unique(rownames(collated)), ]-> collated # remove the extra antimeridian line
	class(collated)<-"bathy"                          # assign the class bathy to new matrix c
	return(collated)
}

Try the marmap package in your browser

Any scripts or data that you put into this service are public.

marmap documentation built on March 31, 2023, 6:59 p.m.