Archive for the ‘ushcn’ Category

NCDC DS-9640: CONUS Temperature Anomalies and a couple of ax-grinders

2012 May 12 11 comments

For some reason, two posts at The Blackboard, It’s “Fancy,” Sort of … (Shollenberger) and “To get what he wanted”: Upturned end points. (Lucia), seem to be having difficulty understanding the mechanics of another post at “Open Mind”, In the Classroom (Tamino). But there is nothing unusual or difficult about the methods Tamino used to create the charts which have generated so much smoke and apparent frustration at The Blackboard – resulting in an outbreak of mcintyretude: scorn, derision, insults, and the questioning of motives. Since this is mostly a quick walk through of some code to clear the smoke, I will leave the charts generated to post at the end.

Read more…

Three's Company

2010 October 27 3 comments

Yesterday I posted the simple unsupervised cluster analysis of USHCN station 051294, Canon City, CO. It neatly divided into two classes which seemed to make a good match with the visible appearance of man-made features -v- vegetated landscape with a few bare ground spots thrown in to the man-made side of the classification.

But it doesn’t always work so easily. Before I tried USHCN 051294, I did a test run on station picked at random, USHCN 199316, which is West Medway, Massachusetts.

USHCN 199316

Dividing this station into two classifications, similar to the exercise yesterday, and we see that many areas within the natural vegetation are marked the same as obviously man-made areas. Indeed, this image is divided into almost equally into two classes: 51.37% and 48.63%

USHCN 199316 class 2

So we take the clustering code we looked at yesterday, which divided the image into two classes, and divide it into 3 classes instead.

i.cluster group=51294_18 subgroup=51294_18 classes=3 sigfile=51294_18_sig.txt reportfile=51294_18_rpt.txt
i.maxlik group=51294_18 subgroup=51294_18 sigfile=51294_18_sig.txt class=51294_18c_class reject=51294_18c_reject

USHCN 199316 class 3

Taking a quick look and we see that it looks much more like we expect for a natural -v- man-made division. Most of the man-made stuff is in class 3. But it’s not perfect. The house in the lower left corner is mostly classed “natural” while the surrounding lawn is classed “man-made.” Note: the unsupervised classification is NOT dividing things by any predefined ‘natural’ or ‘man-made’ clusters – its just that the cluster analysis of the location of certain colors tends to lump MOST man-made landscapes into a single class – given the right number of classes.

USHCN 199316 class 3

Running the stats on the 3×3 smoothed version, we get these three classification coverages:
1 32.92%
2 52.70%
3 14.38%

Which seems about right.

USHCN 199316 class mask

A confounding factor in the above is the presence of dark shingles and shaded trees which works against a clean separation of classes.

The GRASS is Greener

2010 October 26 4 comments

GRASS is the common name for Geographic Resources Analysis Support System. It has a huge GIS (Geographic Information Systems) toolkit and is under constant development. I’ve been meaning to take it out on a spin for some cluster analysis and surface classification. Better late than never.

A couple of months ago, I used RGoogleMaps to automate the download of some USHCN sites from Google Maps. We can use GRASS tools to classify the various pixel colors into an arbitrary set of classes using cluster analysis. I’ll use the same image, Canon City CO, that I used in the earlier post.

USHCN Canon City

Read more…

RGoogleMaps: A snapshot

2010 July 28 2 comments


There is a package for R called RGoogleMaps.

Just feed it coordinates and a zoom level and – voilà – you get back a Google Map image. They are not small – about 500K – 1 meg.


Read more…


Get every new post delivered to your Inbox.

Join 27 other followers