调用LCO源代码提取服务的命令行工具
sep-service-caller的Python项目详细描述
LCO源提取服务CLI
sep服务呼叫方
命令行接口到LCO的源提取服务
源代码提取服务文档可以在这里找到:https://github.com/LCOGT/sextractor-service
安装
pip install sep service caller
测井
日志记录是STDOUT,可以通过--log-level
参数设置日志级别。在
提取结果被发布到LCO的Elasticsearch实例,默认情况下设置为填充
source-extraction
索引。在
source-extraction
索引可以是viewed in Kibana。在
使用
要查看帮助文本,只需使用-h
标志:
sep-service -h
usage: sep-service [-h]{file,dates} ... Perform source extraction via the LCO source extraction service positional arguments: {file,dates} sep-service sub-commands file Specify a basename to perform source extraction on dates Specify a site/camera/date range to perform source extractions on. optional arguments: -h, --help show this help message and exit
sep服务调用者有两个子命令,以方便两个distict工作流:
- file:对basename指定的单个文件执行源代码提取
- dates:对站点/摄像机开始和结束日期指定的任意数量的文件执行源代码提取
两个命令接受相同的可选参数,允许提供源提取参数。在
见LCO Source Extraction Service Docs
示例
注意:所有示例都包括<archive-auth-token>
,它应该被具有访问权限的归档API令牌所取代
到要对其执行源提取的图像。在
按文件求解
要查看此子命令的帮助文本,只需键入sep-service file -h
。这将显示所有
可供选择的参数。这里只展示了一个子集。在
要对单个文件执行源代码提取,lsc1m005-fa15-20200214-0355-e91
让我们尝试一下没有默认值!
注意,必须指定--sep-mode CUSTOM
来覆盖sep服务的default values
sep-service file lsc1m005-fa15-20200214-0355-e91 <archive-auth-token> --sep-mode CUSTOM --threshold 8.0
在本例中,threshold将设置为8.0,但所有其他可调sep参数将保持默认值
您可以根据需要覆盖任意多个值!疯了!在
sep-service file lsc1m005-fa15-20200214-0355-e91 <archive-auth-token> --sep-mode CUSTOM --threshold 8.0 --min-area 2 --noise-model GLOBALRMS
按站点/摄像机/日期范围求解
要查看此子命令的帮助文本,只需键入sep-service dates -h
。这将显示所有
可供选择的参数。这里只展示了一个子集。在
在OBS 20200214、20200215和20200216天对LSC/fa15中的所有简化科学图像(e91)执行源提取:
sep-service dates lsc fa15 2020021420200216 <archive-auth-token>
让我们尝试一下没有默认值!
注意,必须指定--sep-mode CUSTOM
来覆盖sep服务的default values
sep-service dates lsc fa15 2020021420200216 <archive-auth-token> --sep-mode CUSTOM --deblend-n-threshold 24
在这种情况下,与之前一样,去贷款阈值的数量将被设置为24,但所有其他可调sep参数将保持其默认值。在
可以根据需要覆盖任意多个值。在
sep-service dates lsc fa15 2020021420200216 <archive-auth-token> --sep-mode CUSTOM --threshold 8.0 --min-area 2 --noise-model GLOBALRMS
- 项目
标签: