grammar.json 8.16 KB
{
	"Telescope" : {
		"set": [
			{
				"name": "COORD_RADEC",
				"label": "Upload R.A., Dec. to the mount",
				"input_label": [
					{
						"R.A.":[15, "Angle", "Right Ascension"], 
						"Dec.":[15, "Angle", "Declination"],
						"Equ.":[15, "Date", "Equinox"]
					}
				],
				"help": "Upload R.A., Dec. to the mount. Use TELESCOPE DO START to slew the mount. Angle stands for various angle formats (12:05:17.3, 12 05 17.3, 12h05m17.3s, 181.322083333). Date stands for various date formats (J2000, 2025-06-21T00:00:00)"
			},
			{
				"name": "COORD_HADEC",
				"label": "Upload apparent hour angle declination to the mount",
				"input_label": [
					{
						"H.A.":[15, "Angle", "Hour angle"],
						"Dec.":[15, "Angle", "Declination"]
					}
				],
				"help": "Upload H.A., Dec. to the mount. Use TELESCOPE DO START to slew the mount. Angle stands for various angle formats (12:05:17.3, 12 05 17.3, 12h05m17.3s, 181.322083333)."
			},
			{
				"name": "COORD_ALTAZ",
				"label": "Upload apparent azimuth and elevation to the mount",
				"input_label": [
					{
						"Az.":[15, "Angle", "Azimuth"],
						"Elev.":[15, "Angle", "Elevation"]
					}
				],
				"help": "Upload Az., elev. to the mount. Azimuth=0 at South. Use TELESCOPE DO START to slew the mount."
			},
			{
				"name": "DRIFT_HADEC",
				"label": "Upload the drift motion parameters after slewing to the mount",
				"input_label": [
					{
						"dH.A.":[15, "deg/sec", "Hour angle velocity"],
						"dDec.":[15, "deg/sec", "Declination velocity"]
					}
				],
				"help": "Upload H.A., Dec. to the mount. Put dH.A. = diurnal for a diurnal drift. Use TELESCOPE DO DRIFT_ON to drift the mount."
			},
			{
				"name": "ROTATOR_ANGLE",
				"label": "Set the value angle of the next rotation",
				"input_label": [
					{
						"Parallactic angle":[15, "degrees", "Parallactic angle"]
					}
				],
				"help": "Set the value angle of the next rotation. Use TELESCOPE DO ROTATOR_GOTO to slew the rotator."
			}
		],
		"get": [
			{
				"name": "INFORMATIONS",
				"label": "Return information from the mounts",
				"input_label": [],
				"help": "Return information from the mounts."
			},
			{
				"name": "COORD_RADEC",
				"label": "Download R.A., Dec. from the mount",
				"input_label": [],
				"help": "Download R.A., Dec. from the mount."
			},
			{
				"name": "COORD_HADEC",
				"label": "Download R.A., Dec. from the mount",
				"input_label": [],
				"help": "Download R.A., Dec. from the mount."
			},
			{
				"name": "COORD_ALTAZ",
				"label": "Download Azimuth and elevation from the mount",
				"input_label": [],
				"help": "Download Azimuth and elevation from the mount."
			}
		],
		"do": [
			{
				"name": "EVAL",
				"label": "Evaluate a native command of the mount",
				"input_label": [],
				"help": "Evaluate a native command of the mount."
			},
			{
				"name": "HOMING",
				"label": "Homing of the mount",
				"input_label": [],
				"help": "Initialize the encoders."
			},
			{
				"name": "ZENITH",
				"label": "Slew the mount to the zenith",
				"input_label": [],
				"help": "Slew the mount to the zenith."
			},
			{
				"name": "GOTO",
				"label": "Start the slew of the mount",
				"input_label": [],
				"help": "Start the slew of the mount."
			},
			{
				"name": "STOP",
				"label": "Stop the motions of the mount",
				"input_label": [],
				"help": "Stop the motions of the mount."
			},
			{
				"name": "DRIFT_ON",
				"label": "Switch on drifts of the mount",
				"input_label": [],
				"help": "Switch on drifts of the mount."
			},
			{
				"name": "DRIFT_OFF",
				"label": "Switch off drifts of the mount",
				"input_label": [],
				"help": "Switch off drifts of the mount."
			},
			{
				"name": "ROTATOR_GOTO",
				"label": "Start the rotator motion",
				"input_label": [],
				"help": "Start the rotator motion."
			},
			{
				"name": "DOME SHUTTER OPEN",
				"label": "Open the dome shutter",
				"input_label": [],
				"help": "Open the dome shutter."
			},
			{
				"name": "DOME SHUTTER CLOSE",
				"label": "Close the dome shutter",
				"input_label": [],
				"help": "Close the dome shutter"
			},
			{
				"name": "DOME PARK",
				"label": "Park the dome shutter",
				"input_label": [],
				"help": "Park the dome shutter"
			},
			{
				"name": "TELESCOPE PARK",
				"label": "Park the Telescope",
				"input_label": [],
				"help": "Park the Telescope"
			},
			{
				"name": "START",
				"label": "Start the Telescope",
				"input_label": [],
				"help": "Start the Telescope"
			}

		]
	},
	"CameraVIS" : {
		"set": [
			{
				"name": "WINDOW",
				"label": "Set the window coordinates",
				"input_label": [
					{
						"x1":[10, "Int", "x left bottom"],
						"x2":[10, "Int", "y left bottom"],
						"y1":[10, "Int", "x right top corner"],
						"y2":[10, "Int", "y right top corner"]
					}
				],
				"help": "Coordinates of window corners (left bot, right top)"
			},
			{
				"name": "READMODE [MODE 1]",
				"label": "Set Mode of observation (ramp, ...)",
				"input_label": [],
				"help": "Set the Mode of observation (ramp, ...)"
			},
			{
				"name": "READMODE [MODE 2]",
				"label": "Set Mode of observation (ramp, ...)",
				"input_label": [],
				"help": "Set the Mode of observation (ramp, ...)"
			},
			{
				"name": "READMODE [MODE 3]",
				"label": "Set Mode of observation (ramp, ...)",
				"input_label": [],
				"help": "Set the Mode of observation (ramp, ...)"
			},
			{
				"name": "FILENAME",
				"label": "Change the used file",
				"input_label": [
					{
						"filename" : [256, "Str", "filename"]
					}
				],
				"help": "Optional, not wanting default file name (reset between each image)"
			},
			{
				"name": "HEADER",
				"label": "Set particular values in the header",
				"input_label": [
					{
						"header values" : [1024, "Str (dict)", "header values"]
					}
				],
				"help": "Set particular values in the header"
			},
			{
				"name": "READOUT_FREQUENCY",
				"label": "Readout frequency in pix/s (~= Hz)",
				"input_label": [
					{
						"readout freq" : [15, "Float", "readout freq pix/s ~= Hz"]
					}
				],
				"help": "Readout frequency in pix/s (~= Hz)"
			},
			{
				"name": "FILTER [FILTER 1]",
				"label": "Change the wanted filter",
				"input_label": [],
				"help": "Change the wanted filter"
			},
			{
				"name": "FILTER [FILTER 2]",
				"label": "Change the wanted filter",
				"input_label": [],
				"help": "Change the wanted filter"
			},
			{
				"name": "FILTER [FILTER 3]",
				"label": "Change the wanted filter",
				"input_label": [],
				"help": "Change the wanted filter"
			}
		],
		"get": [
			{
				"name": "STATUS",
				"label": "Get camera status values (dict)",
				"input_label": [],
				"help": "Get camera status values (dict): struct(key, value, type, unit, comment)"
			},
			{
				"name": "SETUP",
				"label": "Get static values for config (dict)",
				"input_label": [],
				"help": "Get static values for config (eg. limit speed)"
			},
			{
				"name": "TIMER",
				"label": "Get the ime before end of pose",
				"input_label": [],
				"help": "Time before end of pose (-1 == idle / finished, 0 == readout (recup-ing img))"
			}

		],
		"do": [
			{
				"name": "COOLER ON",
				"label": "Turn On the cooler with the given temperature",
				"input_label": [
					{
						"temp":[15, "Float", "temperature"]
					}
				],
				"help": "Turn On the cooler with the given temperature."
			},
			{
				"name": "COOLER OFF",
				"label": "Turn off the cooler",
				"input_label": [],
				"help": "Turn off the cooler."
			},
			{
				"name": "DOME SHUTTER OPEN",
				"label": "Open the dome shutter",
				"input_label": [],
				"help": "Open the dome shutter."
			},
			{
				"name": "DOME SHUTTER CLOSE",
				"label": "Close the dome shutter",
				"input_label": [],
				"help": "Close the dome shutter"
			},
			{
				"name": "DOME SHUTTER SYNCHRO",
				"label": "Dome Shutter Synchro",
				"input_label": [],
				"help": "Dome Shutter Synchro"
			},
			{
				"name": "START",
				"label": "Start Pose",
				"input_label": [],
				"help": "Start Pose"
			},
			{
				"name": "ABORT",
				"label": "Stop Pose",
				"input_label": [],
				"help": "Stop Pose"
			},
			{
				"name": "STOP",
				"label": "End image then stop pose",
				"input_label": [],
				"help": "End image then stop pose"
			}

		]


	}
	
}