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

Home » Public Forums » archive » Re: envi_evf_define_add_record problem (possible output format/rounding issue)
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: envi_evf_define_add_record problem (possible output format/rounding issue) [message #56324] Wed, 10 October 2007 16:49
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Jonathan Greenberg wrote:
> I'm passing an array of UTM points ("COOR_POINTS"), double numerical
> precision, to envi_evf_define_add_record to create an EVF file. However,
> I'm noticing there seems to be some rounding going on in my final EVF file,
> and I'm getting duplicated nodes (I'm outputting a polygon ellipse with 360
> nodes per polygon). How do I get the output statement to stop rounding off
> to, what appears to be, 1 or 2 decimal places?
>
> I know this forum isn't specifically for ENVI, but I'm thinking the problem
> is that when I pass the array to the envi function, I need to specify some
> output format for the double numbers for it to work properly (although I'm
> not sure what this is) -- when I "print,COOR_POINTS" array, it displays the
> coordinates to one or two decimals (and some appear replicated), although
> when I do a "print,COOR_POINTS[A,0] eq COOR_POINTS[B,0]", I get a 0 (column
> 0 indicates the x-position, and displays as the same number) -- A and B
> represent two nodes which should be marginally different, but appear as the
> exact same x and y pos in the output evf file and also using a print
> command.
>
> --j
>

Just in case...
the help file says: The data type of the XY pairs (or nodes) that define
the vector record will automatically be converted into the data type of
the EVF file that was defined in the call to ENVI_EVF_DEFINE_INIT.

sooo, have you created the EVF file as double??

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Conversion floating point to byte or integer
Next Topic: boost::multi_array

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

Current Time: Fri Oct 10 01:18:51 PDT 2025

Total time taken to generate the page: 1.11875 seconds