Pygrads and grads executables

Arlindo da Silva dasilva at ALUM.MIT.EDU
Wed Mar 19 15:04:54 EDT 2008


On Wed, Mar 19, 2008 at 10:43 AM, Roch, Grant F. <
Grant.Roch at constellation.com> wrote:

>  Arlindo-
>
> I downloaded pygrads-1.0.8.win32_superpack.exe and installed everything
> without issue.  I'm trying to play around with the python interface but come
> across some issues starting the executables.
>
Did you install the GrADS executables, in particular the win32 superpack?
Before you can use PyGrADS you should be able to open a cmd.exe window and
type

C:\> gradsnc

and have vanilla GrADS fully functional. PyGrADS just uses bi-directoional
pipes to mcommunicate with these executables.


> I'm trying the examples provided on the wiki, but the GaCore(Bin='grads')
> or GaCore(Bin='gradsnc') or GaNum(Bin='grads') don't work.  I've let them
> run for several minutes (one time a half hour) and kill them and here's the
> trace back:
>
When it works, it should be immediate. Come to think of it, I should add
some explicit timeouts to the code...

...


> I'm plotting grib files.
>
I'll be soon releasing an extension for reading grib-2 files in grads
v1.9.0-rc1, as a stop gap measure until we can transition the OpenGrADS
development to GrADS v2. Contact me directly if you would like to help us
with the early testing.


> I've done some scripting in GrADS but am excited to try this interface
> out.  How long will it before this the PyGrADS works with GrADS v2?
>
>
This is more a question for COLA than for me.  I need the ability to write
dynamic extensions in order to implement all the PyGrADS functionality (in
particular the fast exchange of variable data).  So, I am waiting for COLA
to define the dynamic UDF Application User Interface (API) before  this and
other OpenGrADS projects can make a switch to GrADS v2.

I don't know if you realize, but the basic functionality in GaCore (without
numpy/pylab interfaces) already works with GrADS v2; you simply cannot
exchange variable data with Python transparently. In fact, I have
implemented a test suite for GrADS v2 based on GaCore and PyUnit.

> Thanks for any assistance you can provide.  Should this be posted on the
> Open GrADS mailing list in the future?  I was going to but didn't seem like
> there's much posted there (at least in comparison to the GRADS user list).
>

For now, send questions like this to the regular gradsusr list. If we ever
get to a point of too much traffic, or the discussions get too python
specific, then it may justify to have specialized mailing list.

    Arlindo





>
> Grant F. Roch
> CCG Strategies Group
> W: 410-470-2565
> C: 443-670-4951
>
> >>> This e-mail and any attachments are confidential, may contain legal, professional or other privileged information, and are intended solely for the addressee.  If you are not the intended recipient, do not use the information in this e-mail in any way, delete this e-mail and notify the sender. CEG-IP1
>
>


--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080319/e1280ec9/attachment.html 


More information about the gradsusr mailing list