Skip to content
a little Python script to clean up some solar wind data
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
ACE_SWICS_Data_2h_2001.1.txt
ACE_SWICS_Data_2h_2001.1.txt-clean.csv
README
csv_fix.py

README

This is a small Python script to clean up the ACE SWICS solar wind data set, available here (or in this repo):
http://www.srl.caltech.edu/ACE/ASC/level2/lvl2DATA_SWICS_SWIMS.html

BACKGROUND
A good friend of mine, Robert Alexander, is a composer that I have collaborated with as a dancer and choreographer (in my other life).  He was hired by the Solar and Heliospheric Research Group at University of Michigan to "sonify" - or, to create a musical score directly derived from - this dataset.  He wanted the data to appear continuous, to make his parsing in Max/MSP easier.  Learn more and see/hear the score here:
http://www.youtube.com/watch?v=kryCbfRJCyk

The dataset is a tab-delimited file of solar wind measurements, with some missing values.  The script takes in the data file and computes a simple average between the previous and following measurements.

USAGE
Simply run "python csv_fix.py <file1> <file2> ...", and "<file1>-clean.csv", "<file2>-clean.csv", etc. will be created.
Something went wrong with that request. Please try again.