Weighted average for regions
A new development @jvegas has been working on is the calculation of the weighted averages for different variables. As we commented, your diagnostic intends to calculate the averages just for the NEMO variables.
I have two bash scripts that make that, one for the IFS variables and the other for NEMO variables. You can see them in my personal project: Rubén Cruz-García/scripts/bash_scripts/reg_var_IFS.bash and reg_var_NEMO.bash As you can see it follows the convention, but it's in bash. Basically they are the same, but I just change the mask which I apply depending on the variable.
reg_var_NEMO.bash reg_var_IFS.bash
Rubén.