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

Home » Public Forums » archive » Re: Openw and printf
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: Openw and printf [message #56601 is a reply to message #56596] Sun, 04 November 2007 05:54 Go to previous messageGo to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Fri, 2 Nov 2007, StevenM wrote:

> Hello Everybody,
>
> I have a 3D array [x,y,z] and I am trying to write one column to a
> file. My problem arises when I try to export the z dimension, the
> output file has gaps between each data point, in the other dimensions
> there are no gaps. Can anyone help me with how to get rid of the
> gaps.
>
> thanks
>
> Steven
>
> ps the output data looks like this
>
> 4
>
> 6
>
> 7
>
> 8
>
> when I would like
>
> 4
> 6
> 7
> 8
>
>

REFORM() will solve this:


IDL> a=indgen(2,3,4)
IDL> print, a[*,0,0]
0 1
IDL> print, a[0,*,0]
0
2
4
IDL> print, a[0,0,*]
0

6

12

18
IDL> print, reform(a[0,0,*], 1,4)
0
6
12
18



regards,
lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: FLAASH Atmospheric Module
Next Topic: PROBLEM WITH FEDORA 7 and ENVIZOOM

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

Current Time: Sun Oct 12 07:19:48 PDT 2025

Total time taken to generate the page: 1.28315 seconds