Re: "standard" ASCII file format [message #10552] |
Tue, 16 December 1997 00:00 |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
Thomas Egi wrote:
>
> Hi everyone,
>
> in the field of electric circuit simulation there is an "industriy
> standard" for simulation output called CSDF (common simulation data
> format), which can be read by all of the visualization tools. Is there a
> corresponding "de facto standard file format" for data import in the
> world of pv-wave or IDL? And if so, where can I get information on that?
>
> Thank you for any hints
>
> Thomas
The IDL documentation contains several READ... routines supporting
various file formats. Basically you can read ASCII and binary data,
and there are routines to handle in/and output of net-CDF, CDF and HDF
format (I am not familiar with those personally though). Also, there are
several image formats that can be handled,e.g. GIF, JPEG, TIFF.
If you just start using IDL you may have some difficulties reading data
(I guess that happens to everyone). If you are dealing with ASCII files
you can try my readdata.pro program which you can download from the
webpage below. This allows you to skip arbitrary amounts of header lines
and recognize variable names if you tell it where to find them. However,
it only deals with numerical data - mixed type stuff is somewhat
trickier, but (as David pointed out): it can be done.
Regards,
Martin.
--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Earth&Planetary Sciences, Harvard University
186 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA
phone: (617)-496-8318
fax : (617)-495-4551
e-mail: mgs@io.harvard.edu
IDL-homepage: http://www-as.harvard.edu/people/staff/mgs/idl/
------------------------------------------------------------ -------
|
|
|
Re: "standard" ASCII file format [message #10556 is a reply to message #10552] |
Tue, 16 December 1997 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Thomas Egi (egith@cs.tu-berlin.de) writes:
> in the field of electric circuit simulation there is an "industriy
> standard" for simulation output called CSDF (common simulation data
> format), which can be read by all of the visualization tools. Is there a
> corresponding "de facto standard file format" for data import in the
> world of pv-wave or IDL? And if so, where can I get information on that?
There is no "standard" IDL or PV-Wave data file format.
If you have data, you can read it. Period. (Well, all right,
occasionally--for the odd data format--you have to muck
around a bit. But it *always* gets read in.) That's what
make IDL and PV-Wave so nice to work with.
If you are thinking of file output that can be read by other
packages, then I think the de facto standard may just be
a flat binary file stored in XDR format so that it is portable
across machine architectures. Be sure to convert integers to
longs if you want to use the data in your C or Fortran
applications.
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|