You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently APIs returning stars return the canonical star name, which is set by SIMBAD. Users must build a list of names of their preferred alias (e.g. HD number). For example:
# Fetch Cycle Data from sunstardbresult=db.fetch_data_table('Baliunas1995', ['S_mean', 'activity_class', 'Pcyc', 'Pcyc2'], meta={'Pcyc':'FAPGrade'}, nulls=True)
# Add an HD number columnhds= []
hdnums= []
forstarinresult['star']:
ifstar=='Sun':
hd='Sun'num=0else:
hd=db.fetch_star_alias(name=star, type='HD')
num=int(re.match('^HD (\d+)', hd).group(1))
hds.append(hd)
hdnums.append(num)
result['HD'] =hdsresult['Sort'] =hdnums
(Here the 'Sort' column allows the astropy.table.Table to sort the HD numbers in numerical, not lexical, order.)
Instead the user should be able to specify a list of preferred alias types. API example:
# Fetch Cycle Data from sunstardbresult=db.fetch_data_table('Baliunas1995', ['S_mean', 'activity_class', 'Pcyc', 'Pcyc2'], meta={'Pcyc':'FAPGrade'}, nulls=True, star_alias=['HD', 'GJ'])
If aliases are not available, the default can be the canonical identifier (star.name in the DB)
The text was updated successfully, but these errors were encountered:
Currently APIs returning stars return the canonical star name, which is set by SIMBAD. Users must build a list of names of their preferred alias (e.g. HD number). For example:
(Here the 'Sort' column allows the
astropy.table.Table
to sort the HD numbers in numerical, not lexical, order.)Instead the user should be able to specify a list of preferred alias types. API example:
If aliases are not available, the default can be the canonical identifier (
star.name
in the DB)The text was updated successfully, but these errors were encountered: