Skip to content
Prev 12543 / 29559 Next

Time vs. Longitude (Hovmueller Diagram)

Here's an update using the two files you need at a minimum:


## read the entire matrix file
x <- as.matrix(read.table("SST011970_032003.dat"))

## read the coordinates

lonlat <- read.table("SSTlonlat.dat")
names(lonlat) <- c("Longitude", "Latitude")

## choose just one lat
x1 <- x[lonlat$Latitude == -29, ]

ll <- lonlat[lonlat$Latitude == -29, ]

lon <- sort(ll$Longitude)
x2 <- x1[order(ll$Longitude), ]

tm <- 1:ncol(x1)

image(lon, tm, x2, main = "Latitude -29", xlab = "Longitude", ylab =
"Time", useRaster = TRUE, col = rainbow(28))

I will try to have a closer look later to get all the information
available. Please treat this with a grain of salt for now, and ignore
my previous guesses.

Cheers, Mike.
On Wed, Aug 17, 2011 at 4:53 PM, Jianyun Wu <jianyun.fred.wu at gmail.com> wrote: