[MITgcm-devel] gluemncbig and many tiles
Oliver Jahn
jahn at MIT.EDU
Mon Jan 14 09:32:19 EST 2013
On 2013-01-14 08:39, Martin Losch wrote:
> Hi Oliver,
>
> it's kind of funny, but on hicegate I have python 2.7 without numpy (really without anything), but python 2.4 with most or all packages (or I just don't know how to use the module environment property). So I am not going to worry about that part, until I understand what's really going on here.
recursive modules, maybe? (module add python/2.7; module add numpy)
Also, numpy is pretty easy to install in user space. I'd get a tar ball
from http://sourceforge.net/projects/numpy/files/NumPy/ and run
python setup.py install --user
in it's top directory.
> I am willing to help as much as I can with writing and maintain python scripts (currently it won't be much more that just testing code on my output, because I am such a novice).
Thanks!
> I am looking forward to your "other" gluemnc script. If speed is an issue, one can also think of switching between the fast and the slower version depending on the number of tiles?
> Going only along one direction will alleviate the problem most likely for another couple of years (untile we have >1000 tiles in x (o:)
Yes, or even dynamically, upon failing to open many files...
Oliver
> On Jan 14, 2013, at 2:23 PM, Oliver Jahn <jahn at MIT.EDU> wrote:
>
>> Hi Martin,
>>
>> thanks for taking an interest in this!
>>
>> On 2013-01-14 04:29, Martin Losch wrote:
>>> Hi Oliver,
>>>
>>> I am trying to use the great gluemncbig script to glue many (1120)
>>> netcdf files. After fixing this re.compile issue (although this may not
>>> be the best fix, and maybe {3,5} is even better):
>>> tilepatt = re.compile(r'(\.t[0-9]{3,4}\.nc)$')
>>> I am getting different error messages on different computers:
>>>
>>> 1. On hicegate.hlrn.de (www.hlrn.de) with python 4.2
>>
>> I assume this is python 2.4. In this case, yes, it is a python issue. 2.4 isn't supported by current numpy (which is needed by gluemncbig) anymore, so I didn't think too much about it. Are you sure this machine doesn't have a more recent python in a module or something?
>>
>>> A more general question: I am so excited by the things python can do now
>>> (with matplotlib can plot finite elements very easily and beautifully),
>>> that I want to use it more. Do you already have a set of scripts that
>>> would replace our matlab functions (I saw mds, mnc, but, e.g. plotting
>>> the cube etc.) that you are willing to share?
>>
>> I have a bunch of unorganized scripts that I'd be happy to share, and I would love to put together a more cleaned-up set of tools relating to MITgcm when I get around to it. Any help on this would be greatly welcomed.
>>
>> Oliver
>>
>> _______________________________________________
>> MITgcm-devel mailing list
>> MITgcm-devel at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-devel
>
>
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-devel
>
More information about the MITgcm-devel
mailing list