This document lists all host-side API functions available to Lua plugins.
Returns the Tycho version identifier (13100 = v13.1)
Sets the active observatory by identifier
Sets the active observatory by MPC code
Sets the active observatory by label
Returns the sum of two numbers
Returns the difference of two numbers
Sleeps for specified number of milliseconds
Prints a message to the log window
Displays a message box with the supplied text and caption
Returns the full path to the current script file
Returns the full path to the directory containing the current script
Quits the current Tycho instance
Returns the full path to the parent directory
Returns the number of loaded images
Spawns a new Tycho instance to run a specified script on a specified directory of images.
Loads the images into memory
Saves the images to disk
Performs cleanup of image processing
Resets image list
Adds output images
Performs calibration on the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
Path_Bias | string | — |
Path_Dark | string | — |
Path_Flat | string | — |
Mode_Bias |
integer |
SKIP=0,
SUPPLY=1
|
Mode_Dark |
integer |
SKIP=0,
APPLY=1,
AUTO=2
|
Mode_Flat |
integer |
SKIP=0,
APPLY=1,
AUTO=2
|
Calibrate_Dark | boolean | — |
Scale_Dark | boolean | — |
Calibrate_Flat | boolean | — |
Apply_Pseudo_Flat | boolean | — |
Apply_Normalization | boolean | — |
Apply_Fix_Pixels | boolean | — |
Apply_Fix_Lines | boolean | — |
Invert_Pixels | boolean | — |
Apply_Scale_ADU | boolean | — |
Scale_Factor_ADU | number | — |
Apply_Pedestal_ADU | boolean | — |
Pedestal_Amount_ADU | number | — |
Override_Output_Dir | boolean | — |
Path_Output_Dir | string | — |
Performs debayer on the active image set
| Name | Type | Values |
|---|---|---|
Pattern |
integer |
AUTO=0,
RGGB=1,
BGGR=2,
GBRG=3,
GRBG=4,
GRGB=5,
GBGR=6,
RGBG=7,
BGRG=8
|
Output |
integer |
COMBINED_LUMINANCE=0,
SPLIT_RGB=1
|
Mode |
integer |
SUPERPIXEL=0,
BILINEAR=1,
VNG=2
|
Override_Output_Dir |
boolean | — |
Path_Output_Dir |
string | — |
Performs resizing on the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
Desired_Width | integer | — |
Desired_Height | integer | — |
Crop_Top | integer | — |
Crop_Right | integer | — |
Crop_Bottom | integer | — |
Crop_Left | integer | — |
Bin_Amount | integer | — |
Horz_Divisions | integer | — |
Vert_Divisions | integer | — |
Unit_Percent | boolean | — |
Override_Output_Dir | boolean | — |
Path_Output_Dir | string | — |
Plate solves the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
Scale_Lower | number | — |
Scale_Upper | number | — |
Mode_Extraction |
integer |
AUTO=0,
STANDARD=1,
EXTENDED=2
|
Downsample |
integer |
AUTO=0,
F1=1,
F2=2,
F3=3,
F4=4,
F5=5,
F6=6,
F7=7,
F8=8,
F9=9,
F10=10
|
Reference_Image |
integer |
AUTO=0,
FIRST=1,
MIDDLE=2,
LAST=3
|
Only_Reference | boolean | — |
Narrow_Search | boolean | — |
Search_Radius | number | — |
Aligns the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
Interpolation |
integer |
BILINEAR=100,
BICUBIC=101,
LANCZOS3=102,
LANCZOS4=103,
LANCZOS5=104
|
Mode |
integer |
STARMATCH=100,
WCS=101
|
Downsample |
integer | — |
Dist_Corr |
boolean | — |
Override_Output_Dir |
boolean | — |
Path_Output_Dir |
string | — |
Performs drizzle on the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
Ref_Img |
integer |
AUTO=0,
FIRST=1,
MIDDLE=2,
LAST=3
|
Method |
integer |
AVERAGE=0,
MEDIAN=1
|
Output |
integer |
BY_FILTER=0,
COMBINE_ALL=1
|
Scale |
integer | — |
Override_Output_Dir |
boolean | — |
Path_Output_Dir |
string | — |
Evaluates the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
T1_PS | number | — |
T2_PS | number | — |
T1_SM | number | — |
T2_SM | number | — |
T1_IS | number | — |
T2_IS | number | — |
Update_FITS_Header | boolean | — |
Allow_Abort | boolean | — |
Abort_PS | boolean | — |
Abort_SM | boolean | — |
Abort_IS | boolean | — |
Target_SNR | number | — |
Override_Output_Dir | boolean | — |
Path_Output_Dir | string | — |
Injects targets into the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
Motion_Type |
integer |
SPEED=0,
PIXEL=1
|
Speed | number | — |
PA | number | — |
Pixels_X | integer | — |
Pixels_Y | integer | — |
Target_SNR | number | — |
Target_FWHM | number | — |
Unit_Pixels_FWHM | boolean | — |
Num_Tgts_X | integer | — |
Num_Tgts_Y | integer | — |
Spacing_X | integer | — |
Spacing_Y | integer | — |
Pct_Offset_X | number | — |
Pct_Offset_Y | number | — |
Simulate_Streak | boolean | — |
Override_Output_Dir | boolean | — |
Path_Output_Dir | string | — |
Shuffles the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
Override_Output_Dir | boolean | — |
Path_Output_Dir | string | — |
Merges the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
MaxDeltaTimeInSec | number | — |
Override_Output_Dir | boolean | — |
Path_Output_Dir | string | — |
Returns the full path to the directory containing the active image set
Returns the full path to the image associated with the given zero-based index
Attaches ephemeris to the active image set based on the supplied observations file
Available inputs:
| Name | Type | Values |
|---|---|---|
Path_Observations_File | string | — |
Applies Larson-Sekanina filter to the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
PluginName | string | — |
PluginID | integer | — |
val_ls_mode | string | — |
val_radial_shift | number | — |
val_rotational_shift | number | — |
val_auto_center | boolean | — |
val_pos_center_x | integer | — |
val_pos_center_y | integer | — |
Return X coordinate of current crosshair location
Return Y coordinate of current crosshair location
Resets the current view in the Image Viewer
Operates the synthetic tracker on the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
Sensitivity_Level | integer | — |
MinImageShiftInPixels | number | — |
AutoTimeoutInMinutes | number | — |
MinMovementInPixels | number | — |
MaxObjStreak | number | — |
Force_Granularity | boolean | — |
Granularity_Pct | integer | — |
Enable_ClusterOperation | boolean | — |
Enable_Multithreading | boolean | — |
NumThreads | integer | — |
Limit_Speed | boolean | — |
Speed_Start | number | — |
Speed_Stop | number | — |
Limit_PA | boolean | — |
PA_Start | number | — |
PA_Stop | number | — |
Crop_Sch | boolean | — |
Crop_Amount | integer | — |
Operates the FAST tracker on the active image set
Available inputs:
| Name | Type | Values |
|---|---|---|
Sensitivity_Mode |
integer |
REGULAR=0,
MAXIMUM=1
|
Limit_Speed | boolean | — |
Speed_Start | number | — |
Speed_Stop | number | — |
Limit_PA | boolean | — |
PA_Start | number | — |
PA_Stop | number | — |
Returns the number of tracks identified from the synthetic tracker
Returns the number of tracks identified from the FAST tracker
Performs the verification step
Performs the confidence computation step
Available inputs:
| Name | Type | Values |
|---|---|---|
Min_Track_Confidence |
integer |
UNKNOWN=0,
NONE=1,
LOW=2,
MED=3,
HIGH=4
|
Num_Tracks_To_Verify |
integer | — |
Loads known objects for the returned track list
Available inputs:
| Name | Type | Values |
|---|---|---|
Match_Type_FAST |
integer |
ART_SATS=0,
ASTEROIDS=1
|
Creates observations for each candidate track
Available inputs:
| Name | Type | Values |
|---|---|---|
Create_Snapshots | boolean | — |
Contrast_Level |
integer |
0 = default,
<0 less contrast,
>0 more contrast
|
Intensity_Level |
integer |
0 = default,
<0 less intensity,
>0 more intensity
|
Saves the track list
Saves the zero motion stacked image
Generates completion files for the output directory
Returns a KVP handle for the specified plugin label ID