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

Home » Public Forums » archive » Re: 3*0.0 in FORMAT free I/O
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: 3*0.0 in FORMAT free I/O [message #3871] Wed, 05 April 1995 00:00
Fergus Gallagher is currently offline  Fergus Gallagher
Messages: 41
Registered: January 1995
Member
brooker@toka.ireq-ccfm.hydro.qc.ca wrote:
> Folks,

> I have an ASCII output file produced by a FORTRAN program running on one
of
> the Livermore CRAYs. The output was written with FREE FORMAT format. One
of the
> variables has 0.0 as the value for its first three elements. When you
> look at the file at the appropriate place, instead of seeing "0.0, 0.0,
0.0"
> you see "3*0.0"
>
> Has anybody ever ran into this "*" format?
>

This is standard FORTRAN.

You can even have a line like

3*,4*2.0,4,5,6

read(*) a ! with a(10) = real, say

Then the first three elements of a will be left unchanged.

The n* is called a "null input field": the above is equivalent to

,,,2.0,2.0,2.0,4,5,6

but IDL won't understand that either.

If this is likely to be a common problem, perhaps you should write a PERL
procedure to translate the data.


Fergus


--

=================================================
| Fergus Gallagher |
| Remote Sensing Applications Development Unit |
| British National Space Centre |
| Monks Wood |
| Huntingdon PE17 2LS / UK |
| |
| F.Gallagher@nerc.ac.uk |
| http://uh.nmt.ac.uk/bnsc/fgg.html |
=================================================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Skew-T, Log(P) Diagram
Next Topic: draw maps

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

Current Time: Fri Oct 10 19:19:09 PDT 2025

Total time taken to generate the page: 0.16192 seconds