Real Number on PVWAVE [message #17901] |
Wed, 17 November 1999 00:00  |
daniele.monti
Messages: 3 Registered: November 1999
|
Junior Member |
|
|
Dear All,
I'm in big trouble with PV_WAVE.
I have to read a very simple file like this:
37122.00002
37122.00004
37122.00006
...
...
...
...
How can I read numbers with more then six or eight digits?
I tried using Double Precision format but I didn't get any positive
result.
Thank you in advance
Daniele
|
|
|
|
Re: Real Number on PVWAVE [message #17928 is a reply to message #17901] |
Fri, 19 November 1999 00:00   |
Tim Cross
Messages: 3 Registered: November 1999
|
Junior Member |
|
|
R. Kyle Justice wrote:
>
> ...
>
> I have only used PV-Wave (for about 6 years now). Most
> of the posts to this newsgroup are fairly IDL specific so
> I feel a special need to "defend" PV-Wave when the need
> arises ;-P I fear that our numbers are dwindling!
In fact, our numbers are growing, and at a pretty rapid clip.
However, most of the PV-WAVE user discussion takes place on the
VNI Mailing List Forum, to which you can subscribe by sending
a message to majordomo@boulder.vni.com containing the the
following in the body of the message:
subscribe pv-wave my@email.address
> From what I can tell, the DC_ functions are one of the few
> features in PV-Wave that is "superior" to IDL.
IMHO there are a lot of good reasons to use PV-WAVE. This
is not the place to trot out a list.
> As far as documentation goes, I like PV-Wave's fairly well.
> The only problem is it takes forever to get a new set of hardcopy
> docs whenver a new version comes out. I *despise* online
> documentation!
Well, we could hold back the new product releases until
the documents are printed, but that would just annoy the
people who don't mind online documentation :-).
Tim
Prod Dev Mgr, Visual Numerics Inc.
--
Tim Cross timc@boulder.vni.com 303-245-5393
Visual Numerics, Inc.
5775 Flatiron Parkway, Suite 220
Boulder CO 80301 USA
http://www.vni.com
My opinions etc.
|
|
|
Re: Real Number on PVWAVE [message #17941 is a reply to message #17901] |
Fri, 19 November 1999 00:00   |
rkj
Messages: 66 Registered: February 1996
|
Member |
|
|
David Fanning (davidf@dfanning.com) wrote:
: R. Kyle Justice (rkj@dukebar.crml.uab.edu) writes:
: > Just thought I would defend DC_READ_FREE. It is one
: > of the most useful routines in all of PV-Wave. It does
: > have several quirks but I can't even imagine reading
: > column data the old OPENR way.
: >
: > I have never messed with READ_IMAGE (nor do I care to)
: > so I really shouldn't attempt to comment on it.
: Kyle, you are reading WAY too much into my comments.
: You aren't secretly working for RSI, are you?
: I meant, of course, that both programs are of the
: very highest quality, but they don't always do
: what you might have hoped they would do.
: Of course, one could always read the documentation. :-)
: Cheers,
: David
: --
Secretly working for RSI? I have never even used IDL ;-)
I have only used PV-Wave (for about 6 years now). Most
of the posts to this newsgroup are fairly IDL specific so
I feel a special need to "defend" PV-Wave when the need
arises ;-P I fear that our numbers are dwindling!
From what I can tell, the DC_ functions are one of the few
features in PV-Wave that is "superior" to IDL. But I could
be wrong about this because, like I said, I have never really
used IDL (and, at the moment, ignorance is bliss). Most of
what I know of IDL's specific features I have gleaned from
reading this newsgroup.
As far as documentation goes, I like PV-Wave's fairly well.
The only problem is it takes forever to get a new set of hardcopy
docs whenver a new version comes out. I *despise* online
documentation!
Kyle
|
|
|
|
|
Re: Real Number on PVWAVE [message #17976 is a reply to message #17901] |
Thu, 18 November 1999 00:00   |
daniele.monti
Messages: 3 Registered: November 1999
|
Junior Member |
|
|
On 18 Nov 1999 09:47:46 GMT, "Adrian Clark" <adrian.clark@gecm.com>
wrote:
> Dear Daniele,
>
> It looks to me as though WAVE is interpreting your numbers as floats and
> then truncating them. Did you specify your variable as a double before
> reading? I suspect that if this is not specified, float is the expected
> default when a '.' is found in a number. I got the following to work:
>
> wave> DELVAR,varArray
> make sure varArray doesn't already exist as a float from previous attempts!
> wave> varArray=DBLARR(1)
> tell wave to expect doubles
> wave> status=DC_READ_FREE('filename',varArray,/resize)
> /resize will resize varArray to cope with amount of data present
> wave> PRINT,varArray,Format="(D11.5)"
> print it in whatever format seems appropriate
>
> HTH
>
> Yours,
> Adrian
>
Thank you, thank you very much !!!
It works !!!
Cheers,
Daniele
|
|
|
|
|
Re: Real Number on PVWAVE [message #18102 is a reply to message #17901] |
Mon, 29 November 1999 00:00  |
rkj
Messages: 66 Registered: February 1996
|
Member |
|
|
Andrew J Leaper (andrew@leaper44.freeserve.co.uk) wrote:
: Adrian Clark wrote:
: > Hey, we're out here!
: >
: > We just don't get to subscribe to newsgroups that much. It's must be the
: > result of one of the following:
: >
: > a) We're all so clever and PV-Wave is so straight forward, that we never
: > need to ask questions on newsgroups
: > b) We're all so dumb and PV-Wave is so obscure and buggy that we're so
: > busy trying to get things to work that we never get round to asking
: > questions on the NGs.
: >
: > Which do you reckon it is? ;-))
: >
: >
: I think that I would prefer to believe (a)...
Then you must not be developing "elegant" user-interfaces through
direct calls to the Motif toolkit via the Wt functions. This is
the epitome of "obscure." The only semi-redeeming aspect of this
is that you feel like a "real programmer" because you regularly
consult the O'Reilly Motif Manuals (aka the Sacred Tomes).
But even when you have found the little-known resource that does just
what you want, there is only a 50/50 chance that setting it will have
any effect. So after pulling your hair out for hours, you decide to
"settle" for a "just ok" interface using the Ww layer. It's too bad IDL
users don't have the "joy" of going through this process since they
don't have the illusion of so many interface design choices :-)
Kyle
: > Adrian
: >
: --
: Andrew Leaper
: andrew@leaper44.freeserve.co.uk
: andrew.leaper@gecm.com
Kyle
|
|
|
Re: Real Number on PVWAVE [message #18103 is a reply to message #17901] |
Mon, 29 November 1999 00:00  |
Andrew J Leaper
Messages: 1 Registered: November 1999
|
Junior Member |
|
|
Adrian Clark wrote:
> Hey, we're out here!
>
> We just don't get to subscribe to newsgroups that much. It's must be the
> result of one of the following:
>
> a) We're all so clever and PV-Wave is so straight forward, that we never
> need to ask questions on newsgroups
> b) We're all so dumb and PV-Wave is so obscure and buggy that we're so
> busy trying to get things to work that we never get round to asking
> questions on the NGs.
>
> Which do you reckon it is? ;-))
>
>
I think that I would prefer to believe (a)...
> Adrian
>
--
Andrew Leaper
andrew@leaper44.freeserve.co.uk
andrew.leaper@gecm.com
|
|
|