help-octave
[Top][All Lists]
Advanced

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

Re: octcdf, issue in example_netcdf.m


From: Alexander Barth
Subject: Re: octcdf, issue in example_netcdf.m
Date: Wed, 15 Aug 2007 16:45:04 -0400
User-agent: Thunderbird 1.5.0.10 (X11/20070301)

Hi Claudio,

Can you try version 1.0.5 of octcdf?
If the error persists, would be please specify which version of octave you are 
using. It works on my
system with octave 2.9.12.

Thanks,
Alex

Claudio Belotti wrote:
> Dear all,
> I installed the octcdf package from octaveforge when I run the
> example_netcdf.m I get an error on line 31
> 
> error: unable to resize object to fewer than 2 dimensions
> error: assignment failed, or no method for `ncfile = range'
> error: evaluating assignment expression near line 31, column 20
> error: near line 31 of file
> `/home/bel8/usr/octave/octcdf-1.0.3/example_netcdf.m'
> 
> that is where the command
> nc{'longitude'}(:) = longitude;
> is given
> 
> if I cut and paste the code (i.e. without stopping because of the
> errors) the example.nc is written and correctly read but again when I
> try to get the longitude or latitude values I obtain:
> error: unable to resize object to fewer than 2 dimensions
> 
> I tried with
> longitude = linspace(-179,180,360);
> but I only get a
> error: assignment failed, or no method for `ncfile = matrix'
> 
> I have the same problem with an independent netcdf file: I can read
> correctly the main data but not the value of the indipendent variables
> (in this case pressure lat and lon).
> 
> Can anyone clarify on this?
> 
> thank you
> Claudio
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> 


-- 
_______________________________________________________________

  Alexander Barth

  Ocean Circulation Group
  University of South Florida
  College of Marine Science
  140 Seventh Avenue South
  St. Petersburg, Florida  33701
  USA

  Phone: +1-727-553-3508     FAX:   +1-727-553-1189

_______________________________________________________________


reply via email to

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