This script takes a txt file of air quality data generated from instrument X, extracts the date, rounds the variables, and writes it to a csv file.
Windows 11
Python 3.11.4
- pandas 1.5.3
- numpy 1.24.3
Install the requirements above, or import the computational environment with conda: conda env export > environment.yml
To run the analysis as-is, run python process_data.py. A new output file will appear in results
To re-run the analysis on new data:
- Add a new data file to the
datafolder. The data file must be a text file with 4 unnamed columns that correspond to "seconds_since_midnight_utc", "atmospheric_pressure_hpa", "hcl_mixing_ratio_ppbv", and "o3_mixing_ratio_ppbv". The filename must have the formatexperiment_YYYYMMDD.txt - Update the path to the data as described in the code.
- Run
python process_data.py. A new output file with the filenameexperiment_YYYYMMDD.csvwill appear inresults