Dear Eduardo,
You did seem to recieve my previous email.
http://www.mail-archive.com/[email protected]/msg04566.html
The command to get the longitude value is:
LON = nc{'longitude'}(:);
(notice the curly brackets)
Cheers,
Alex
On Wed, Nov 17, 2010 at 10:07 AM, <[email protected]> wrote:
>
> Dear Alexander,
>
> Thanks for your octcdf package that is allowing me to to use octave in =
> my new job. Before I used mainly matlab.
> In the file example_netcdf.m that comes with your package there is an =
> example how to read a netcdf file:=20
>
>
> %---------------------------------------%
> % %
> % read data from a netcdf file %
> % %
> %---------------------------------------%
>
> nc =3D netcdf('example.nc','r'); % open netcdf =
> file example.nc in read-only
>
> n =3D nc('longitude'); % get the length =
> of the dimension longitude
>
> temp =3D nc{'temp'}(:); % retrieve the =
> netcdf variable temp
> temp_units =3D nc{'temp'}.units; % retrieve the =
> attribute units of variable temp
> temp_valid_range =3D nc{'temp'}.valid_range; % retrieve the =
> attribute valid_range of variable temp
>
> global_history =3D nc.history; % retrieve the =
> global attribute history
>
>
>
> However if you wish to get (not the length of the dimension longitude) =
> but the longitude values how do you proceed ?
> I tried octave3:34> LON =3D nc('longitude')(:) and get LAT =3D 360
> What I expected to obtain was LAT =3D-90 -89 -88 ... 89 90
>
> Thanks in advance for your help. My boss is asking for the pictures and =
> your help would be very much appreciated.
>
> Best regards
>
> Eduardo
> --
> Scanned by iCritical.
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> Octave-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/octave-dev
>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev