10.30.2006 18:35

Trick or treat

Something new for me tonight... at 6:15 we are out of candy for the trick-or-treaters! Wow!!!! For the last 6 years, I think I have seen a total of 10 people at the door. Tonight had a large range of costumes and ages, but now the front light is dark. Sorry all!! I will do better next year.

Posted by Kurt | Permalink

10.30.2006 18:16

Voidspace on Python charting programs

Python, GUI Toolkits and Charting

I'm looking to start a Python project that will involve creating
charts from data-sets.


I've been wondering which GUI toolkit [1] to use and what charting packages are available.

The Python GUI toolkits I've used are Tkinter and wxPython. Tkinter is a wrapper around Tk/Tcl, wxPython is a wrapper around the C++ library wxWidgets.

Posted by Kurt | Permalink

10.29.2006 11:23

Fledermaus to Google Earth screen captures

Here are a couple screen captures of the process of going from a Fledermaus scene file to Google Earth overlays. This assumes that you have Fledermaus 6.3 or newer.

First, in Fledermaus, load up the sd file of the terrain that you want to put into Google Earth (GE). Then use "Tools-Create Map Sheet" menu option and save a geoTiff.



Then in the IVS imageviewer program, make white be the transparent color.



Make the fuzziness be 0. (if this were a jpg, you would need fuziness). Click ok. Then save the image and keep this program running.



Start Google Earth and add an image overlay.



Use Browse to find the image. Then select the location tag and put in the coordinates shown in the imageviewer program.



And for fun, I put in my figures from the g-cubed paper that will be published in a couple weeks.



That's it for now. New Hampshire is having a wild and windy day today. It sounds like the house is about to take off.

Posted by Kurt | Permalink

10.29.2006 08:07

Pathfinder photoRealVR in Stanford CS Vision class

Antal just sent me an email about the Mars Pathfinder Photo Real VR web pages. He saw them used in the Stanford CS223b Computer Vision class for Winter 2006. Back then the web pages were on line, but for the last 6 months (until now) the pages have been offline. I am still trying to get (re)organized from my move to the opposite corner of the US. Not everything will be in the same place. I am working to keep the load on schwehr.org to a minimum, so much of my work related material will be on the UNH Visualization Lab web server.

CS223b Lecture 1 - Introduction

That lecture points to http://schwehr.org/photoRealVR/example.html which I have move to http://vislab-ccom.unh.edu/~schwehr/photoRealVR/example.html

SEE ALSO: photo.html - how it works


Posted by Kurt | Permalink

10.28.2006 22:49

The google earth resume

Back in 2002 I had a globe in my Viz competition entry. Clicking on the red dots popped up an OpenInventor model of that field site or a web page. Now I am able to do that with Google Earth (at least the web page part). I have created an initial version of my "Google Earth Resume." I did this mostly to illustrate how we as a community should be able to access research datasets. It gets even better with the time control in Google Earth Beta 4. Dragging the slider or hitting play can show what happened when within or across research projects. In the current version, flying in to La Jolla, CA shows an image overlay of Pat's bathymetry with a thumb tack. Click on the tack and you get access to my web page for the demo and the complete Fledermaus Scene. I am not quite sure how to make that file download to disk and kick off Fledermaus or iView3D, but there has to be a way to do that.

http://schwehr.org/resume/schwehr-resume.kml


Posted by Kurt | Permalink

10.28.2006 20:47

Google earth local radar

NationalWeatherService google radar with time [gearthblog] - Now has timeSpans so you can see the radar image moving.

http://www.srh.noaa.gov/ridge/kml/

Select your city and data type, then hit play.


Posted by Kurt | Permalink

10.28.2006 20:28

Halloween Music

Not your average Halloween music...

Rhyme Torrents Halloween EP - The Nerdcore Hip-Hop Compilation CD Project. Check out the track numbers on the web page. A mixed bag of music.


Posted by Kurt | Permalink

10.28.2006 16:24

python setuptools on IBM devworks

Charming Python: Hatch Python eggs with setuptools - A PEAK at improved installation and package management [ibm.com]

File this in the "I should really read this catagory"

Posted by Kurt | Permalink

10.28.2006 15:23

New in JavaScript 1.7

For a long time, I have dismissed JavaScript as a language. But this list of features and the more places it has been showing up means that I probably should pay attention to it.

