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

Home » Public Forums » archive » Re: streaming into Excel?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: streaming into Excel? [message #67374] Tue, 28 July 2009 20:32
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
And if you are on a mac, you can follow that with (including the
dollar sign, back-slash and all spaces!):

$open -a Microsoft\ Excel my_summed_file.csv

G
Re: streaming into Excel? [message #67377 is a reply to message #67374] Tue, 28 July 2009 13:54 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Barbara writes:

> ok I've been looking at the code for write_csv, and i don't understand
> how to use it. could you possibly show me an example? I'm trying to
> open a file, master_summed (its a sum of the lines in my master flat).
> How would I enter this into the command line?

I would think like this:

IDL> Write_CSV, 'my_summed_file.csv', master_summed

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: streaming into Excel? [message #67378 is a reply to message #67377] Tue, 28 July 2009 13:39 Go to previous message
Barbara is currently offline  Barbara
Messages: 17
Registered: July 2009
Junior Member
On Jul 28, 12:04 pm, David Fanning <n...@dfanning.com> wrote:
> Barbara writes:
>> To analyze data, my professor would like me to be able to take data
>> from an array and be able to have it show up in Excel. I know I can
>> print the array to get all the numbers, and can copy and paste it into
>> Excel, but that seems too tedious. Is there a way to stream the
>> information to excel?
>
> If you are using IDL 7.1, you can use WRITE_CSV to
> write a comma separated value file that can be opened
> in Excel.
>
> If you are using a version of IDL earlier than that,
> you can try WRITE_SYLK, which will do something similar.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

ok I've been looking at the code for write_csv, and i don't understand
how to use it. could you possibly show me an example? I'm trying to
open a file, master_summed (its a sum of the lines in my master flat).
How would I enter this into the command line?
Re: streaming into Excel? [message #67379 is a reply to message #67378] Tue, 28 July 2009 12:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Barbara writes:

> To analyze data, my professor would like me to be able to take data
> from an array and be able to have it show up in Excel. I know I can
> print the array to get all the numbers, and can copy and paste it into
> Excel, but that seems too tedious. Is there a way to stream the
> information to excel?

If you are using IDL 7.1, you can use WRITE_CSV to
write a comma separated value file that can be opened
in Excel.

If you are using a version of IDL earlier than that,
you can try WRITE_SYLK, which will do something similar.

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: streaming into Excel?
Next Topic: jpeg2000

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

Current Time: Wed Oct 08 19:56:45 PDT 2025

Total time taken to generate the page: 0.00597 seconds