Skip to content

brorfred/pyroms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Pyroms!

Pyroms is a collection of tools to help with input and output files
from the Regional Ocean Modeling System (ROMS). It was originally
started by Rob Hetland as a googlecode project, then he morphed it
into octant, also at googlecode. Frederic Castruccio then created a
fork and renamed it back to pyroms. This version is still rather
rough around the edges.

Prerequisites
-------------

Meanwhile, you can prepare by installing Enthought Python
(http://www.enthought.com/) or by this collection of packages:

   * Python itself. You will need a version that's at least 2.4 and
     less than 3.0.

   * numpy. Get a version that's reasonably new, don't count on the
     version 1.0.1 that you found already on the system. How do you
     tell the version? At the interactive prompt from python, type
     "import numpy" then "numpy.__version__".

   * scipy.

   * matplotlib. This is a plotting package to reproduce the Matlab
     plotting, complete with everything you might not like about
     Matlab plotting. This also contains the gui tools, but it
     depends on an underlying gui package, be that tk, wx, X11, or
     qt. If it can't find any of them, it's time to install one.

   * basemap from matplotlib. These are the map tools for Python,
     complete with etopo2 in the examples directory (user beware).

   * netCDF4 from Jeff Whitaker. This sits on top of the hdf5 and
     netcdf4 libraries.

   * ipython. Fred Castruccio recommends using "ipython -pylab" for
     interactive fun. It preloads both numpy and the matplotlib
     pylab package.

We may also add pyngl and pynio from NCAR to this list.

Installing
----------

Pyroms is currently in three different packages, pyroms itself,
pyroms_toolbox, and bathy_smoother. We are in the process of creating
setup.py scripts for each, plus an examples directory.

For now,

  cd pyroms_toolbox; python setup.py build --fcompiler=gnu95;
                     python setup.py install --prefix=xxx;
                     cd ..

The above may or may not need something along these lines:
setenv LDFLAGS '-L/usr/local/pkg/python/python-2.7.2/lib -shared'

  cd bathy_smoother; python setup.py build;
                     python setup.py install --prefix=xxx;
                     cd ..
  cd pyroms; check the paths in the install script and see if it runs...

If you needed the LDFLAGS above, you'll need to add it to the
install script too, at least for the build of scrip.

Running
-------

We have a gridid.txt file that's pointed to by the PYROMS_GRIDID_FILE
environment variable. If you are operating on files containing
sufficient grid information already, you won't need to use this.
An example is provided in the examples directory.

About

Python tools for the Regional Ocean Modeling System (ROMS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published