import network_parsers
from crossnetwork_processing_functions import get_data_files

filename = '/gpfs/projects/bsc32/AC_cache/obs/ghost/NAPMD/original_files/1.5.1/hourly/2005/O3_2005.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.ParseNAPMDFile(filename)

data = parser.read_data()
print(data)





