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

Home » Public Forums » archive » Re: two issues with julian dates
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: two issues with julian dates [message #54804] Thu, 12 July 2007 13:25 Go to previous message
Josh is currently offline  Josh
Messages: 21
Registered: June 2007
Junior Member
On Jul 12, 1:51 pm, David Fanning <n...@dfanning.com> wrote:
> Josh writes:
>> First of all, thank you educating me about this. I read a number of
>> your articles on the precision of numbers, and I've finally got the
>> double precision values I was seeking. However, when I try to put
>> them on an x-axis, they appear to revert back to single precision
>> values. The array of values are definitely double precision, and I
>> set xtickformat='(F20.5)', but sadly the labels appear to be (single)
>> floats disguised in the F20.5 format, and the data being plotted is
>> clumped into groups instead of nice and continuous (perhaps because it
>> sees big gaps in the x values due to their single precision?). I am
>> hoping this is a minor step I've missed in the keywords to PLOT.
>
> The more I think about this, the more likely it seems to me
> that the problem comes from converting doubles to strings.
> Have you read this article?
>
> http://www.dfanning.com/misc_tips/dbl_to_str.html
>
> You might well have to write your own tick formatting function
> to make this work the way you want it to work. It's just hard
> to tell without seeing what you are doing.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")


As far as I know, the only conversion I've done is actually to convert
strings to doubles. The input file is read as a big long string, then
the pieces are broken out and some (these) are converted to doubles.
I've sent you an email with some of my code. Perhaps it will help.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLgrAxis determining character dimensions
Next Topic: Array concatenation

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

Current Time: Fri Oct 10 18:19:37 PDT 2025

Total time taken to generate the page: 0.95660 seconds