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

Home » Public Forums » archive » format codes
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: format codes [message #93676 is a reply to message #93671] Wed, 28 September 2016 01:36 Go to previous messageGo to previous message
Markus Schmassmann is currently offline  Markus Schmassmann
Messages: 129
Registered: April 2016
Senior Member
On 09/27/2016 06:19 PM, sayani ghosh wrote:
> When I am using (D), some kind of overflow is occurring as a result IDL is printing ***************.
>
> I have realised IDL is reading the data as 2.3568e+007.. I can't seem to work around it.

Try using format='(e12.4)'
or with more digits format='(e14.6)'
where the first number gives the width of the column and the second the
number of digits after .

@ wayne: e11.5 doesn't work on windows, because it uses 3 digits in the
exponent

Depending on how large the numbers you want to print, something like
format='(d16.6)'
might also be an option. if you get ****************, then you have to
increase the width, e.g. format='(d20.6)'

More details you can find under [1],

I hope that helps, Markus

[1]:
http://www.harrisgeospatial.com/docs/format_codes.html#files _2839720996_168654
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to read nc variable partly?
Next Topic: high rise building extraction from satellite image

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

Current Time: Wed Oct 08 15:07:07 PDT 2025

Total time taken to generate the page: 0.00452 seconds