Archive for Loch Lomond

from down-under, Lake Menteith upside-down

Posted in Books, R, Statistics with tags , , , , on January 23, 2013 by xi'an

Lake Menteith Landsat image, as printed in Bayesian Core (2007)The dataset used in Bayesian Core for the chapter on image processing is a Landsat picture of Lake of Menteith in Scotland (close to Loch Lomond). (Yes, Lake of Menteith, not Loch Menteith!) Here is the image produced in the book. I just got an email from Matt Moores at QUT that the image is both rotated and flipped:

The image of Lake Mentieth in figure 8.6 of Bayesian Core is upside-down and back-to-front, so to speak. Also, I recently read a paper by Lionel Cucala & J-M Marin that has the same error.

This is due to the difference between matrix indices and image coordinates: matrices in R are indexed by [row,column] but image coordinates are [x,y]. Also, y=1 is the first row of the matrix, but the bottom row of pixels in an image.

Only a one line change to the R code is required to display the image in the correct orientation:

image(1:100,1:100,t(as.matrix(lm3)[100:1,]),col=gray(256:1/256),xlab="",ylab="")

As can be checked on Googlemap, the picture is indeed rotated by a -90⁰ angle and the transpose correction does the job!

Another beautiful if hellish trip

Posted in Mountains, pictures, Travel, University life with tags , , , , , on June 2, 2011 by xi'an

Sounds like my Scottish trips are all doomed the same way: once again, the airline (FlyBe) managed to loose my luggage, even though this time I had it as carry-on luggage! Since the plane was a very small propeler plane, the [small climbing] backpack (containing among other things my hiking clothes!, if not my laptop) was taken by the flight attendant in Paris, but did not show up at the bottom of the stairs in Glasgow. I lost another hour at the Glasgow airport with the (kind) luggage people, all for nothing, and I very much feared the bag would never reappear as it was not a registered item of luggage! It actually showed up at the hotel the day after around midnight, just before my planned hike.

In addition, the flight itself was terrible with a 25 minute stop in Cardiff, Wales, where we had to rush through custom and security. (This is also where someone dropped my backpack!) And a plane full of screaming kids back returning from Disneyland Paris… Maybe should I consider using the train next time! (And then the internet at the hotel was not working at all and it would not have worked anyway as they used an antiquated modem plug rather than wireless or the standard ethernet plug!)

On the bright side, an extra-reward of the trip was indeed that I managed to climb Ben Lomond in the morning before my flight, thanks to Adrian Bowman who kindly took me there despite having to wake up at a particularly ungodly hour! We had great views of Loch Lomond before entering a cloud that would not lift for the rest of the walk, but it did not really rain and the weather was rather mild, except for sudden gusts of wind. The way down via Ptarmingan Ridge was a very nice drop towards Loch Lomond with highly rewarding views once out of the cloud. Given the popularity of Ben Lomond, the trail is also well-maintained, which means we managed to keep dry foots all the way around. It was thus quite nice to spend a few hours (about 3:30 for the round trip) in from of the Arrochar Alps before flying back to Paris, having never been on Ben Lomond before…

Follow

Get every new post delivered to your Inbox.

Join 670 other followers