From: Joao R. D. P. <joa...@ia...> - 2013-11-16 12:26:26
|
Dear all, I am using pygrads to make the "comunication" between python and GrADS but I am having problem with the function import. I have geopotential filtered data (ntimes, nlatitudes, nlongitudes) that I computed by using a python code, but I am having problems to import these data to GrADS. Since I am not totally familiar with python, I dont understand very much how to specify correctly the parameters of imp. function. It is said that: #........................................................................ def imp ( self, name, Field ): """ Sends a GrADS Field containing a NumPy array and associated grid information to GrADS, defining it in GrADS as *name*. Notice that *Field* can be an instance of the GaField class or a tuple with the (Array,Grid) components. I believe my problems are the Field and name parameters. Does anyone know to use this function? Thanks in advance, João Department of Atmospheric Sciences, University of São Paulo - Brazil |