Skip to content

transform/plot some astro-related json/csv data and fit sine curves onto it

Notifications You must be signed in to change notification settings

benine203/solardata-1

Repository files navigation

Sunset/Sunrise/etc.. for Seattle + Tucson

And fitted sine waves with parameters.

This is the software used to graph and estimate some of the parameters.

final generated graphs

seattle gen tucson gen

step 1: convert raw data (csv) to JSON

csv2json -a ~/Downloads/seattle.csv | jq > seattle.json #jq optional

step 2: compile/run rust program to convert and plot SVG

cargo run --bin json2day -- --input tucson.json --output tucson.svg --label "Tucson, AZ" --transformed tucson-xformed.json

ptional: generate gnuplot plot

./redacted.sh [tucson/seattle]

optional: convert SVG to png

convert -density 300 seattle.svg seattle.png

optional: conv xformed JSON to CSV for import into spreadsheet

json2csv seattle-xformed.csv >seattle-xformed.json

About

transform/plot some astro-related json/csv data and fit sine curves onto it

Resources

Stars

Watchers

Forks