if (FALSE) {
## Load the gull dataset ##
data(gull)
## Create a subset of the full dataset ##
g <- gull[1:100,]
## Create a .kml file from a portion of the GPS track ##
NCEP.track2kml(latitude=g$latitude, longitude=g$longitude,
datetime=as.character(g$datetime), altitude=g$altitude,
col.variable=g$altitude, col.scheme='heat.colors',
point.alpha=255, line.color='goldenrod', line.alpha=255,
size.variable=NULL, point.names=NULL,
data.variables=data.frame(g$altitude),
output.filename='track', descriptive.filename=NULL)
}
Run the code above in your browser using DataLab