comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » behavior of arrays
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: behavior of arrays [message #15576 is a reply to message #15435] Thu, 20 May 1999 00:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Pavel Romashkin wrote:

> I do not quite realize what is the point in this exercise. FLTARR(10,1)
> is an array with 10 columns and 1 row (which all is meaningful only in
> the direction of array operations which in IDL is row-wise). Therefore,
> seems to me that FLTARR(10, 1) is the same as FLTARR(10) to begin with
> (unlike FLTARR(1, 10)). If you anticipate expanding the matrix, its easy
> to do by using TRANSPOSE and subscripts. I have never experienced a
> problem with losing or mixing up dimensions, although most of my data
> are matrices. In the example below, I see no loss of information in the
> transition from d to c. If you defined more than 1 row, C would be 2D
> in the last statement.
> Cheers,
> Pavel
>

The problem I have is
if I like to write a field (10,1) to a netCDF File only one dimension is
defined
instead of two because size returns only one dimension.

At the moment I have to define _fillValue in the second row to get two
dimensions.


R.Bauer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image thresholding
Next Topic: Re: 3D Puzzle

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 08:50:27 PDT 2025

Total time taken to generate the page: 0.80449 seconds