[gradsusr] grads and matlab
Arlindo da Silva
dasilva at alum.mit.edu
Sat Nov 20 10:45:22 EST 2010
On Fri, Nov 19, 2010 at 2:26 PM, Marcio Moraes <Marcio.Moraes at tvrl.lth.se>wrote:
> hello,
>
> Anybody knows some m-files that can read grads file?
> I have been tried Grads Matlab interface from Christophe Sturm, but doesn't
> work.
>
>
You may want to try the grads-matlab interface, see this:
http://opengrads.org/wiki/index.php?title=JyGrADS:_Java_and_Matlab_interface_to_GrADS_through_Jython
The jygrads_superpack.jar is temporarily available from
http://opengrads.org/devel/jygrads/
To give you an quick idea of the interface:
ga = grads('grads -lb',0);
fh = ga.open('data/model');
[ts,g] = ga.expr('ts');
pcolor(g.lon,g.lat,ts);
shading('interp');
title('Surface Temperature');
xlabel('Longitude');
ylabel('Latitude');
The idea is eliminate any need for file conversion: anything grads can read
becomes available to matlab. The only requirement is that you have grads v2
installed and on your path, either the COLA or opengrads releases should do
it. This interface should be considered alpha-beta quality as I have not use
it as extensively as the python or perl interfaces.
Arlindo
> Thanks,
>
> Marcio.
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20101120/2ccdccfb/attachment-0003.html
More information about the gradsusr
mailing list