NOC-MSM / pyBDY

pyBDY: a Python based regional NEMO model configuration toolbox.
GNU General Public License v3.0
7 stars 7 forks source link

update plot_bdy.py: Plot 1D variables #131

Closed jpolton closed 1 year ago

jpolton commented 1 year ago

Plotting routine that show variables for the extracted boundaries needs updating to accommodate 1D variables (e.g SSH) to compliment 2D depth sections.

Basically I abstracted the existing 2D section plotting code into a method and wrote a partner method for 1D variables.

AC: To test, first need to create suitable output. E.g.

namelist_local.bdy: Edit:
line 59:  ln_dyn2d       = .true. # as in this branch (we may not want to merge this edit to master)

Then generate surface data from benchmark datasets:

pybdy -s /inputs/namelist_local.bdy

Execute plotting script on this output: python plotting/plot_bdy.py outputs/NNA_R12_bdyT_y1979m11.nc sossheig

bdy_data

jpolton commented 1 year ago

NB: There is much to do to improve this plotting routine. There is a list of suggestions in the file header:

To do:

These will go in a ticket for future work