Tuesday, April 25, 2017

Using What 3 Words to establish locations in the Mycenaean Atlas Project


Earl: ... Then we're off to Haiti!
Carol: Not Haiti, Tahiti!  [1]

We can sympathize with poor Earl's tragic confusion.  Accurate location names and positions are crucial in geography.

In addition to the traditional lat/lon pair as a position indicator for Mycenaean sites, I’ve become interested in other ways of specifying positions.  To that end I have added two new methods in a ‘coords’ table for the Mycenaean Atlas Project.  One method is more traditional, the Universal Transverse Mercator (UTM) system, and one is more cutting edge, the What3Words system.

The What3words website has aroused interest because the designers appear to have pioneered an entirely new method of specifying locations.  Instead of the relatively cumbersome lat/lon pair (or the UTM triplet) it has divided the entire surface of the earth into 3 meter squares.  Each of these squares is uniquely identified with a three word sequence.  For example, the lat/lon pair of 43.553997, -116.276693 maps onto the three-word sequence ‘green.ideas.sleep’ (hello Noam Chomsky!) which is somewhere in Idaho.  What3Words is being adopted by a number of tech firms.  For example, Mapillary has just incorporated it into its system.


To convert a lat/lon pair into the three word designator (triplet) you go to this URL:

You check the box that says ‘I agree to the what3words terms and conditions’ and you then enter your lat/lon pair into the box that says ‘Convert coordinates to 3 word addresses’. 

Entering the pair -17.532988°, -149.561509° (Papeete in Tahiti) returns the triplet: ‘senior.obeyed.gulped’.  This triplet is unique and unchanging.

What 3 Words conversion box.  Here converting a lat/lon pair into an English word triplet.


To convert a What3Words triplet back into a lat/lon pair you go to the same URL 
and enter the three words into the box that is labelled ‘Convert 3 word addresses to coordinates’. 

Entering the triplet of ‘senior.obeyed.gulped’ returns the original lat/lon pair.


What 3 Words conversion box.  Here converting an English word triplet into a lat/lon pair.


The vendor’s web site reasonably says that most places on earth have no addresses and that the three-word system is the answer.  I think that this is partly true but I’ve actually included the What3Words system into the database simply because it’s easier to remember a position this way.

I have added three fields to the ‘coords’ table to support What3Words.  They are

W3W1: varchar(20);

W3W2: varchar(20);

W3W3: varchar(20);

 

A simple query to retrieve (from the MAP database) the three-word key for a particular site would be this:

 


select concat (W3W1,', ', W3W2,', ', W3W3) from coords where pk = 'C1900';


(C1900 is in the Skourta Valley, north of Attica.)

This query returns the triplet: 'swaggers, participating, remark'

The What3Words website also makes an API available so that you can reach their conversion routines from software that you can write.  Here's an example of what this could look like (converting a lat/lon pair into a three-word key) when embedded in your PHP code[2]:


$curl = curl_init();



