22 Jun 2011 03:19 AM |
|
Dear All,
I am trying to convert an integer file to floating point using the band math equation "float(b1)/1000"
However when I try to apply this to the whole file I get the following error:
"new_math_doit: And error has occurred during processing
Error: Attempt to subscript STR with PTR is out of range
The result may be invalid"
The file is invalid and ENVI crashes out.
I have searched for this error but cannot find out what it refers to. Initially I thought that this could be due to zero values in the data however my colleague has identical data (same provider, same sensor, different geographical area) and this equation works for him with zero values in the file.
Any help would be most appreciated, thanks for reading.
Rebecca
|
|
|
|
MariM Veteran Member
Posts:2396  
22 Jun 2011 11:29 AM |
|
That is not a typical band math error and your equation is very simple. I think the problem may be elsewhere. Do you have custom code that you have written or been given to you that is in the \envixx\save_add directory? Do you link to outside libraries? I could be that an external IDL program (.pro or .sav) is being compiled when you launch ENVI and it may be taking precedence over the standard IDL routines.
|
|
|
|
Deleted User New Member
Posts:  
23 Jun 2011 07:29 AM |
|
Hi
Thanks for your thoughts. I did have two add-ins (lidar_tools and skyview) which I have removed from the save_add folder. Unfortunately having restarted ENVI without these I still get the same error as before with the band math. The only other .sav files I have on the computer are SPSS files.
Strangely I get the same error on two separate versions of ENVI 4.7, at home (64bit Windows 7) and at work (64bit linux). The work version has no add-ons. Does this indicate that the .bil files themselves might be the problem?
Thanks again for your time,
Rebecca
|
|
|
|
MariM Veteran Member
Posts:2396  
23 Jun 2011 08:24 AM |
|
I suppose it is possible. I think you should contact ITT Technical Support directly so that they might be able to test your files.
|
|
|
|
Deleted User New Member
Posts:  
23 Jun 2011 08:43 AM |
|
Will do. Thanks!
|
|
|
|