http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7
JavaScript 1.7 is a language update introducing several new features,
in particular generators, iterators, array comprehensions, let
expressions, and destructuring assignment.

Posted by Kurt | Permalink

10.28.2006 13:16

supposed planet-wide ocean on Mars

Soil minerals point to planet-wide ocean on Mars
...
Now, a new analysis of rover data suggests that the sulphates were
once dissolved in a planet-wide ocean. The study was carried out by
James Greenwood of Wesleyan University and Ruth Blake of Yale
University, both in Connecticut, US.


The researchers point out that phosphates, which are also linked to water, are also present at both sites. More importantly, the ratio of phosphates to sulphates is about the same at both locations. They say the most likely explanation for this is that any local variations were smoothed out by mixing in a planet-wide ocean. ...
Apparently this was published in Geology (vol 34, p 953).

Posted by Kurt | Permalink

10.27.2006 15:52

Many ships in Google Earth timeSpan

Now that I have finished my talk, here is my Google Earth file for AIS ship traffic in a small area for a couple hours. Doing timeSpan nodes in Google Earth is pretty easy, but I need to add some smarts to filter out data that is not useful and is just slowing down the rendering (like ships that do not move).



http://vislab-ccom.unh.edu/~schwehr/ais/google_earth/

There are lots of other Google Earth AIS visualizations out there, but I have not yet found one that uses time. Here are some files that I have found.

The NASA Wallops google earth stuff looks interesting too. The file acts very strangely but is interesting. Google Earth Data Browswer - CODAAC

And there is always the AIS system for Air Traffic... NOTAMS and NATS AIS - Notices to Airmen sounds like the Notices to Mariners.

Posted by Kurt | Permalink

10.27.2006 14:51

NOAA nowCOAST

I haven't yet dug into the NOAA nowCOAST, but it is high on the list and a great resource. As the tag line says:
Web Mapping Portal to Real-Time Coastal Observations 
and NOAA Forecasts


I was going to include a screen shot, but it seems that I really wedged something. I am currently getting a whole mess of Java exceptions. The mistake was probably trying to resize the window to a smaller size get a screen shot. Whoops! The one thing that did was to tell me that it is using ESRI's web software.

nowCOAST

Posted by Kurt | Permalink

10.26.2006 18:20

AIS motion in google earth

A few months ago, I got AIS data into Google Earth KML, which was nice, but there was no way to see the motion. GeoZui4D has had a time interface for quite some time and seeing the ship motion is a big queue as to what is going on. Now that Google Earth has time in kml 2.1 with the latest Beta 4, it was time today to get AIS moving the way it should be. Here is my very first attempt with just one ship. I picked the Defiant in New Jersey just south of Atlantic City. I am sure that my kml is not the nicest, but it works.





defiant-ais.kml

I produced the above animation by doing multiple Shift-Apple-3 keys to grab the screen, then stacked the images in photoshop as layers. I cropped the batch together and then exported the layers in Image Ready as a_[0-4].gif. Then I used image magick to make the animated gif:
convert -delay 75 -loop 0 a_?.gif google-ais-defiant.gif

Posted by Kurt | Permalink

10.26.2006 13:31

AIS BSVDM

I was just going back through a recent days worth of logged AIS data and noticed that I am getting way more complaints from my python code. Looking at the NMEA I was surprised to see BSVDM NMEA messages. I am accustomed to seeing AIVDM messages broadcast from remote vessels. Googling BSVDM only got one hit which is the AIS basestation specification.
80_427e_CDV[pdf]
Skimming through that document, there are messages that start with !BS, but I didn't find a description. Perhaps this means "Base Station," but it could also stand for "Bit Scrambled." I haven't tried to decode these since my code rejects anything that is not AIVDM or AIVDO. Here is an example just for reference.
!BSVDM,1,1,,A,152w@t5P00JSDt6E7qv@0?wF0<0f,0*61,r003669717,1161821504
!BSVDM,1,1,,A,15N7`G0P00JRURdE7oVevgwH08JH,0*74,r003669717,1161821504
!BSVDM,1,1,,A,15N4He0P06JRTPC0PCVH888,0*51,r003669717,1161821506
!BSVDM,2,2,7,A,88888888880,2*3A,r003669717,1161821506
!BSVDM,1,1,,A,15N8JePP00JR`t0E6501sOwP0D0f,0*20,r003669717,1161821507
!BSVDM,1,1,,A,15N1NJPP1=JSBH`E
Something to look into if I get some more time.  And I really should
read the whole base station specification.

Posted by Kurt | Permalink

10.25.2006 15:36

Latest update on the MER Mars rovers

http://www.theonion.com/content/node/54360
Mars Rover Beginning To Hate Mars
Unmanned Vehicle 'Bored Out Of Its Mind'
Thanks to Jenna for pointing out this critical news update!

Posted by Kurt | Permalink

10.25.2006 08:33

blog rsync

I finally have rsync setup so that the web server is not running the nb command (which takes quite a long time). Here is my nb-rsync.bash script:
#!/bin/bash
export RSYNC_RSH=ssh
OPTIONS="${OPTIONS} --recursive"
OPTIONS="${OPTIONS} --perms"
OPTIONS="${OPTIONS} --times"
OPTIONS="${OPTIONS} --cvs-exclude"
OPTIONS="${OPTIONS} --exclude-from=${HOME}/projects/blog/scripts/nb-rsync.excludes"
OPTIONS="${OPTIONS} --verbose"
#OPTIONS="${OPTIONS} --dry-run"
#OPTIONS="${OPTIONS} "

echo calling rsync...
echo rsync ${OPTIONS}
rsync ${OPTIONS} ${HOME}/projects/blog/nb/ schwehr.org:www/blog/
And here are my excludes:
blog.conf
cache
data
templates
parts
Seems to work great!

Posted by Kurt | Permalink

10.25.2006 08:02

Mac Software - iShowU, SOAP Client 1.0, Google SketchUp

Couple of Mac software updates...

A new version of Google SketchUp is out (5.0.305). Is there any software out there that can convert the SketchUp files to something else? Did I mention that I hate application installers? What are they putting on my system and where? I much prefer applications that let me just drop the application into /Applications. BTW, Roland got me interested in the x3d file format the other day. I didn't realize that it is a combination of XML and VRML2/95. I have to take quick look.

This next software package looks useful for some of the NOAA work I am doing with the Coops SOAP servers. Soap Client 1.0

The last one, I am not so sure about: iShowU I tried playing with the last free version (1.9) and it cause the mac to kernel panic quite a few times (usually a couple minutes after using it). It does do a nice job of saving the screen to a movie file. The program is now up to version 1.25, so maybe it won't crash you machine, but I don't know. I use my desktop for long term data logging, so I get really annoyed by things that make me reboot my machine. It doesn't help that I have to restart the data logging code by hand right now (ugh!).

Posted by Kurt | Permalink

10.24.2006 15:31

Great site for images of different ship types

I just found http://www.njscuba.net/artifacts/. This site has some nice pictures of various ship types. For example:




Posted by Kurt | Permalink

10.23.2006 22:32

Python and Mac Quartz

http://www.macresearch.org/generating_diagrams_with_python_and_quartz
Standard plotting and visualization packages are adequate for most
researchers, most of the time, but what if you have to follow a path
less travelled, and need diagrams that are not easily generated by
existing software? With a little Python, you can relatively easily
produce custom graphics by leveraging one of Mac OS X's great
technologies: Quartz.
And I shoved this code into a script and it performed as advertised...
#!/usr/bin/python


from CoreGraphics import * import math, random

# Define the mapping between plot coordinates # and page coordinates xPlotRange = 5.0 yPlotRange = 5.0 xPageRange = 792.0 yPageRange = 612.0

# Functions def drawLevelTransition(c, firstLevel,secondLevel): # Draw first level c.setLineWidth(.01) c.beginPath() c.moveToPoint(1.0,firstLevel) c.addLineToPoint(1.2,firstLevel) c.strokePath()

# Draw second level c.beginPath() c.moveToPoint(2.0,secondLevel) c.addLineToPoint(2.2,secondLevel) c.strokePath()

# Draw dashed line between levels c.saveGState() c.setLineWidth(.005) c.beginPath() c.moveToPoint(1.2,firstLevel) c.addLineToPoint(2.0,secondLevel) c.setRGBStrokeColor(1.,0.,0.,1.0) dashes = CGFloatArray(2) dashes[0] = 0.1 dashes[1] = 0.05 c.setLineDash(0, dashes, 2) c.strokePath() c.restoreGState()

# Write text c.saveGState() c.setRGBFillColor (0,0,1,1) c.selectFont ("Helvetica", 0.07, kCGEncodingMacRoman) c.setTextPosition(0.5, firstLevel) c.setTextDrawingMode (kCGTextFill) text = "Level %3.2f" % (firstLevel) c.showText (text, len(text)) c.restoreGState()



# Create a page to draw in pageRect = CGRectMake(0, 0, 612, 792) c = CGPDFContextCreateWithFilename ("energylevels.pdf", pageRect) c.beginPage(pageRect)

# Apply transform so that we can draw in the plot coordinates c.scaleCTM(xPageRange/xPlotRange, yPageRange/yPlotRange)

# Draw 5 random transitions for demonstration purposes for i in range(5): first = 5.0 * random.random() second = 5.0 * random.random() drawLevelTransition(c, first, second)

# Finish off c.endPage()

Posted by Kurt | Permalink

10.23.2006 11:56

MacENC

Here is an interesting little program. MacENC. This is about $100. It is nice to see some Electronic Navigational Chart software for the Mac. I will go absolutely nuts if I ever see an ECDIS based on either Linux or Mac OSX. It was interesting to hear at AIS06 that people are extremely worried about internet chart updates for their ECDIS systems because of the concern about getting viruses on critical infrastructure machines.
  MacENC(tm) is the professional solution for the mariner that wants to
  take the Mac aboard for real-time display of position on the vector
  format S-57/S-63 ENCs (Electronic Navigational Charts) AND raster
  format BSB and Softcharts. Plug your GPS into your Mac and watch as
  your vessel moves along in real-time, plotting a track behind and
  logging a historic position on a seamless quilted digital chart.

Posted by Kurt | Permalink

10.23.2006 11:40

gengetopt fink trouble fixed

Last month, I worked with the author of gengetopt, Lorenzo Bettini, and we fixed the gengetopt info page trouble. I believe the fix is in the cvs tree, so hopefully the changes will be in there for the next release.

In other software news... I've updated the fink SQLalchemy to be the latest version. I will be putting together a python tutorial for next week. And I promiss to blog more about the software development work I have been doing lately.

I still have some patchup work to do to make my blog a bit more stable and easy to use. I am still using nanoblogger, but am thinking about writing my own in python with maybe some XSLT. That development is not likely to occur anytime soon since I have way more important code to get out the door!

Finally, a warning... you will probably be seeing posts about having a house. Now that I have one, it factors heavily into my brain. Questions like "Will this be the last time I mow the lawn before spring" suddenly become interesting to me. Weird.

Posted by Kurt | Permalink

10.22.2006 10:33

schwehr.org back!

With many thanks to Alex, schwehr.org is back on the net! I also have a new web space for work content, which is:
https://vislab-ccom.unh.edu/~schwehr/

Posted by Kurt | Permalink

10.03.2006 14:50

genargs first release - 0.1.0

I just kicked out the first public release of genargs... version 0.1.0. I hope people find it useful. There is still much that could be improved and added to the code, but the basics are there. Next I need to integrate it into the project that originally caused me to start working on it. This release URL will probably change in the future.

http://xenon.stanford.edu/~schwehr/genargs-py-0.1.0.tar.bz2

Posted by Kurt | Permalink

10.03.2006 06:12

Mac OSX matlab GUI

So I still do not have matlab installed on my mac, but other people in the lab do. So this might be of use to them.

New Gui for Matlab [macresearch.org]

Posted by Kurt | Permalink

10.02.2006 09:41

wired on web journals

Web Journals Take On Peer Review [wires/AP]
AP...
LOS ANGELES -- Scientists frustrated by the iron grip that academic
journals hold over their research can now pursue another path to fame
by taking their research straight to the public online.


Instead of having a group of hand-picked scholars review research in secret before publication, a growing number of internet-based journals are publishing studies with little or no scrutiny by the authors' peers. It's then up to rank-and-file researchers to debate the value of the work in cyberspace.

The web journals are threatening to turn the traditional peer-review system on its head. Peer review for decades has been the established way to pick apart research before it's made public.

Next month, the San Francisco-based nonprofit Public Library of Science will launch its first open peer-reviewed journal called PLoS ONE, focusing on science and medicine. Like its sister publications, it will make research articles available for free online by charging authors to publish. ...

Posted by Kurt | Permalink