This repository contains code to estimate methane emission durations using concentration data from point-in-space continuous monitoring systems. The main body of code is contained in the MAIN_1_estimate_durations.R file found in the code directory. The HELPER file contains auxiliary functions used by the MAIN_1 script. The MAIN_2_analyze_controlled_release_results file makes all of the plots for the accompanying manuscript related to the controlled release evaluations. The MAIN_3_analyze_case_study_results file makes all of the plots for the accompanying manuscript related to the real data case study. The accompanying paper can be found here: https://doi.org/10.1021/acs.estlett.4c00687
The MAIN_1_estimate_durations file takes simulated concentration data and concentration observations as input. The file format must match the output of the MAIN_1_simulate.R file from the following repository: https://github.com/wsdaniels/DLQ. The raw concentration data used to generate the output files cannot be made publicly available due to privacy concerns, but can be made available upon request for research purposes. The "output_data" directory is where output from the MAIN_1 script is saved. Output files have been pre-generated and are saved in this directory.