RachaelDMueller / SalishSeaModel-analysis

A repository for my work at the Puget Sound Institute
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

concentration movie titles #9

Closed RachaelDMueller closed 1 year ago

RachaelDMueller commented 1 year ago

This problem affects code created by plot_conc_graphics_for_movie

In earlier versions, my code hard coded the titles to say "Water Column".  The graphics I created reflect min DO across water column but mean NO3 and salinity in the surface level; so, for NO3 and salinity, this title is wrong.  More generally, this title will be wrong for all but the water column cases.  I need to update the code to either remove this tag or to pass in the location (surface, bottom, or water column).

I resolved this issue by using the stat_type in the title

title_tag = {
    "DOXG":f"2014 Conditions\n{loc.capitalize()}, {stat_type.capitalize()} Daily Dissolved Oxygen (DO)",
    "NO3":f"2014 Conditions\n{loc.capitalize()}, {stat_type.capitalize()} Daily NO3",
    "salinity":f"2014 Conditions\n{loc.capitalize()}, {stat_type.capitalize()} Daily Salinity" 
}