/nwpc-message-tool

:construction: Tools for nwpc-message-client.

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

nwpc-message-tool

Analytics tools for NWPC Message Platform.

Introduction

nwpc-message-client supports two message types:

Messages from different platforms may store in different ElasticSearch servers.

Getting started

Use python -m nwpc_message_tool to run command line tool.

Draw step_grid plot

Draw production grid plot by step (step_grid).

Use NMC monitoring platform data to analytic 00 cycle of GRAPES GFS from March 11, 2020 to March 21, 2020.

python -m nwpc_message_tool proudction plot \
    --engine=nmc_monitor \
    --elastic-server localhost:9200 \
    --system grapes_gfs_gmf \
    --start-time 2020031100/2020032118 \
    --start-time-freq=D \
    --output-file=w.html \
    --plot-type=step_grid

The command will open a web browser to show the web page generated by bokeh.

Draw period_bar plot

Draw production period bar plot (period_bar).

Use NWPC message platform data to analytic 00 cycle of GRAPES GFS from March 11, 2020 to March 21, 2020.

python -m nwpc_message_tool production plot \
    --engine=nwpc_message \
    --elastic-server localhost:9200 \
    --system grapes_meso_3km \
    --start-time 2020031100/2020032118 \
    --start-time-freq=D \
    --output-file=w.html \
    --plot-type=period_bar

Create time table

Create a time table of for each step production, and write it into a json file.

Use NMC monitoring platform data to analytic 18 cycle of GRAPES GFS from March 17, 2020 to March 21, 2020.

python -m nwpc_message_tool production table \
    --engine=nmc_monitor \
    --elastic-server localhost:9200 \
    --system grapes_gfs_gmf \
    --start-time 2020031700/2020032118 \
    --output-type=json \
    --output-file=w.json

More examples are under example directory.

LICENSE

Copyright © 2020-2021, Perilla Roc at nwpc-oper.

nwpc-message-tool is license under GPL v3.0.