Re: Problem with the astron database on Mac OS X [message #78855 is a reply to message #78767] |
Wed, 21 December 2011 10:00  |
rklein
Messages: 5 Registered: June 2009
|
Junior Member |
|
|
I am using the Oct 2010 version which seems to be current.
Thanks,
Randolf
On Dec 21, 8:13 am, Russell <rryan....@gmail.com> wrote:
> I'm very familiar with the Astrolib, but not so much with the database
> procedures. Can you confirm which instance of the routines that
> you're using, maybe issuing something like
>
> findpro,'dbhelp' or 'dbopen', etc. Just to make sure that you don't
> accidentally have an old version floating around somewhere?
>
> Russell
>
> On Dec 20, 8:20 pm, rklein <r_kl...@berkeley.edu> wrote:
>
>
>
>
>
>
>
>> Hi,
>
>> I am using the database routines from the IDL Astronomy User's
>> library: (http://idlastro.gsfc.nasa.gov/contents.html#C3) on Mac OS X,
>> IDL version 7.1.
>
>> The following happens when I try to open two linked databases (the
>> yale_bs and yale_bs_rmks databases are available athttp://idlastro.gsfc.nasa.gov/ftp/zdbase/):
>
>> IDL> astrolib
>> % Compiled module: ASTROLIB.
>> % ASTROLIB: Astronomy Library system variables have been added
>> IDL> dbopen,'yale_bs_rmks,yale_bs'
>> % Compiled module: DBOPEN.
>> % Compiled module: ZPARCHECK.
>> % Compiled module: STRSPLIT.
>> % Compiled module: DBCLOSE.
>> % Compiled module: FIND_WITH_DEF.
>> % Compiled module: FIND_ALL_DIR.
>> % Compiled module: BREAK_PATH.
>> Attempt to subscript SBYTE with I is out of range.
>> IDL> dbhelp
>> % Compiled module: DBHELP.
>> % Compiled module: DB_INFO.
>> % Compiled module: TEXTOPEN.
>> % Compiled module: FILEPATH.
>> % Compiled module: DB_ITEM_INFO.
>> ENTRY HR CATEGORY REMARKS SPARES
>
>> ------- Indexed Items ------
>> HR
>
>> ----- Pointer Information ----
>> YALE_BS_RMKS.HR ---> YALE_BS
>
>> data base contains 9188 entries
>> % Compiled module: TEXTCLOSE.
>> IDL>
>
>> As you can see, only one is opened despite the two being linked.
>
>> I also noticed that using "/EXTERNAL" with dbcreate does not work on
>> Mac OS.
>
>> Does anyone has an idea what is going wrong. Is it an IDL bug on Mac
>> OS which treats binary files unexpectedly? Or is there an invalid
>> assumption in the database code?
>
>> Thanks and happy holidays.
>> Randolf
|
|
|