bsrn.visualization.availability.plot_bsrn_availability#
- bsrn.visualization.availability.plot_bsrn_availability(stations, username, password, start_year=1992, end_year=None, output_file=None, title=None)[source]#
Plot BSRN archive file availability from the BSRN FTP inventory.
- Parameters:
stations (str or list) – One or more station abbreviations (e.g., ‘PAY’ or [‘PAY’, ‘NYA’]).
username (str) – BSRN FTP username.
password (str) – BSRN FTP password.
start_year (int, default 1992) – First year to include in the visualization.
end_year (int, optional) – Last year to include. If omitted, the current calendar year is used.
output_file (str, optional) – Path to the output file (e.g., ‘availability.pdf’).
title (str, optional) – Plot title. If None (default), no title is drawn.
- Returns:
fig – The generated availability heatmap figure.
- Return type:
plotnine.ggplot.ggplot