envi_evf_define_add_record problem (possible output format/rounding issue) [message #56330] |
Wed, 10 October 2007 13:26 |
Jonathan Greenberg
Messages: 91 Registered: November 2002
|
Member |
|
|
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
|
|
|