pmathiot / VALSO

Southern Ocean Validation toolbox
GNU General Public License v3.0
1 stars 2 forks source link

manage plot disposition via a db file #14

Open pmathiot opened 2 years ago

pmathiot commented 2 years ago

manage composition via an input file:

plot1 | arg1 | arg2 | arg3 | fig number plot2 | ....

sed -n 1p test_plot.txt | awk '{split($0,a,"|"); print a[5] a[4] a[3],a[2],a[1]}'

improve time_series to manage all the plot at once (need better management of the obs bar (in the same plot (at xmax+xrange*0.1))

This can help:

!/bin/bash

setupapachevhost.sh - Apache webhosting automation demo script

file=/tmp/domains.txt

set the Internal Field Separator to |

IFS='|' while read -r domain ip webroot ftpusername do printf "*** Adding %s to httpd.conf...\n" $domain printf "Setting virtual host using %s ip...\n" $ip printf "DocumentRoot is set to %s\n" $webroot printf "Adding ftp access for %s using %s ftp account...\n\n" $domain $ftpusername

done < "$file"

pmathiot commented 2 years ago

Here is an example file:

ACC transport (Sv)           | *ACC*${FREQ}*.nc          | vtrp                                      | -1 | ${KEY}_ACC                   | OBS/ACC_obs.txt
 Weddell Gyre (Sv)           | *WG*${FREQ}*psi.nc        | max_sobarstf                              |  1 | ${KEY}_WG                    | OBS/WG_obs.txt
 Ross Gyre (Sv)              | *RG*${FREQ}*psi.nc        | max_sobarstf                              |  1 | ${KEY}_RG                    | OBS/RG_obs.txt
 Mean bot. sal. WROSS (g/kg) | *WROSS*so*${FREQ}*T.nc    | (mean_sosbs|mean_vosaline)                |  1 | ${KEY}_WROSS_mean_bot_so     | OBS/WROSS_botS_mean_obs.txt
 Mean bot. sal. WWED  (g/kg) | *WWED*so*${FREQ}*T.nc     | (mean_sosbs|mean_vosaline)                |  1 | ${KEY}_WWED_mean_bot_so      | OBS/WWED_botS_mean_obs.txt
 Mean bot. temp. AMU (C)     | *AMU_*thetao*${FREQ}*T.nc | (mean_sosbt|mean_votemper)                |  1 | ${KEY}_AMU_mean_bot_thetao   | OBS/AMU_botT_mean_obs.txt
 Mean bot. temp. EROSS (C)   | *EROSS*thetao*${FREQ}*T.nc| (mean_sosbt|mean_votemper)                |  1 | ${KEY}_EROSS_mean_bot_thetao | OBS/EROSS_botT_mean_obs.txt
 Mean bot. temp. EWED (C)    | *EWED*thetao*${FREQ}*T.nc | (mean_sosbt|mean_votemper)                |  1 | ${KEY}_EWED_mean_bot_thetao  | OBS/EWED_botT_mean_obs.txt
 Max Kara mld WG (m)         | *WMXL*1m*m09_*T.nc        | (max_sokaraml|max_somxzint1|max_somxl010) |  1 | ${KEY}_WG_max_karamld        | OBS/WG_karamld_max_obs.txt
pmathiot commented 2 years ago

Other suggestion:

 *ACC*${FREQ}*.nc           : vtrp                                        : -1.0      : "ACC transport (Sv)"         : ACC_obs.txt             :
 *RG*${FREQ}*psi.nc         : max_sobarstf                                :  0.000001 : "Ross Gyre (Sv)"             : RG_obs.txt              :
 *WG*${FREQ}*psi.nc         : max_sobarstf                                :  0.000001 : "Weddell Gyre (Sv)"          : WG_obs.txt              :
 *WROSS*so*${FREQ}*T.nc     : '(mean_sosbs)'                              :  1.0      : "Mean bot. sal. WROSS (PSU)" : WROSS_botS_mean_obs.txt :
 *WED*so*${FREQ}*T.nc       : '(mean_sosbs)'                              :  1.0      : "Mean bot. sal. WWED (PSU)"  : WWED_botS_mean_obs.txt  :
box_plot: figure_name.png
 *AMU_*thetao*${FREQ}*T.nc  : '(mean_sosbt)'                              :  1.0      : "Mean bot. temp. AMU (C)"    : AMU_botT_mean_obs.txt   :
 *EROSS*thetao*${FREQ}*T.nc : '(mean_sosbt)'                              :  1.0      : "Mean bot. temp. EROSS (C)"  : EROSS_botT_mean_obs.txt :
 *WMXL*1m*m09_*T.nc         : '(max_sokaraml|max_somxzint1|max_somxl010)' :  1.0      :"Max Kara mld WG (m)"         : WG_karamld_max_obs.txt  :