pyaerocom EBAS example
import pyaerocom as pya
pya.const.BASEDIR = '/home/notebook/shared-ns1000k/inputs/pyaerocom-testdata/'
read_factory = pya.io.ReadUngridded('EBASMC')
reader = read_factory.get_reader()
reader
print(reader.PROVIDES_VARIABLES)
pya.get_variable('scatc550dryaer')
data = reader.read(vars_to_retrieve='scatc550dryaer', station_names='B*')
data.unique_station_names
data.plot_station_coordinates();
stat = data.to_station_data('Birkenes II')
ax = stat.plot_timeseries(var_name='scatc550dryaer')
stat.remove_outliers(var_name='scatc550dryaer')
stat.plot_timeseries(var_name='scatc550dryaer', label='outliers removed', ax=ax);
stat.revision_date
stat.compute_trend('scatc550dryaer', 2010, 2020)
stat.trends['scatc550dryaer'].plot(period='2010-2020');
NOTE: the plotted trend line appears white since the trend is close to 0 (cf. notebook example_aas_etal_read
for a case with a strong positive trend)