import network_parsers
from crossnetwork_processing_functions import get_data_files

filename = '/gpfs/projects/bsc32/AC_cache/obs/ghost/EEA_AQ_eReporting/original_files/1.6/E1a/precip/Mg++/SE/SPO-SE30016_00660_100_var.csv'
#run_details = {'parameter': 'O3'} #, 'data_root':'/gpfs/projects/bsc32/AC_cache/obs/ghost/', 'network': 'WMO_WDCPC', 'ghost_version': '1.5.1', 'end_year': '1990', 'end_month': '1', 'end_year': '2024', 'end_month': '1'}
#parameter_details = {'chemical_formula': 'Ca'}

# filename = '/gpfs/projects/bsc32/AC_cache/obs/ghost/WMO_WDCPC/original_files/1.6/SDZ_20091030_20100921.csv'
# run_details = {'parameter': 'Ca++_PREC', 'data_root':'/gpfs/projects/bsc32/AC_cache/obs/ghost/', 'network': 'WMO_WDCPC', 'ghost_version': '1.5.1', 'end_year': '1990', 'end_month': '1', 'end_year': '2024', 'end_month': '1'}
# parameter_details = {}

parser = network_parsers.ParseEEAAQeReportingFile(filename)

data = parser.read_data()
print(data)





