Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ef0d37d
First whack at 2to3 -w.
kshedstrom Jan 10, 2018
b83f796
Whack two at conversion to python3.
kshedstrom Jan 10, 2018
f14d408
Getting rid of more tabs.
kshedstrom Jan 10, 2018
4b1f883
Still more fussing.
kshedstrom Jan 10, 2018
1baa7a0
Fix up pyroms setup.py to clear out pycnal refs.
kshedstrom Jan 11, 2018
328ccb2
Update grid.py
JamiePringle Feb 2, 2018
94af2d7
Small tweakings
kshedstrom Feb 2, 2018
2ac9b66
Merge pull request #6 from JamiePringle/JamiePringle-patch-1
kshedstrom Feb 2, 2018
677e574
Merge branch 'python3' of https://github.com/ESMG/pyroms into python3
kshedstrom Feb 2, 2018
4c14d0a
Update grid.py
JamiePringle Feb 2, 2018
df6aaf7
Merge branch 'JamiePringle-patch-2' of git://github.com/JamiePringle/…
kshedstrom Feb 2, 2018
48296c8
Merge pull request #7 from JamiePringle/JamiePringle-patch-2
kshedstrom Feb 2, 2018
67dd117
Getting SODA interpolation working with Python3.
kshedstrom Mar 15, 2018
5264174
Getting SODA interpolation working with Python3.
kshedstrom Mar 15, 2018
53cd6f1
Merge branch 'JamiePringle-JamiePringle-patch-2' into python3
kshedstrom Mar 15, 2018
47975b8
Merge branch 'python3' of https://github.com/ESMG/pyroms into python3
kshedstrom Mar 15, 2018
4acbe97
Updates to BGrid_GFDL for north polar case
kshedstrom Mar 19, 2018
1ce2eb0
Cleaning up more tabs and int(bottom).
kshedstrom Apr 8, 2018
d9ac994
Work-around for issue #4.
kshedstrom Apr 24, 2018
03f5dfb
Cleaning up nframe stuff in cobalt codes.
kshedstrom Apr 24, 2018
45c5987
Fix to the fix_pole program, sigh.
kshedstrom Apr 24, 2018
6e11878
Fix after netcdftime-> cftime.
kshedstrom Jul 13, 2018
eaf9e45
Another int(bottom), Mark Hadfield's Spectral fix.
kshedstrom Aug 13, 2018
0b0c29c
Convert tab indents to spaces in Python source files
hadfieldnz Aug 15, 2018
9ac92ea
Merge pull request #9 from hadfieldnz/reindent
kshedstrom Aug 15, 2018
48c0f53
compile f files from setup
raphaeldussin Feb 3, 2019
90b57ee
Merge pull request #12 from raphaeldussin/fix_toolbox
kshedstrom Feb 5, 2019
ce8a427
invalid syntax in control prints
Feb 21, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build
html
*.so
*.o
*.pyc
Expand All @@ -7,6 +8,8 @@ build
*.a
*.log
*.status
*.dSYM
*.nc
bathy_smoother/Python/
examples/Yellow_Sea/Inputs/Initial/compute_remap_weights_in
examples/Yellow_Sea/YELLOW_grd_v1.nc
Expand Down Expand Up @@ -36,3 +39,4 @@ pyroms/external/scrip/source/makefile2
pyroms/external/scrip/source/scrip
pyroms/external/scrip/source/scrip_test
pyroms_toolbox/Python/
mask_change.txt
63 changes: 40 additions & 23 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ rough around the edges.
Prerequisites
-------------

Meanwhile, you can prepare by installing Enthought Python
(http://www.enthought.com/) or by this collection of packages:
Now using Anaconda python to download python 3.x and a bunch of other stuff:

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

* 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__".
* numpy.

* scipy.

Expand All @@ -39,10 +34,15 @@ Meanwhile, you can prepare by installing Enthought Python
interactive fun. It preloads both numpy and the matplotlib
pylab package.

We may also add pyngl and pynio from NCAR to this list. Or ESMPy.
Or Python 3...
* natgrid from http://github.com/matplotlib/natgrid for at least
one of the examples.

If you want a package manager for these bits, check out Anaconda.
Planning to move to ESMF. Download it with:

conda install --channel https://conda.anaconda.org/conda-forge esmf

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

Installing
----------
Expand All @@ -53,31 +53,40 @@ setup.py scripts for each, plus an examples directory.

For now,

cd pyroms_toolbox; python setup.py build --fcompiler=gnu95;
cd pyroms_toolbox; python setup.py build
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...
Maybe cut and paste from it into a bash shell.

I had to hack the scrip makefile for the fortran90 netcdf stuff. The
anaconda netcdf-fortran reports:
nf-config not yet implemented for cmake builds

A note on the .so files from fortran: They might now end up with names like:

If you needed the LDFLAGS above, you'll need to add it to the
install script too, at least for the build of scrip.
scrip.cpython-35m-x86_64-linux-gnu.so

I'm getting inconsistent results with where the .so files need to be. Best
results for me are if I go to the site-packages directory where pycnal
got installed and copy all the .so files:
It's OK - they'll load as long as they are in your PYTHONPATH. You might
also need libgu.so to be in your LD_LIBRARY_PATH. I'm getting inconsistent
results with where the .so files need to be. Best results for me are if I go
to the site-packages directory where pyroms got installed and copy all the
.so files:

cp pycnal/*.so .
cp pycnal_toolbox/*.so .
cp pyroms/*.so .
cp pyroms_toolbox/*.so .
cp bathy_smoother/*.so .

Make sure this site-packages directory is in your PYTHONPATH.
Make sure this site-packages directory is in your PYTHONPATH. As for
libgu.so, it went into $DESTDIR/lib, for me $HOME/python/lib - that's
what needs to be in the LD_LIBRARY_PATH.

Also, f2py may or may not be called f2py3, depending. It's listed explicitly
in the scrip makefile and under pyroms_toolbox/pyroms_toolbox/src/makefile.

Running
-------
Expand All @@ -86,3 +95,11 @@ 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.


Doxygen
-------

Running "doxygen .doxygen" in any of pyroms, pyroms_toolbox or
bathy_smoother will generate doxygen files. Edit the .doxygen files to
specify html vs. some other output format.
Loading