This blog is not very active anymore, but follow me on twitter.com/chregu or flickr.com/chregu or Instagram or many other "social" networks. Or on my own "Where was I".

(Almost) automatically geotagging RAW pictures with an eye-fi card

I recently bought an Eye-Fi Pro Card. A nice little gadget for my camera(s). The Pro version has - among other features - RAW support and geotagging pictures, but unfortunately not both together. It does geotag JPEGs via Skyhook's WIFI Positioning, which works reasonably well (in Zurich City at least) and is better than nothing, but certainly no GPS replacement. It also does upload the RAW pictures to my computer (even if it is offline, they get downloaded later from the eye-fi server). But it does not geotag RAW pictures, something I knew Aperture can handle with Nikon's NEF format. I found this this forum entry, but just to find out, that others have the same problem. So I went and did my own solution.

My Nikon D90 can save JPEG and RAW simultaneously and that was the way to go. I set the camera to store JPEGs as Small and Basic Quality, so they only take up approx. 200kB. Then later, when the pictures are on my computer, I wrote a little script, which reads the geoinfo from the JPEG, looks for a similar named NEF file and put the geoinfo in there. For that I used Exiv2, which handles NEF perfectly fine. After geotagging the NEF, I move the JPEG to some other directory for later removal and import it into Aperture. So I only use the JPEG for transporting the geoinfo to my computer and to the NEFs and I don't have to store them "forever".

The script is at Github, it's very basic. My bash foo isn't that good, forks and improvements are very welcome.

BTW, if you're importing JPEG and RAW into Aperture anyway, that's all not needed, Aperture should handle the metadata good enough in that case.

Related Entries:
Get live coordinates from Nikon GP-1 via USB with gpsbabel on OS X
Comments (0)  Permalink

Get live coordinates from Nikon GP-1 via USB with gpsbabel on OS X

Mainly for reference, maybe it's useful for someone else:

* Have a Nikon GP-1 GPS Unit
* Plug a miniUSB-USB cable into the unit and your Mac
* Get gpsbabel
* You don't need any other drivers or programs
* run it on the commandline with

gpsbabel -T -i nmea -f /dev/cu.usbmodem3d11 -F gps.csv

and it prints the coordinates to the output. gpsbabel has many output formats, with eg.

gpsbabel -T -i nmea -f /dev/cu.usbmodem3d11 -o kml,points=0,line_color=640000ff,max_position_points=10 -F gps.kml

you get a KML file, which you can open with Google Earth.

Google Earth is by the way also how I found out the needed parameters, since it "just worked" there. I started Google Earth and its Realtime GPS feature and looked at the process list with "ps aux" and got, what I needed (especially the "/dev/cu.usbmodem3d11" parameter may be different on your Mac)

Related Entries:
(Almost) automatically geotagging RAW pictures with an eye-fi card
Comments (5)  Permalink
1-2/2