Giter Site home page Giter Site logo

synopticcharts's Introduction

SynopticCharts

Download Met Office sea level pressure synoptic charts twice a day and present in a table.

The table has the time for which the forecast is made increaing to the right and the newest forecast being the top row.

synoptic_chart_layout

There is a two step process:

  1. fetch the charts, using the Met Office datapoint API, twice a day. This is done with a GitAction. The charts are stored in docs/charts/
  2. Render the charts in a table using javascript: docs/index.html

Run jobs locally

Instead of running GitActions to obtain the charts, a cronjob could be run locally. A cronjob script might look like:

#!/bin/bash
# run wget comment to save surface pressure chart images
# crontab -e
# 30 19 * * * /Users/jelt/GitHub/SynopticCharts/get_MO_charts.sh
# 30 7 * * * /Users/jelt/GitHub/SynopticCharts/get_MO_charts.sh

#source /usr/local/bin/activate /Users/jelt/opt/anaconda3/envs/synoptic_env 
/Users/jelt/opt/anaconda3/bin/conda activate /Users/jelt/opt/anaconda3/envs/synoptic_env
cd /Users/jelt/GitHub/SynopticCharts/
python main.py
conda deactivate

synopticcharts's People

Contributors

actions-user avatar jpolton avatar

Watchers

 avatar  avatar

synopticcharts's Issues

tidy javascript time stamping

timestamping in html file is a bit of a mess.
Need to keep track of:

  1. whether to start first plot at today's noon or midnight. This is the ANALYSIS time
  2. keep track of the number of 12-hourly forecasts since ANALYSIS - this is the columns number
  3. keep track of the forecast period. For each cell this increases by 12hr going down the column.

Code could be tidied to better reflect these important variables.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.