
public class ScriptingCommands extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScriptingCommands.FileList
A simple extension of
List<File> which add an extra utility method
for getting the common root directory of all the files in the list. |
| Modifier and Type | Method and Description |
|---|---|
void |
setHeaderKeyword(String hduName,
Map<String,Serializable> headersMap)
Set the values of a named HDU Header Keywords
|
void |
setHeaderKeyword(String hduName,
String name,
Serializable value)
Set the value of a named HDU Header Keyword
|
void |
setPrimaryHeaderKeyword(Map<String,Serializable> headersMap)
Set the values of Primary Header Keywords
|
void |
setPrimaryHeaderKeyword(String name,
Serializable value)
Set the value of Primary Header Keyword
|
ScriptingCommands.FileList |
waitForFitsFiles(Duration timeout)
Wait until all FITS files have been written.
|
void |
waitForImages(Duration timeout)
Wait until all images have been received from the DAQ (but not
necessarily written as FITS files)
|
void |
waitForSequencer(Duration timeout)
Wait until the sequencer stops.
|
@Command(type=QUERY,
description="Wait for FITS files to be saved",
level=0,
autoAck=false)
public ScriptingCommands.FileList waitForFitsFiles(@Argument(defaultValue="PT30S")
Duration timeout)
timeout - The maximum duration to wait@Command(type=QUERY,
description="Wait for image data to arrive",
level=0,
autoAck=false)
public void waitForImages(@Argument(defaultValue="PT30S")
Duration timeout)
timeout - The maximum duration to wait@Command(type=QUERY,
description="Wait for sequencer to stop",
level=0,
autoAck=false)
public void waitForSequencer(@Argument(defaultValue="PT30S")
Duration timeout)
timeout - @Command(type=QUERY,
description="Set a primary header keyword value")
public void setPrimaryHeaderKeyword(String name,
Serializable value)
name - The name of the header keywordvalue - The value of the header keyword@Command(type=QUERY,
description="Set primary header keyword values")
public void setPrimaryHeaderKeyword(Map<String,Serializable> headersMap)
headersMap - The map of header keyword name, value pairs to be set@Command(type=QUERY,
description="Set a header keyword value on a named HDU")
public void setHeaderKeyword(String hduName,
String name,
Serializable value)
hduName - The name of the HDU on which to set the header keywordname - The name of the header keywordvalue - The value of the header keyword@Command(type=QUERY,
description="Set header keyword values on a named HDU")
public void setHeaderKeyword(String hduName,
Map<String,Serializable> headersMap)
hduName - The name of the HDU on which to set the header keywordheadersMap - The map of header keyword name, value pairs to be setCopyright © 2019 LSST. All rights reserved.