curl_setopt_array($curl, array(

CURLOPT_URL => "https://api.what3words.com/v2/reverse?coords=$plat%2C$plon&key=YOUR_KEY_HERE&lang=en&format=json&display=full",

CURLOPT_RETURNTRANSFER => true,

CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",));

$response = curl_exec($curl);

$err = curl_error($curl);

curl_close($curl);

if ($err) 
       {echo "cURL Error #:" . $err;}  
else 
{
$response1 = str_replace("\"", "", $response);
$pieces = explode(":", $response1);  
$three_Words = explode(",", $pieces[7]);
$W3W = explode(".",$three_Words[0]);
}

This requires that a curl session be initiated so you'll want the Curl dll's to be available in your language system.  The only code you have to pay attention to here is in red.  That's the the API key which you get from What3Words.  You also make sure that your latitude is in $plat and your longitude is in $plon.  The result is in the value $W3W which is an array of three parts which contains the three words.  If you don't choose to break up the return string then the three-word result is in $response which I've set in purple.


Status of the Mycenaean Atlas Project

I've recently added twenty-four locations in the area of the Skourta plain (Farinetti [2009]), some eighty points in and around central Athens (Mountjoy, [2005]), and about forty points in Cyprus (van Wijngaarden [2002]).

Anyone who would like to have a copy of the MAP database can send an e-mail to bobconsoli 'at' gmail.com or leave a comment on any of my posts.  

A large (about 2400 page) .pdf document which describes the entire database is available for the asking.

To run the MAP database requires a SQL server running on your desktop computer.   MySQL is such a server and it is powerful, industry-standard, and free.  

I can and will make .kml or .kmz files, which can be opened directly in Google Earth, available to those who would like them.  
I can also create .csv files for people who would like to import Mycenaean Atlas Project data into Google Earth but would like it in tabular form.
If you like these posts then please follow me on Twitter (Squinchpix) or on Google+   (Robert Consoli)

Facebook?  Sorry.I.just.can't.

Footnotes
[1] Ruthless People [1986].  It was written by Dale Launer and inspired by O. Henry's 'The Ransom of Red Chief'.
[2] Other languages are supported by this very rich API interface.

Bibliography

Farinetti [2009]: Farinetti, Emeri.  Boeotian landscapes: a GIS-based study for the reconstruction and interpretation of the archaeological datasets of ancient Boeotia. Ph.D. Dissertation.  University of Leiden, Netherlands, 2009.

Mountjoy [2005]: Mountjoy, Pamela.  Mycenaean Athens.  Paul Åströms Förlag, Jonsered, Sweden. 1995

van Wijngaarden [2002]:   van Wijngaarden, G.,  Use and Appreciation of Mycenaean Pottery in the Levant, Cyprus and Italy (ca. 1600 - 1200 BC).  Netherlands Organisation for Scientific Research and Amsterdam University Press. 2002.,

Tuesday, April 11, 2017

I (heart) the French



(While I'm still in vacation mode I thought I'd pass on this entirely true and not at all made-up story of our vacation in France)
I have to give vent to an un-American thought.
I like the French.
There was a time when I didn't but, at that time, I only knew Paris and the people of Paris can be, well, not hostile exactly but standoffish. There was the high prices thing of course but that was my own fault. If you're not morally and psychologically prepared to pay 8 euro for a cup of tea then you don't belong in Paris in the first place. Once I discovered the local McDonald's things became better.
The people of France outside Paris are a completely different kettle of fish, if that's the image I want. 

And I know that I was to blame for that regrettable incident in Carpentras when I was yelled at by a French hooker. I had innocently wandered into the local Hall of Justice carrying a large tourist-type camera under the impression that it was a visitor's information office. There were all these well-dressed young ladies standing around waiting to have their legal affairs tended to and it looked like I was pushing to the head of the line. The confusion was soon straightened out but not before one of them shouted at me, in what I thought was an unfortunately strident manner: 'Hey Pops, this isn't the office of tourist affairs!' (Mon vieux! Ce n'est pas le Bureau des Informations Touristiques!!) . 

Mon vieux, indeed!

Aside from that one incident, though, all the people that we met in France were like people you'd meet anywhere in the Mediterranean. They were understanding, polite, helpful, and very hospitable. We might have been in Spain .. or even Greece.
At first I refused to believe it. I told S. that these nice people weren't French at all. 'They just can't be. It's well-known', I said, 'that the French government imports Romanians during the high season to work with tourists.'
S. said that she hadn't heard that. 'Romanians?'
'Well, maybe not Romanians. It could have been Lithuanians. The point is that these people that we've been encountering are not really French. The government cannot entrust the multi-billion dollar tourist industry to the French people; there would be too many risks.'
'What sorts of risks?' she asked warily.
'Think about it. Everyone knows that the French go on vacation for eight weeks during the summer. What would happen if the hotel you were staying in just suddenly closed so that the proprietor could go running off to St. Tropez with his girlfriend (sa petite amie)?' And they strike (la grève) at the drop of a hat. What if you were stuck on top of the Eiffel tower while the lift operators went on strike? You wouldn't like that, would you?'

'N..no', said S., a trifle uncertainly.
'Well then. And you know how bureaucratic they are. Would you want to have to buy a safe-swimming certification and license (and with a three-day wait) every time you wanted to use the hotel pool?  No!  That's why the government treats the tourist industry like the agriculture industry. They bring in foreign workers.'
'I think you're crazy', said S., 'these people are as French as Brie and Champagne (Appellation d'origine contrôlée)!'

I shook my head sadly at her naiveté and our conversation passed on to other topics.
Later, though, I found out the shocking truth.
We were in Vaison-la-Romaine where we had reservations for three nights. 'I'll show you that I'm right', I said to S. I had purchased a Romanian phrase-book in Arles just the day before.
When our hotel door was opened by the Landlady I said in my most polite Romanian, 'Salut! (Hello.)'

'Bonjour', she replied slowly with a puzzled air.

'They have to stay in character', I whispered to S. 'They're sort of like historical re-enactors.'
'I will get my husband (J'appellerai mon mari.)', she said in excellent re-enactor French.

Soon our host appeared drying his hands on a dish towel and welcoming us to Vaison-la-Romaine. But it soon appeared that there had been a mix-up. They were expecting us the following week. A check of e-mails followed and he said to his wife 'They're right (Ils ont raison)'. A flurry of apologies followed. We were assured that we would have the accommodations that we wished but they would be in different rooms from those we had reserved.

'You have been inconvenienced', said our host, '.. and the reputation of our hotel is paramount; your stay will be free!'
Free? This was a saving of more than 300 euro. I was triumphant. It was a perfect example of the Romanian hospitality that I'd been talking about. I couldn't resist the opportunity to reach out to this foreign gentleman and let him know how much I appreciated his kindness and generosity.
'Multumesc! (Thank-you)', I said, with a broad wink to let him know that I was in on the deception.

'What?' said our host.
'Multumesc,' which I followed up with 'Cum va numiti? (What is your name?)'.

'I'm sorry, I don't understand what you're saying; are you perhaps from .. Romania?', said the host.
'No', said the ever-helpful S., 'He thinks you're all Romanians.'
'Romanians!? Us!?' shouted our host. He and his wife laughed for five minutes. Wiping the tears from their eyes they confessed the truth.
'Every year we have to go to the immense trouble of spreading the rumor that all the workers in the French tourist industry are Romanians - '
'Lithuanians', corrected his wife.
'Lithuanians, Romanians, Pomeranians! It doesn't matter. We even have to take out 'help-wanted' ads in Romanian in the tourist-trade magazines; all phony of course.'
I was staggered. 'But..but, why?' I managed to say.
'We just can't let it get out that the French tourist industry is actually run by the French. If we did that no Americans would ever come to France.'
'Really', said his wife, 'Americans have the most terrible ideas about us. They think that we're always on strike...'
'...that we're too bureaucratic...', said her husband.
'...and that we're unfriendly, lazy and always on vacation!', continued the wife.
'That's a scandal', said S. 'who would think such a thing?'
'Who indeed?', I asked innocently.
The host was still chuckling. He said to us, 'Our new American friends; welcome to our hotel. Can I offer you some champagne and brie (Appellation d'origine contrôlée)?'

Postscript to The Honorable Emmanuel Macron, President of the Republic of France:

Just kidding, mon vieux.


Friday, April 7, 2017

Ego in Arcadia





‘I forgot my mantra!’ [1]

'Versailles had been horrible.  They were all blind there.’ [2]




Readers of this blog know that I usually write about the Bronze Age. But I recently returned from a trip to Maui in the Hawaiian Islands, a home-coming of sorts, and I wrote the following post:

Nail salons, dive shops, curio emporia (including a dozen different places that sell sea shells), chiropractic clinics, over-priced art galleries and jewelry stores, surfboard rentals, tattoo shops, bakeries, and fly-by-night snackeries operating out of the backs of trucks.  This is the essence of the modern Hawaiian economy; tourist-based, service-oriented, and as sturdy as a meringue.

Lahaina is the worst town on Maui.  It’s chock-a-block with tourist traps.  Hordes of tourists wander aimlessly around the hot streets trying to find something to do.  But there is nothing to do beyond shopping; none of it having anything to do with Hawaii.  Marx has never been more obviously correct when he speaks of capitalist commodification.  Every tchotchke that could possibly tempt a hot and bored tourist has been commodified, manufactured in China and sent to some tumbledown building in Lahaina or Pa’ia.   

The unfortunate aspect of all this is that there is something uniquely Hawaiian in Lahaina.  There is, right on the edge of the tourist district, the royal compound of the Hawaiian kings who, for a time, ruled Maui and then all the Hawaiian islands, from it.  Today it’s a large empty space, airless and hot, with occasional breezes that stir the red dust.[3]  You can see it here on Google Earth.


Royal Compound located just on the south edge of Lahaina on Maui.



  Not one tourist in a thousand even knows about it and no one bothers to visit it.  I’ve explored this space twice and both times I’ve had it to myself.  Its importance cannot be overstated; it is strongly reminiscent of similar royal compounds in Tonga.[4] But these days it is bare and denuded; the unwashed tourist horde trudges on, uncaring, oblivious.

Just up the hill from Lahaina town is Lahainaluna School which was founded in 1831.[5]  It was here, early in the nineteenth century that the chroniclers of Hawaiian customs and history began that great work of oral collection that saved much of Hawaiian history and tradition for posterity.  At that time Hawaii had the highest literacy rate in the world.  Today the pathetic remnants of a once great people cling to the shreds of what they erroneously suppose is their culture.  They are led by opportunists, charlatans, and crooks and they have no higher purpose than to make nuisances of themselves at public hearings.[6]

The first time the North Koreans launch a missile that comes anywhere near Hawaii – mark my words - the entire tourist economy of Hawaii will collapse.  No one would willingly fly into a nuclear missile target zone.  Absurdly expensive shell necklaces can be purchased just as easily in the Caribbean and since the tourist industry carefully strips away any specifically Hawaiian content from its bubble there is no other reason for the average tourist to visit the islands.  Selfies can be taken anywhere.

Sometimes being on Maui makes you feel like a spy on the 1%.  I wanted to go on a true sailing ship while we were here.  S. arranged this and so, one late afternoon, we boarded the Scotch Mist II out of Lahaina harbor.[7]   Most of the other passengers looked as though they’d stepped out of a Lexus commercial and my immediate seat mate was the retired owner of an insurance business.  My 99% confreres will be happy to know that during the entire two-hour cruise the other passengers discussed the finer points of golf courses on Maui.   This while the opioid plague devastates Middle America and the House Intelligence Committee is busy drowning itself in a morass of offensive and imbecilic lies.  But, no harm, no foul, I guess.

One important thing that I’ve noticed in Hawaii is the virtual absence of local people from the shops.  Shop after shop, no matter where you go, is staffed by Caucasians.  This is disturbing;  I was raised in the islands and I can assure you that this does not reflect the Hawaiian reality.  I first noticed this on Kauai, a couple of years ago.  Even on the North shore of that island, deep in the country and far from the crowds of Lihue, every shop was staffed by caucasians, oftener than not women.  Where are the local people?  They’ve gone to Las Vegas, Reno, or Sparks in Nevada.  They’ve gone to Los Angeles, the Central Valley, or the Bay Area in California.  They’ve left Hawaii for what they hope are better jobs on the Mainland, abandoning the islands to the Uberati, those denizens of the gig-economy who spend part of the year wandering and surfing and the other part in gigs at the store-front businesses I mentioned at the beginning.  Crap economy, crap life-plans.

I met such a young man yesterday in a coffee shop in Makawao.  He was from Taiwan, he said, and was taking the day off from his employment as a massage therapist.  He talked to me about his extensive travels in south-east Asia and on the US mainland.  He uses massage to earn money when he needs to.  He was a good example of the kind of floating new age spirituality that's so common now.  He ranked the several Hawaiian Islands in terms of their spiritual power, spoke of the healing powers of Atha yoga, and minutely described his chakras.  He was quite serious about all this.  I don’t doubt that, had the opportunity presented itself, he would have prestidigitated a Tarot deck and told my fortune.  He was an energetic and amusing talker; at one point he demonstrated his massage technique on my left hand and, although it felt great, it was all I could do to repossess my own hand.  (His fingers were like steel rods.)  But, all the while, I was thinking to myself, ‘there go thousands’.

Is there anything else worth-while on Maui?   Sure.  I recommend the drive to the south coast of Maui.  The south coast is not seen by many tourists as it has the undeserved reputation of being hard to access.  The maps which the rental car companies distribute all say that driving on the south coast of Maui may void your warranty.  This isn’t true but the warning is effective nonetheless and the average visitor has the whole south of Maui pretty much to himself.   The gateway to the south coast is not through Hana but through Ulupalakua.  

The road from Ulupalakua (L) towards Kau'po (R) on South Maui.
Click to enlarge.


To reach it you take the road to Haleakala and go south from Kula.  From there you proceed through Ulupalakua, which is little more than a wide spot in the road, and continue south.  You’ll find yourself on a newly-paved two lane country road driving towards the coast and down from the slopes of Haleakala.  You are now on the great south shield of the volcano with a glorious view to the east of miles of grassy and empty country.


South slopes of Haleakala Crater, Maui.


   On the south the whitecaps of the central Pacific stretch away to the horizon.  The wind here can be fierce since weather coming from the south is compressed between Haleakala and the uplands of west Maui.  This restricts the passage of air masses with a resulting increase in their speed of movement.  The winds of south Maui can more than match the Mistral which the Provençals say can blow the ears off a donkey.  

The view of this upland is unforgettable.  You can go all the way to Hana on this road but I don’t recommend it.  You can turn around after a few miles; perhaps you might like to go as far as Kau’po.  The old store in Kau’po is closed (condemned, actually), no matter what the guide books say and, a few miles before it, the road stops being nicely paved and becomes a broken asphalt track.  That's a good place to turn around for the return to Ulupalakua.

In ancient times this area of Maui was the scene of a great agricultural experiment in dry-land cultivation.  Thousands of Hawaiian people terraced and cultivated these vast leeward slopes into gardens for sweet potatoes, sugar cane, and yams.[8]  This is the dry side, the leeward side, of Maui and this type of rain-dependent dry-land agriculture was only pioneered late in the sequence of Hawaiian colonization.  All the well-watered lands of the windward sides of all the islands had to be filled up to the point where additional cultivation was impossible before the dry lands on the south side of Haleakala (as well as on the Kohala slopes of Hawaii island) were attempted.  As I said this area was the scene of a vast and successful agricultural enterprise and on these slopes you may still see the resulting field and plot walls.  In places they were quite dense as the Google Earth image, will show.[9] 


Linear features mark the remnants of field walls from the eighteenth century.
This is from Maui, near the town of Kau'po.  Cp. to Kirch, [2009], p. 272, fig. 4.

Coordinates are for the center of the picture.


Kirch estimates that these areas were not attempted at all until some time in the fourteenth century.

After 1778, with the coming of the outside world to Hawaii, the native population was severely decreased.  Nine out of ten Hawaiians died. The yam-bearing slopes were abandoned and turned over to cattle.  Today the fields and the people are gone.  The terraces and walls have nearly vanished through two centuries of neglect.  The immense, nearly forgotten, heiaus (temples) which the kings of Maui once built here are now covered by the invasive guava, kukuihaole koa, hala, mango, and jacaranda.  You, brief visitor, are in fleeting possession of what was once the bread basket of Maui.

As I stood there, gazing upwards to the Kau’po gap, I noticed that from the wind-whipped pili grass, which the ancient Hawaiians used for their huts and baskets, there arises the warm aroma of coriander.


Notes

[1] Allen [1977].

[2] Allen [1933] 527.

[3] Here: 20.869491° N, -156.674642° W

[4] Tongatapu described in Flannery and Marcus [2012], pp. 316-328,

[5] See this.  Lahainaluna School is here: 20.887623° N, -156.662754° W.

[6] Generally a lot of deluded, self-appointed, and self-important historical re-enactors who have no other motivation than money, free land, and notoriety.  The more deluded think that they will become 'kings' and 'queens'.  See this and this.  The Hawaiian Sovereignty movement would like to bring back the Hawaiian monarchy, traditions, and customs and they're willing to do it with Putin's help.  But here's my question.  When the first worker has his throat slit on the altar of the first reconstructed luakini (human sacrifice) heiau will his family be able to sue the new Hawaiian government for wrongful death?  A Hawaiian sovereignist may reply that human sacrifice is an outmoded and barbaric practice that would never be allowed in a 'new' and independent Hawaiian monarchy - thus exposing the sham nature of the entire enterprise.

[7] Here.

[8] See Kirch, et al.[2009]. Kirch [2010], especially 145-154.

[9] Kirch, et al. [2009], fig. 4, p. 272.


Bibliography

Allen [1933]: Allen, Hervey.  Anthony Adverse.  Holt, Rinehart and Winston. 1933.  SBN 03-028400-7.

Allen [1977]: Allen, Woodie and Marshall Brickman.  Annie Hall.  1977.

Flannery and Marcus [2012]: Flannery, Kent and Joyce Marcus.  The Creation of Inequality; How our Prehistoric Ancestors Set the Stage for Monarchy, Slavery, and Empire.  Harvard University Press.  Cambridge, Massachusetts.  2012.


Kirch [2010]: Kirch, Patrick V., How Chiefs Became Kings; Divine Kingship and the Rise of Archaic States in Ancient Hawai’i. University of California Press.  Berkeley, CA.  2010.

Kirch et al. [2009]: Kirch, Patrick V., John Holson, Alexander Baer. "Intensive Dryland Agriculture in Kaupo, Maui, Hawaiian Islands", Asian Perspectives, vol. 48, no. 2, pp. 265-290. 2009.  Online here.


Segment Ro of the Cyclopean Wall is located again

    The segment of the Cyclopean wall which was named 'Ro' by Broneer (Mycenaean Atlas Project: C7760) has been relocated by my coll...