<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:admin="http://webns.net/mvcb/"
>
<channel>
<title>Kurt's Weblog</title>
<link>http://schwehr.org/blog/rss.xml</link>
<description>electronic work log</description>
<dc:language>en-us</dc:language>
<dc:creator>Kurt</dc:creator>
<dc:date>2010-02-08T08:49:13-05:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<item>
<link>http://schwehr.org/blog/archives/2010-02.html#e2010-02-08T06_47_02.txt</link>
<title>A simple Django command line program (django &quot;admin&quot; command)</title>
<dc:date>2010-02-08T06:47:02-05:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[I want to be able to run some Django code from a cron job to update a
database.  I looked at <a
href="http://code.google.com/p/django-cron/">Django Cron</a>, but then
thought about the admin commands and realized that was a better route
to my goal.  Here is the basic route that I tool:
<pre>django-admin.py startproject projname
cd projname
python manage.py startapp myapp
# Edit settings.py to add myapp to the INSTALLED_APPS
cd myapp
mkdir -p management/commands
touch management/__init__.py
touch management/commands/__init__.py
cd management/commands/
</pre>
Now create your command:
<pre><tt><b><font color="#000080">import</font></b> django<font color="#990000">.</font>core<font color="#990000">.</font>management<font color="#990000">.</font>base as base
<!-- -->
<b><font color="#0000FF">class</font></b> <b><font color="#000000">Command</font></b><font color="#990000">(</font>base<font color="#990000">.</font>NoArgsCommand<font color="#990000">):</font>
  help <font color="#990000">=</font> <font color="#FF0000">'Describe the Command Here'</font>
  <b><font color="#0000FF">def</font></b> <b><font color="#000000">handle_noargs</font></b><font color="#990000">(</font>self<font color="#990000">,</font> <font color="#990000">**</font>options<font color="#990000">):</font>
      <b><font color="#0000FF">print</font></b> <font color="#FF0000">'hello world'</font>
      <b><font color="#0000FF">print</font></b> options</tt></pre>
Now give it a try:
<pre>cd ../../.. # back to the project directory
python manage.py help
<br /><br />
Type 'manage.py help <subcommand>' for help on a specific subcommand.
<br /><br />
Available subcommands:
  cleanup
  compilemessages
  ...
  flush
  <i>hello_world</i>
  inspectdb
  loaddata
  ...
python manage.py hello_world
  hello world
  {'pythonpath': None, 'verbosity': '1', 'traceback': None, 'settings': None}</pre>
That's it.  Now I have a command (that doesn't really do anything yet)
that I can put in my crontab.
<br /><br />
Now if I can just figure out why deserialization goes into infinite recursion on me.]]></description>
</item>
<item>
<link>http://schwehr.org/blog/archives/2010-02.html#e2010-02-05T16_36_44.txt</link>
<title>Deep ROV and AUV vehicles</title>
<dc:date>2010-02-05T16:36:44-05:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[We just had <a href="http://www.divediscover.whoi.edu/expedition2/interviews/dana.html">Dana Yoerger</a> from WHOI give seminar about ABE, SENTRY, and NEREUS exploring the deep.  He mentioned a video of deep underwater volconism that sounded pretty exciting, so I went hunting and found this: an eruption at 4000 feet (1200 m).
<br /><br />
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/x5j4nAVZAJw&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/x5j4nAVZAJw&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>]]></description>
</item>
<item>
<link>http://schwehr.org/blog/archives/2010-02.html#e2010-02-03T21_51_14.txt</link>
<title>UNH Stategic Plan</title>
<dc:date>2010-02-03T21:51:14-05:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[CCOM has several images that were used in the strategic plan
presentation this week by the President of UNH.  
<br /><br />
In this first image, the student is pointing at GeoZui4D image of EK60
and DeltaT sonars with whales visible in the mid-water multibeam data
created by Roland.  On the left is an image also from GeoZui, but it
is hard to make out.
<br /><br />
<img title="CCOM in the UNH Strategic Plan" withgrayborder="True" src="http://schwehr.org/blog/attachments/2010-02/unh-strategicplan-2020-1.png"/>
<br /><br />
In this next image, the student is touching with his left hand (on our
right) a risk analysis of grounding for a ship entering the
Portsmouth, NH harbor done by Brian Calder.
<br /><br />
<img title="CCOM in the UNH Strategic Plan" withgrayborder="True" src="http://schwehr.org/blog/attachments/2010-02/unh-strategicplan-2020-2.png"/>
<br /><br />
The above images are 14 minutes into the video:
<br /><br />
<object width="400" height="210"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9172399&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9172399&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="210"></embed></object><p><a href="http://vimeo.com/9172399">UNH in 2020</a> from <a href="http://vimeo.com/unhvideo">UNH Video</a> on <a href="http://vimeo.com">Vimeo</a>.</p>]]></description>
</item>
<item>
<link>http://schwehr.org/blog/archives/2010-02.html#e2010-02-03T12_38_04.txt</link>
<title>CCOM on the Google Lat Lon blog</title>
<dc:date>2010-02-03T12:38:04-05:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[We've been working with Jamie at Google to get the data into Google
Earth.  Jamie discovered several bugs in tools that we were using to
get the data out.  Note that a lot of other CCOM data is already 
in Google Earth, but comes up as "NOAA".
<br /><br />
<a href="http://google-latlong.blogspot.com/2010/02/wander-seafloor-like-never-before.html">Wander the seafloor like never before</a> [Google Lat Long blog]
<pre>...
Several organizations have provided their ship-collected data for
publication in Google Earth to improve our undersea maps. The Center
for Coastal and Ocean Mapping - Joint Hydrographic Center, has shared
large swaths of underwater depth data collected from their expeditions
north of Pt. Barrow, Alaska into the Arctic. The Living Oceans Society
has shared their surveys off of the west coast of British Columbia,
Canada, so you can now zoom around the Oglala seamount
...</pre>]]></description>
</item>
<item>
<link>http://schwehr.org/blog/archives/2010-02.html#e2010-02-01T11_26_09.txt</link>
<title>gdal 1.7.0 with new drivers</title>
<dc:date>2010-02-01T11:26:09-05:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[The announcement: <a href="http://www.osgeo.org/node/1000">GDAL/OGR 1.7.0 Released</a>.  All the details turns out to be a very long list: <a href="http://trac.osgeo.org/gdal/wiki/Release/1.7.0-News">1.7.0-News</a>
<br /><br />
The summary of changes:
<ul>
<li> New Raster Drivers: BAG, EPSILON, Northwood/VerticalMapper, R, Rasterlite, SAGA GIS Binary, SRP (USRP/ASRP), EarthWatch .TIL, WKT Raster</li>
<li>GDAL PCIDSK driver using the new PCIDSK SDK by default</li>
<li>New Vector drivers : DXF, GeoRSS, GTM, PCIDSK and VFK</li>
<li>New utilities: gdaldem, gdalbuildvrt now compiled by default</li>
<li>Add support for Python 3.X. Compatibility with Python 2.X preserved</li>
<li>Remove old-generation Python bindings.</li>
<li>Significantly improved raster drivers: GeoRaster, GeoTIFF, HFA, JPEG2000 JasPer, JPEG2000 Kakadu, NITF</li>
<li>Significantly improved vector drivers: CSV, KML, SQLite/SpataiLite, VRT</li>
</ul>
The most interesting to me are the new BAG and GeoRSS drivers along
with the gdaldem command line program for hillshading and coloring.
It will be interesting to see how the GeoRSS works and which of many
flavors of GeoRSS that it outputs.  SpatiaLite is still on the todo
queue, but does not have a very high priority.
<br /><br />
Fink has not been updated to this version.  Make sure that you are up
to date on libgeos3 (current is 3.2.0).]]></description>
</item>
<item>
<link>http://schwehr.org/blog/archives/2010-01.html#e2010-01-28T06_36_46.txt</link>
<title>NOAA buys 7 more RESON multibeam sonars</title>
<dc:date>2010-01-28T06:36:46-05:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[<a href="http://www.hydro-international.com/news/id3653-NOAA_Signs_Contract_for_Seven_Seabat.html">NOAA Signs Contract for Seven Seabat 7125-SV</a> [Hydro International]
<pre>...
A real-time uncertainty output from the SeaBat 7125 may be used in
PDS2000, along with information from other sensors to calculate a TPE
(Total Propagated Error). Soundings may be filtered by setting either
the relevant IHO order or by defining a custom vertical error
limit. Other new features in SeaBat 7125-SV include roll
stabilization, XYZ offsets for flexible transducer installations,
Quality filter and advanced diagnostic which increase survey
efficiency. Further, AutoPilot uses sonar tuning values from a default
or user generated look-up table for hands free sonar operation.
...
Six of the SeaBat sonar systems are to be mounted on Hydrographic
Survey Launches of the SV Rainier, SV Fairweather, SV Thomas Jefferson
and SV Ferdinand R. Hassler while the seventh system will be mounted
on the SV Nancy Foster.
...</pre>]]></description>
</item>
<item>
<link>http://schwehr.org/blog/archives/2010-01.html#e2010-01-27T08_50_00.txt</link>
<title>Field images, Desk Crops, and UDel's New Zealand field blog</title>
<dc:date>2010-01-27T08:50:00-05:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[<a href="http://ron.outcrop.org/">Ron Schott</a> has been running a
fantastic Outcrop/Deskcrop series on his blog where he shows off
Gigapan's from the field and hand samples back in his office.  Well worth following if you enjoy geology.
<br /><br />
<embed type="application/x-shockwave-flash" src="http://gigapan.org/viewer/PanoramaViewer.swf?url=http://share.gigapan.org/gigapans0/30955/tiles/&#038;suffix=.jpg&#038;startHideControls=0&#038;width=43899&#038;height=8365&#038;nlevels=9&#038;cleft=0&#038;ctop=0&#038;cright=43899.0&#038;cbottom=8365.0" height="220" width="600"></embed><br />
<br /><br />
On the same note, Art Trembanis just sent me a link to his students'
blogging of their trip to New Zealand.  I've been following some of it
on facebook and it looks like they have had an amazing field
experience this year:
<br /><br />
<a href="http://nzgeolmast10.blogspot.com/">NZ GeolMast Winter 2010</a>
<br /><br />
<img title="The field party all wearing respirators" withgrayborder="True" src="http://schwehr.org/blog/attachments/2010-01/new-zealand-udel-field-blog.jpg"/>]]></description>
</item>
<item>
<link>http://schwehr.org/blog/archives/2010-01.html#e2010-01-27T06_17_57.txt</link>
<title>Lloyd's AIS based global ship traffic</title>
<dc:date>2010-01-27T06:17:57-05:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[From the <a href="http://udcshel.blogspot.com/2010/01/year-of-global-shipping-routes-mapped.html">Art Trambanis/CSHEL</a> news channel:
<br /><br />
<a href="http://www.wired.com/wiredscience/2010/01/global-shipping-map/comment-page-1/">A Year of Global Shipping Routes Mapped by GPS</a> [Wired Science]
<br /><br />
I would have guessed that they used S-AIS (satellite) messages picked
up by SpaceQuest, ComDev, or OrbCom. But it turns out that they just
used great circle routes from itineraries.
<br /><br />
Credit to Dale Chayes for the details of the paper: <a
href="http://www.icbm.de/~blasius/papers/JRSI_2010_submitted.pdf">The
complex network of global cargo ship movements</a> by Kaluza, Kolzsch,
Gastner, Blasius.  The Abstract:
<pre>
Transportation networks play a crucial role in human mobility, the
exchange of goods, and the spread of invasive species. With 90% of
world trade carried by sea, the global network of merchant ships
provides one of the most important modes of transportation. Here we
use information about the itineraries of 16,363 cargo ships during the
year 2007 to construct a network of links between ports. We show that
the network has several features which set it apart from other
transportation networks. In particular, most ships can be classified
in three categories: bulk dry carriers, container ships and oil
tankers. These three categories do not only differ in the ships’
physical characteristics, but also in their mobility patterns and
networks. Container ships follow regularly repeating paths whereas
bulk dry carriers and oil tankers move less predictably between
ports. The network of all ship movements possesses a heavy-tailed
distribution for the connectivity of ports and for the loads
transported on the links with systematic differences between ship
types. The data analyzed in this paper improve current assumptions
based on gravity models of ship movements, an important step towards
understanding patterns of global trade and bioinvasion.</pre>
<br /><br />
To give you a feel what an actual global data set feels like, 
you can interact with the global Vessel Observation System (VOS) data
in Google Earth yourself by going here:
<br /><br />
<a href="http://vislab-ccom.unh.edu/vos/">http://vislab-ccom.unh.edu/vos/</a> (By Ben Smith)
<br /><br />
Or you can take a look at 2 minutes of S-AIS data from SpaceQuest over
South Africa:
<br /><br />
<a href="http://schwehr.org/blog/attachments/2009-08/S-AIS-AprizeSat-20090729.kmz">S-AIS-AprizeSat-20090729.kmz</a>
<br /><br />
<img title="Lloyd's Global Vessel routes" withgrayborder="True" src="http://schwehr.org/blog/attachments/2010-01/lloyds-shipping-routes.gif"/>]]></description>
</item>
<item>
<link>http://schwehr.org/blog/archives/2010-01.html#e2010-01-26T10_20_37.txt</link>
<title>The return of panospheric imaging (but at a smaller scale)</title>
<dc:date>2010-01-26T10:20:37-05:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[When I saw this video, I had flashbacks to working with <a
href="http://groklab.org/">Geb Thomas</a> and the CMU <a
href="http://www.frc.ri.cmu.edu/">Field Robotics Center</a> on a
panospheric camera for the Nomad rover in the Atacama desert.
<br /><br />
Our paper on the topic came out back in 1997: <a href="http://vislab-ccom.unh.edu/~schwehr/papers/nomad-fsr97.pdf">Operating Nomad during the Atacama Desert Trek</a> [PDF]
<br /><br />
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/6k6IK4nI7RM&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/6k6IK4nI7RM&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>
<br /><br />
Found via <a href="http://www.gearthblog.com/blog/archives/2010/01/news_google_earth_classroom_3d_australia_diy_streetview.html">News: Google Earth in the Classroom, More 3D in Australia, DIY StreetView</a> [Google Earth Blog]]]></description>
</item>
<item>
<link>http://schwehr.org/blog/archives/2010-01.html#e2010-01-26T06_12_51.txt</link>
<title>IODP Cruise to Antarctica - Week Report 2</title>
<dc:date>2010-01-26T06:12:51-05:00</dc:date>
<dc:creator>Kurt</dc:creator>

<description><![CDATA[Aliens are assisting in the ocean drilling project off of Antarctica... <img src="http://schwehr.org/blog/moods/smilies/smiley.gif" alt=":)" border="0"  
<br /><br />
You can follow the work on the <a href="http://www.facebook.com/joidesresolution">JOIDES Resolution via Facebook</a>.
<br /><br />
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/J2EIeXODCBI&hl=en_US&fs=1&color1=0x5d1719&color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/J2EIeXODCBI&hl=en_US&fs=1&color1=0x5d1719&color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>]]></description>
</item>
</channel>
</rss>
