[Spice_discussion] BADSUBSCRIPT error and the size of voxlst
matrix in the alpha_dsk subsystem
Naru Hirata
naru at u-aizu.ac.jp
Sat Apr 21 00:36:03 PDT 2012
Hi,
I found solution by myself just after sending the following mail ;-).
I used a dsklib_c.a file included in the package on the NAIF ftp site.
By compiling the library from source in my local environment, my problem is solved.
Sorry for disturbing ML.
Best,
Naru
--
Naru HIRATA
ARC-Space, CAIST
School of Computer Science and Engineering,
Univ. of Aizu
Ikki-machi, Aizu-Wakamatsu City,
Fukushima 965-8580, JAPAN
TEL: +81-242-37-2713 FAX: +81-242-37-2731
e-mail: naru at u-aizu.ac.jp
On 2012/04/21, at 15:10, Naru Hirata wrote:
> Dear SPICE folks,
>
> I'm writing a tool with alpha_dsk subsystem, and meet an error that cannot control
> by erract_c().
>
> Occasionally, I meet SPICE(NOTINGRID) errors during geometry calculations. I intend to skip
> the error with the RETURN action of erract_c(), and it seems to work.
>
> However, another error SPICE(BADSUBSCRIPT) immediately follows, and then my tool is aborted.
>
> Here is the error message I get.
>
>> ================================================================================
>>
>> Toolkit version: N0064
>>
>> SPICE(NOTINGRID) --
>>
>> Ray origin not in voxel grid.
>>
>> A traceback follows. The name of the highest level module is first.
>> dskx02_c --> DSKX02 --> XDDA
>>
>> ================================================================================
>> SPICE(BADSUBSCRIPT): Subscript out of range on file line 967, procedure "dskx02". Attempt to access element 150001 of variable "voxlst".
>>
>> A traceback follows. The name of the highest level module is first.
>> dskx02_c->DSKX02->XDDA
>> Abort trap: 6
>
> In dskx02.c, a matrix voxlst[150000] is defined. Is it possible to expand the size of this
> matrix? Is there any items to be care together with the matrix voxlst?
>
> Additional info: the SPICE(NOTINGRID) error was common when I used the SPICE platelib, it
> could skip with the RETURN action of erract_c(). My tool is migrated from the platelib
> to the alpha_dsk subsystem.
>
> Sincerely,
> Naru
> --
> Naru HIRATA
> ARC-Space, CAIST
> School of Computer Science and Engineering,
> Univ. of Aizu
> Ikki-machi, Aizu-Wakamatsu City,
> Fukushima 965-8580, JAPAN
> TEL: +81-242-37-2713 FAX: +81-242-37-2731
> e-mail: naru at u-aizu.ac.jp
>
>
>
>
>
>
> _______________________________________________
> Spice_discussion mailing list
> Spice_discussion at naif.jpl.nasa.gov
> http://naif.jpl.nasa.gov/mailman/listinfo/spice_discussion
More information about the Spice_discussion
mailing list