[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: netCDF tools for octave

From: Rafael Laboissiere
Subject: Re: netCDF tools for octave
Date: 12 Oct 1999 15:13:15 +0200

>>>>> "SJ" == Steve Juranich <address@hidden> writes:

    SJ> Does anybody know if there are any tools available so that octave
    SJ> can read NetCDF files?  

It depends on what you want.  If you are looking to a quick way to
manipulate NetCDF files of your own, you can easily program in C++, like in
the file attached below.  If you are looking for a general NetCDF toolbox
for Octave, tell me if you find any, as I am also looking for that.

In my Debian GNU/Linux box, I use the attached file as follows:

$ mkoctfile -lnetcdf -lnetcdf_c++
$ octave
GNU Octave, version (i386-pc-linux-gnu).
Copyright (C) 1996, 1997, 1998, 1999 John W. Eaton.
This is free software with ABSOLUTELY NO WARRANTY.
For details, type `warranty'.

octave:1> x=rand(2,3);
octave:2> ncsave("x",x)
octave:3> x
x =

  0.061219  0.699473  0.485891
  0.666181  0.938467  0.723613

$ ncdump x
netcdf x {
        rows = 2 ;
        cols = 3 ;
        double arg(rows, cols) ;

 arg =
  0.0612190775573254, 0.69947338104248, 0.485891252756119,
  0.666181206703186, 0.938466966152191, 0.723613023757935 ;

Rafael Laboissiere <address@hidden>
Institut de la Communication Parlee / INP Grenoble, France

Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]