Change in ENVI get_tile procedure? [message #9972] |
Thu, 18 September 1997 00:00 |
jmcfee
Messages: 17 Registered: August 1995
|
Junior Member |
|
|
Did RSI change the envi_get_tile procedure in going from V2.5 to V2.6? I am using an old program that I wrote in envi V2.5 on some new data and it is bombing (subscript out of range). So, I tried it on old data that it has worked on successfully under 2.5. I now get the same error as the new data!
Specifically,
I loop thru all tiles using
tile_data = float(envi_get_tile(tile_id, i, ys=ys, ye=ye, band_index=bi)
My data is BIP 2 word integer (I've checked this)
Under V2.5, tile_data was being returned as
float(number_of_bands, number_of_samples), which makes sense if it's BIP
Now under V2.6, it's reversed, i.e., tile_data comes back as:
float(number_of_samples, number_of_bands)
My program and data haven't chnaged. Has something changed in envi_get_tile or am I missing something obvious?
Details on tiles in the manual are sketchy to say the least.
Thanks
--
John E. McFee -- Usual disclaimer applies.
Threat Detection Group -- "They can kill you -
Defence Research Est. Suffield -- but they're not allowed to eat you."
John.McFee@dres.dnd.ca -- - Chuck Jones
--
Dr. John E. McFee
Defence Research Establishment Suffield
Box 4000, Medicine Hat, AB Canada T1A 8K6
(403) 544-4739 (voice) 544-4704 (fax)
|
|
|