CEMPD / VERDI

This is the repo for the VERDI project, written in java.
GNU General Public License v3.0
16 stars 13 forks source link

batch script does not turn off column/row labels and legend as specified in the configuration file #347

Open lizadams opened 2 months ago

lizadams commented 2 months ago

Describe the bug These issues were reported by Chris Nolte in the following presentation 2024-06-verdi-issues.pptx

Issue 1: parsing configuration file Issue 2: turn off column/row labels when configuring plot ( title, subtitle, footer, axis lines and domain and range tick labels) Issue 3: managing white space on plot: remove footer 1 and display footer 2 in the footer 1 position.

To Reproduce Steps to reproduce the behavior:

  1. Untar the tar.gz file that is provided at the bottom of this issue to your machine
  2. Use the verdi batch script method to load a dataset, load a configuration file, create plot, and save plot image.
  3. The configuration file containes options to turn off the column/row labels (axis lines and domain and range tick labels)
  4. verdi.command -batch $cwd/tileplot_png_test.txt

The above file contains the following content: (you will need to edit the paths in the script)

<Global>
  dir=/Users/lizadams/downloads/nolte_test
  configFile=/Users/lizadams/downloads/nolte_test/test_configure.cfg
  f=yearlyavg_aelmo_gmt_v54_cb6r3_ae7_aq_WR413_MYR_GCAM2CMAQ_12US1_Ref_2015
  f=yearlyavg_aelmo_gmt_v54_cb6r3_ae7_aq_WR413_MYR_GCAM2CMAQ_12US1_2015_2015
  saveImage=png
  imageDir=/Users/lizadams/downloads/nolte_test
</Global>

#######################
# Data files picked   #
# up from patterns    #
# specified for names #
#######################

<Task>
  s=PM25[1]-PM25[2]
  imageFile=PM25_Ref-2015
  gtype=tile
</Task>

<Task>
  s=PM25_OA[1]-PM25_OA[2]
  imageFile=PM25_OA_Ref-2015
  gtype=tile
</Task>

It generates the following plot for PM25:

PM25_Ref-2015

Expected behavior It should create the same plot as the command line option with the x and y axis lines removed, the configuration plot has been modified to hide the tick marks and axis labels by making them white, and legend removed as per the config file, except this plot also has a bug, in that the subtitle won't turn off.

cd ~/downloads/ verdi.command -f $cwd/yearlyavg_aelmo_gmt_v54_cb6r3_ae7_aq_WR413_MYR_GCAM2CMAQ_12US1_Ref_2015 -f $cwd/yearlyavg_aelmo_gmt_v54_cb6r3_ae7_aq_WR413_MYR_GCAM2CMAQ_12US1_2015_2015 -configFile $cwd/test_configure.cfg -s "PM25[1]-PM25[2]" -g tile -saveImage "png" $cwd/test.png -quit

Screenshots

Output from command line option

test

Desktop (please complete the following information):

Additional context Please see the attached tar.gz file that contains the files and configuration files used in the examples above. nolte_test.tar.gz

Chris Nolte has also updated his example to use files available from the VERDI distribution. It is available on atmos under the following directory:

/home/cnolte/project/verdi

yadongxuEPA commented 2 weeks ago

Tested with VERDI_2.1.5_linux64_20240824.tar.gz on Atmos, found that this issue has resolved. Used this "test_configure.cfg" testing_20240824_issue_347_1 In the output image, the x and y axis lines, titles, sub-titles and legend were removed. PM25_OA_Ref-2015