Skip to content

Commit

Permalink
Update example_automatic_report.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinChri authored Nov 22, 2024
1 parent bcede54 commit 6f970ed
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions examples/example_automatic_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,31 +543,31 @@ def add_table_to_doc(doc, df, col_width=50, row_height=0.7, header_text="", head
#__________________________________________________________
# Add the map figure, figure 3.1

#output_file='output/map.png'
#maps.plot_points_on_map(lon,lat,label,bathymetry='NORA3',output_file=output_file)
#doc.add_picture(output_file, width=Inches(6))
#doc.add_heading('Figure 3.1: The figure shows the NORA3 grid points selected for the analysis', level=3)
output_file='output/map.png'
maps.plot_points_on_map(lon,lat,label,bathymetry='NORA3',output_file=output_file)
doc.add_picture(output_file, width=Inches(6))
doc.add_heading('Figure 3.1: The figure shows the NORA3 grid points selected for the analysis', level=3)
## Add a blank paragraph to ensure there is no extra spacing
#doc.add_paragraph()

#doc.add_paragraph(
# "Figure 3.2 and Figure 3.3 show the 100-year return values for wind and wave height in the Nordics Seas based "
# "on NORA3 data."
#)

#doc.add_paragraph()
#output_file='output/wind_100yrs.png'
#maps.plot_extreme_wind_map(return_period=100, product='NORA3',z=10, title='100-yr return values Wind at 100 m (NORA3)', set_extent = [0,30,52,73], output_file=output_file)
#doc.add_picture(output_file, width=Inches(5))
#doc.add_heading("Figure 3.2: 100-year return period for wind speed at 10 m in the Nordics based on NORA3 (period: 1991-2020) using Generalized "
#"Pareto distribution (POT; threshold is the minimum of all annual maxima, method described by [5]).", level=3)

#doc.add_paragraph()
#output_file='output/wave_100yrs.png'
#maps.plot_extreme_wave_map(return_period=100, product='NORA3', title='100-yr return values Hs (NORA3)', set_extent = [0,30,52,73],output_file=output_file)
#doc.add_picture(output_file, width=Inches(5))
#doc.add_heading("Figure 3.3: 100-year return period for significant wave height in the Nordics based on NORA3 (period: 1991-2020) using Gumbel "
#"distribution (Annual maxima).", level=3)
doc.add_paragraph()

doc.add_paragraph(
"Figure 3.2 and Figure 3.3 show the 100-year return values for wind and wave height in the Nordics Seas based "
"on NORA3 data."
)

doc.add_paragraph()
output_file='output/wind_100yrs.png'
maps.plot_extreme_wind_map(return_period=100, product='NORA3',z=10, title='100-yr return values Wind at 100 m (NORA3)', set_extent = [0,30,52,73], output_file=output_file)
doc.add_picture(output_file, width=Inches(5))
doc.add_heading("Figure 3.2: 100-year return period for wind speed at 10 m in the Nordics based on NORA3 (period: 1991-2020) using Generalized "
"Pareto distribution (POT; threshold is the minimum of all annual maxima, method described by [5]).", level=3)

doc.add_paragraph()
output_file='output/wave_100yrs.png'
maps.plot_extreme_wave_map(return_period=100, product='NORA3', title='100-yr return values Hs (NORA3)', set_extent = [0,30,52,73],output_file=output_file)
doc.add_picture(output_file, width=Inches(5))
doc.add_heading("Figure 3.3: 100-year return period for significant wave height in the Nordics based on NORA3 (period: 1991-2020) using Gumbel "
"distribution (Annual maxima).", level=3)

doc.add_paragraph()
doc.add_page_break()
Expand Down Expand Up @@ -1182,4 +1182,4 @@ def add_superscript(paragraph, base_text, superscript_text):
# Open the document with the default application
#os.system(output_filename) # For Windows

print("Document created successfully")
print("Document created successfully")

0 comments on commit 6f970ed

Please sign in to comment.