Usage Arguments Value Author(s) See Also Examples
1 2 3 |
track |
an input track for ukfsst or trackit |
lonlow, lonhigh, latlow, lathigh |
Longitude and latitude limits. Not needed in the ukf versions |
folder |
A place to save your data |
daycomp |
An 8 or 5 day composite. May also be able to use different lengths (i.e. 3 or 10 etc.) |
files for use in ukfsst or trackit estimation
Benjamin Galuardi and Chi Hin Lam
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # setwd("Your working directory or SST data directory")
#====================================================#
# Multiple day example using limits of a track
#====================================================#
fake.track = data.frame(day = c(1,14), month = c(8,8), year = c(2008, 2008), lon = c(-80,-50), lat = c(20,50), sst = c(10,10))
get.blended.ukf(fake.track, folder = getwd(), daycomp = 8, save = T)
sst = make.sstmat('request.nc', 'Blended')
par(mfrow=c(2,1))
image.plot(sst$lon, sst$lat, sst$DATA[,,1])
image.plot(sst$lon, sst$lat, sst$DATA[,,2])
#====================================================#
# Single day example
#====================================================#
sstfile = "http://coastwatch.pfeg.noaa.gov/erddap/griddap/erdBAssta5day.nc?sst[(2011-08-8T12:00:00Z)][(0.0)][(20.0):(50.0)][(260.0):(310.0)]&.draw=surface&.vars=longitude|latitude|sst&.colorBar=Rainbow|C|Linear|0|32|"
fname = "sst.nc"
download.file(sstfile, fname, mode="wb")
sst = make.sstmat(fname, 'Blended')
image.plot(sst$lon, sst$lat, sst$DATA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.