Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 35356

Summary: ebuild request: PyClimate
Product: Gentoo Linux Reporter: guaka
Component: New packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: adam.roben, castelao
Priority: Lowest Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: All   
URL: http://www.pyclimate.org/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Initial proposed ebuild
Ebuild with fixed LICENSE=
Fixed SRC_URI=
1.2.1 version with SRC_URI correction
Updated SRC_URI, testing information

Description guaka 2003-12-08 10:13:06 UTC
"It is a Python package designed to accomplish some usual tasks during the analysis of climate variability using Python. It provides functions to perform some simple IO operations, operations with COARDS-compliant netCDF files, EOF analysis, SVD and CCA analysis of coupled data sets, some linear digital filters, kernel based probability density function estimation and access to DCDFLIB.C library from Python."
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-12-13 16:46:38 UTC
looks interesting. maybe if someone who would like to contribute could write an ebuild for this.
Comment 2 Adam Roben 2003-12-31 02:17:34 UTC
Created attachment 22898 [details]
Initial proposed ebuild

Here's a pretty standard distutils-type ebuild.  Also copies over the test/ and
examples/ directories.
Comment 3 Adam Roben 2003-12-31 13:29:19 UTC
Created attachment 22931 [details]
Ebuild with fixed LICENSE=

Oops, got the LICENSE= field wrong.  Now fixed.
Comment 4 Adam Roben 2003-12-31 13:49:20 UTC
Created attachment 22933 [details]
Fixed SRC_URI=

Shoot, introduced a typo into SRC_URI=	Now fixed.
Comment 5 Castelão 2004-02-03 20:06:57 UTC
Created attachment 24918 [details]
1.2.1 version with SRC_URI correction

SRC_URI="http://lcux18.lc.ehu.es/~pyclimate/pyclimate/downloads/${MY_P}.tar.gz"
don't exist. Another SRC_URI is proposed. With that can download, compile and
install 1.2.1 version.

python /usr/share/pyclimate/test/pyclimatetest.py
can't run, but
cd /usr/share/pyclimate/test; python pyclimatetest.py
run until
...
Testing routines: diffoperators - 1.1
============================================================
Testing D.O. with several dimensions with and without PBC...

Testing D.O. with 0 to 360 degrees longitudes...
Traceback (most recent call last):
  File "pyclimatetest.py", line 1239, in ?
    testPyClimate_01_01(nc,overwrite)
  File "pyclimatetest.py", line 1096, in testPyClimate_01_01
    testnewdiffoperators(nc,ovwr)
  File "pyclimatetest.py", line 826, in testnewdiffoperators
    compareRMSvals(nc,namex,n3x.astype('f'),ovwr,dims," 3D")
  File "pyclimatetest.py", line 82, in compareRMSvals
    residual=ref-val
ValueError: frames are not aligned
Comment 6 Adam Roben 2004-02-03 21:06:03 UTC
Created attachment 24920 [details]
Updated SRC_URI, testing information

Updated SRC_URI to what is now listed on pyclimate.org.  Also changed the
testing information presented at post-install to reflect the above comment. 
The instructions are now to run 'cd /usr/share/pyclimate/test && sudo python
pyclimatetest.py'

Note: This does not fix the bug from the previous comment, which I see also.
Comment 7 Adam Roben 2004-02-03 21:12:07 UTC
After a little investigating, here is ref.shape and val.shape (ref-val is the operation causing the TraceBack):
ref.shape:
(2, 2, 73, 144)
val.shape:
(2, 2, 71, 144)

You can see that the length of the third axes do not match up.

This did work for me under Python 2.2.3, but fails on Python 2.3.3  I wonder if that is the trouble?
Comment 8 Lukasz Strzygowski (RETIRED) gentoo-dev 2004-07-08 09:14:39 UTC
Marking WONTFIX, because his project is meant to a very small group of scientists and i think there isn't general interst in it. Thanks for submission, anyway.