Re: envi_evf_define_add_record problem (possible output format/rounding issue) [message #56324] |
Wed, 10 October 2007 16:49 |
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
|
|
|