"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."
looks interesting. maybe if someone who would like to contribute could write an ebuild for this.
Created attachment 22898 [details] Initial proposed ebuild Here's a pretty standard distutils-type ebuild. Also copies over the test/ and examples/ directories.
Created attachment 22931 [details] Ebuild with fixed LICENSE= Oops, got the LICENSE= field wrong. Now fixed.
Created attachment 22933 [details] Fixed SRC_URI= Shoot, introduced a typo into SRC_URI= Now fixed.
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
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.
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?
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.