bsrn.visualization.daily.plot_bsrn_daily_day#
- bsrn.visualization.daily.plot_bsrn_daily_day(file_path, day, show_qc_markers=True, output_file=None, title=None, df=None)[source]#
Plot one UTC day from a single-month BSRN archive (same layout as each booklet page). 从单月 BSRN 存档绘制一个 UTC 日(版式与手册单页相同)。
The frame (from
dfor loaded fromfile_path) must already includezenithandapparent_zenith(e.g. afterBSRNDataset.solpos()).- Parameters:
file_path (str, optional) – Path to a single-month archive when
dfis not passed; otherwise ignored. 未传df时的单月.dat.gz路径;传入df时可省略。day (str, datetime.date, datetime.datetime, or pd.Timestamp) – Calendar day to plot (UTC), e.g.
"2024-01-15"orpd.Timestamp("2024-01-15"). 要绘制的日历日(UTC)。show_qc_markers (bool, default True) – If True, overlay QC failure markers where matching
flag*columns exist (no QC is run here; useqc_test()first). 为 True 时在已有flag*列的分面上叠加失败点(此处不运行 QC;请先qc_test())。output_file (str, optional) – If set, save the figure (e.g.
".pdf"or".png") via plotnine. 若设置则保存图形(如.pdf/.png)。title (str, optional) – Plot title. If None (default), no title is drawn. 图标题;默认 None 不显示标题。
- Returns:
p – The figure; display in notebooks with the last expression or call
.draw(). 图形对象;笔记本中作为最后一行显示或调用.draw()。- Return type:
plotnine.ggplot.ggplot