# PROVOR Automatic Surface Time Updates
Python code to automatically update the target surface timing of NKE PROVOR floats after they report a profile.
Script `update-params.py` is the workhorse of this function, and runs daily via cron job github workflow (`.github/workflows/check-floats.yaml`).
Basic steps of the workflow:
- log into RUDICS ftp server
- loop through float directories, and for each float:
- get latest profile time, and check the following conditions:
- was there a profile withing the last 1 day?
- ensure a RUDICS_cmd.txt file does not already exist
- is there a command respone associated with the last profile? (`[date]_[time]_[imei]_RUDICS_cmd.txt`)
- if all the above conditions are met, then:
- select a new surfacing time, either based on previous command file, or a user defined list
- create a RUDICS_cmd.txt file and upload to the ftp
- log the change and save the command file with date and imei information
没有合适的资源?快使用搜索试试~ 我知道了~
Python 代码可在 NKE PROVOR 浮标报告轮廓后自动更新其目标表面时间
共679个文件
txt:666个
py:6个
yaml:1个
需积分: 0 1 下载量 14 浏览量
更新于2024-08-07
收藏 219KB ZIP 举报
Python 代码用于在 NKE PROVOR 浮标报告配置文件后自动更新其目标表面时间。
脚本update-params.py是此功能的主力,通过 cron 作业 github 工作流程(.github/workflows/check-floats.yaml)每天运行。
工作流程的基本步骤:
登录 RUDICS ftp 服务器
循环遍历浮点目录,并针对每个浮点数:
获取最新的配置文件时间,并检查以下条件:
过去 1 天内是否有个人资料?
确保 RUDICS_cmd.txt 文件不存在
是否有与最后一个配置文件相关的命令响应?([date]_[time]_[imei]_RUDICS_cmd.txt)
如果以上所有条件均满足,则:
根据先前的命令文件或用户定义的列表选择新的表面处理时间
创建 RUDICS_cmd.txt 文件并上传到 ftp
记录更改并保存包含日期和 imei 信息的命令文件
收起资源包目录
Python 代码可在 NKE PROVOR 浮标报告轮廓后自动更新其目标表面时间 (679个子文件)
.config 0B
time_list.csv 203B
.gitignore 2KB
LICENSE 1KB
auto-update-log.log 48KB
README.md 1004B
update-params.py 3KB
configure.py 2KB
manual-update.py 2KB
core.py 2KB
plot_local_times.py 2KB
__init__.py 226B
20231117_300125061378340_auto_time_update_cmd.txt 307B
20231117_300125061656740_auto_time_update_cmd.txt 306B
2024226_300125061070720_auto_time_update_cmd.txt 286B
2024118_300125061070720_auto_time_update_cmd.txt 286B
2024211_300125061370300_auto_time_update_cmd.txt 286B
2024516_300125061378340_auto_time_update_cmd.txt 286B
202424_300125061370340_auto_time_update_cmd.txt 286B
2024410_300125061077690_auto_time_update_cmd.txt 286B
2024429_300125061360970_auto_time_update_cmd.txt 286B
202421_300125061192640_auto_time_update_cmd.txt 286B
2024424_300125061370340_auto_time_update_cmd.txt 286B
2024426_300125061075760_auto_time_update_cmd.txt 286B
2024519_300125010116590_auto_time_update_cmd.txt 286B
2024122_300125061077690_auto_time_update_cmd.txt 286B
2023117_300125061656740_auto_time_update_cmd.txt 286B
2024117_300125061075760_auto_time_update_cmd.txt 286B
2024129_300125061372350_auto_time_update_cmd.txt 286B
2024427_300125061070720_auto_time_update_cmd.txt 286B
20231213_300125061192640_auto_time_update_cmd.txt 286B
202429_300125061360970_auto_time_update_cmd.txt 286B
202447_300125061070720_auto_time_update_cmd.txt 286B
202443_300125061370340_auto_time_update_cmd.txt 286B
2024330_300125061372350_auto_time_update_cmd.txt 286B
2024224_300125061370340_auto_time_update_cmd.txt 286B
2024428_300125061360970_auto_time_update_cmd.txt 286B
20231229_300125061070720_auto_time_update_cmd.txt 286B
2024123_300125061078780_auto_time_update_cmd.txt 286B
2024313_300125061078780_auto_time_update_cmd.txt 286B
2024123_300125061192640_auto_time_update_cmd.txt 286B
2023124_300125061078780_auto_time_update_cmd.txt 286B
202433_300125061078780_auto_time_update_cmd.txt 286B
2023128_300125061378340_auto_time_update_cmd.txt 286B
202452_300125061192640_auto_time_update_cmd.txt 286B
2023115_300125061370340_auto_time_update_cmd.txt 286B
2024310_300125061360970_auto_time_update_cmd.txt 286B
202451_300125061192640_auto_time_update_cmd.txt 286B
202436_300125061378340_auto_time_update_cmd.txt 286B
2024318_300125061075760_auto_time_update_cmd.txt 286B
2024226_300125061378340_auto_time_update_cmd.txt 286B
2023121_300125061360970_auto_time_update_cmd.txt 286B
202442_300125061192640_auto_time_update_cmd.txt 286B
2024425_300125061656740_auto_time_update_cmd.txt 286B
2024221_300125061077690_auto_time_update_cmd.txt 286B
20231128_300125061075760_auto_time_update_cmd.txt 286B
202423_300125061078780_auto_time_update_cmd.txt 286B
2023121_300125061372350_auto_time_update_cmd.txt 286B
20231128_300125061070720_auto_time_update_cmd.txt 286B
20231224_300125061192640_auto_time_update_cmd.txt 286B
20231124_300125061078780_auto_time_update_cmd.txt 286B
2023124_300125061192640_auto_time_update_cmd.txt 286B
2024311_300125061077690_auto_time_update_cmd.txt 286B
2024517_300125061070720_auto_time_update_cmd.txt 286B
20231224_300125061370300_auto_time_update_cmd.txt 286B
2024322_300125061192640_auto_time_update_cmd.txt 286B
2024429_300125061372350_auto_time_update_cmd.txt 286B
2024118_300125061075760_auto_time_update_cmd.txt 286B
2024112_300125061077690_auto_time_update_cmd.txt 286B
202452_300125061370300_auto_time_update_cmd.txt 286B
2024518_300125010116590_auto_time_update_cmd.txt 286B
2024225_300125061656740_auto_time_update_cmd.txt 286B
2024116_300125061378340_auto_time_update_cmd.txt 286B
202438_300125061070720_auto_time_update_cmd.txt 286B
2024114_300125061078780_auto_time_update_cmd.txt 286B
2024214_300125061370340_auto_time_update_cmd.txt 286B
2024511_300125061370300_auto_time_update_cmd.txt 286B
2024513_300125061376360_auto_time_update_cmd.txt 286B
202418_300125061070720_auto_time_update_cmd.txt 286B
2024429_300125010915300_auto_time_update_cmd.txt 286B
2023124_300125061370300_auto_time_update_cmd.txt 286B
2024522_300125010116590_auto_time_update_cmd.txt 286B
202458_300125061360970_auto_time_update_cmd.txt 286B
202414_300125061370340_auto_time_update_cmd.txt 286B
2023118_300125061378340_auto_time_update_cmd.txt 286B
202451_300125061370300_auto_time_update_cmd.txt 286B
202421_300125061370300_auto_time_update_cmd.txt 286B
2024430_300125061690470_auto_time_update_cmd.txt 286B
20231213_300125061370300_auto_time_update_cmd.txt 286B
2024330_300125061360970_auto_time_update_cmd.txt 286B
2024325_300125061370340_auto_time_update_cmd.txt 286B
2024512_300125010116590_auto_time_update_cmd.txt 286B
20231226_300125061656740_auto_time_update_cmd.txt 286B
20231221_300125061360970_auto_time_update_cmd.txt 286B
20231226_300125061370340_auto_time_update_cmd.txt 286B
202417_300125061378340_auto_time_update_cmd.txt 286B
2024120_300125061360970_auto_time_update_cmd.txt 286B
2024412_300125061078780_auto_time_update_cmd.txt 286B
2024511_300125010116590_auto_time_update_cmd.txt 286B
2024326_300125061656740_auto_time_update_cmd.txt 286B
共 679 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源推荐
资源预览
资源评论
131 浏览量
145 浏览量
173 浏览量
187 浏览量
2009-11-23 上传
2021-04-30 上传
192 浏览量
5星 · 资源好评率100%
197 浏览量
149 浏览量
2021-06-29 上传
2021-04-08 上传
2021-04-08 上传
2023-07-29 上传
106 浏览量
165 浏览量
163 浏览量
2019-10-17 上传
113 浏览量
2023-07-25 上传
5星 · 资源好评率100%
117 浏览量
137 浏览量
5星 · 资源好评率100%
196 浏览量
2023-05-23 上传
147 浏览量
资源评论
余十步
- 粉丝: 1679
- 资源: 172
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- c语言文本编辑器系统源码.zip
- 三菱FX3U与三菱变频器 modbus RTU通讯案例 器件:三菱FX3U PLC+FX3U 485BD,三菱E740变频器,昆仑通态触摸屏,威纶通 功能:采用485方式,modbus RTU协议
- 小学语文课外阅读教学途径及其影响因素探讨
- c语言五子棋源码.zip
- 计算机网络实验-深入解析DNS协议及其工具的应用
- c语言学生成绩管理系统.zip
- OC-Dialect线上多语言(多列表) 2.逻辑图对照代码运行
- 毕业实习与毕业设计总结
- 计算机仿真与分析课程设计指导:GUI界面设计及图像处理
- c语言学生成绩管理系统源码.zip
- c语言学生信息系统.zip
- 昆仑通态MCGS与三菱FX3U 485BD方式通讯案例功能:实现昆仑通态触摸屏与三菱FX3U的485BD板通过485方式进行连接,而PLC的编程口同时又能与电脑连接,进行程序下载监控 器件:三菱FX
- 酒店圣诞节活动策划安排
- 基于Wireshark与ENSP的企业级网络实验教程
- c语言支持自己创建迷宫并求解最短路径.zip
- 学习Matlab心得体会
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功