planetwater

ground- water, geo- statistics, environmental- engineering, earth- science

Archive for April, 2010

Identi.ca Weekly Updates for 2010-04-28

without comments

Written by Claus

April 28th, 2010 at 12:11 pm

Posted in identi.ca

Identi.ca Weekly Updates for 2010-04-21

without comments

Written by Claus

April 21st, 2010 at 12:11 pm

Posted in identi.ca

How to Setup a MBOX ( Uni Stuttgart ) Calendar in iCal on OS 10.6

without comments

Here is a little description for how to setup an mbox calendar of the University of Stuttgart under iCal on OS 10.6

  • in iCal go to Preferences, to the “Accounts” tab, add a new account by clicking on the plus on the bottom left
  • fill everything like in the first screenshot;
    • in the blurred out section, put your user name
    • instead of “iws” put the abbreviation of your institute or department
Alternative Text

first screenshot

  • if an error message occurs, don’t give up, but try again!
  • fill the second screen as shown in the second screenshot. Again: in the blurred out section, put your user name
Alternative Text

second screenshot

That’s it! You should be ready to go!

Enjoy!

Written by Claus

April 20th, 2010 at 2:12 pm

Posted in

Tagged with

iPython Shell to Execute both Python and traditional Shell commands

without comments

Wow, I just learned about this today: I am running gstat fairly frequently, for simulation purposes. Here is a nifty little way to run this from a shell that understands both python and traditional shell commands.

  1. open such an shell typing

    ipython -profile sh -pylab
    

  2. Let’s assume you want to simulate 30 fields, then type:

    import time
    for i in range(30):
     !gstat.exe "{name of gstat setup file}"
     !move "{gstat output file}" ${ "%03i" % (i,) }
     time.sleep(12)  
    

Here are some explanations:

  • the gstat output is copied into folders that are named 001, 002,… up to 030
  • in order to invoke traditional shell commands they need to be preceded by an exclamation mark
  • the time.sleep command is placed, because I found that for a new random seed to happen in gstat it needs to pause for a little while. I am not sure if this is correct or if there are better ways to do this. If you are aware of any, please let me know.
  • a “$” is necessary in front of a python command if it is inside a shell command, so it is processed before it is passed to the shell.
  • important: “cd” is to be treated like a python command! so do NOT use “!cd ..”

Big thanks to Thomas, master of many things and especially of PyMF!

This is so wicked! I also discovered folder actions in OSX yesterday. How awesome are these two discoveries? ­čÖé

Well, it’s weekend now, and three machines are running full throttle. Cheers!

Written by Claus

April 16th, 2010 at 7:27 pm

Posted in

Identi.ca Weekly Updates for 2010-04-14

without comments

Written by Claus

April 14th, 2010 at 12:11 pm

Posted in identi.ca

NHL Stanley Cup Play-Offs Schedule

without comments

It’s Play-Off time!

And the season ended with an awesome goal by Daniel Sedin and with Patrice Bergeron scraping the puck off the goal line!

This sets the expectations to a fairly decent level! So I drew up a schedule (pdf)

Enjoy!

­čÖé

update Thursday; April 15, 2010: I hope I can update the scores on a regular basis!

Written by Claus

April 12th, 2010 at 8:51 am

Posted in

Tagged with

Identi.ca Weekly Updates for 2010-04-07

without comments

Written by Claus

April 7th, 2010 at 2:11 pm

Posted in identi.ca

World Water Day – National Geographic Special Edition on Water

without comments

March 22nd was “World Water Day“. This day gave reason for National Geographic to devote a full issue to the topic of Water. Even more, they let you explore this issue online, for free, and with a few extras such as interactive maps and background stories. It really is a nicely done interactive version, taking advantage of browsing, searching, video and audio. The only unfortunate thing is that it is based on flash.

Alternative Text

Cover page of the April 2010 issue of the US National Geographic

For the same occasion, world water day, boston.com has a water-themed collection of astonishing photographs in their “The Big Picture” category

Written by Claus

April 4th, 2010 at 10:19 am