Closed lizadams closed 7 months ago
Thanks for Liz double-checking this issue !
I got the same error on Atmos when trying to export shapefiles in VERDI GUI in the new builds 20230425.
But this feature works well in our previous builds 20230224. Maybe somehow the code is broken when trying to enable exporting shapefiles in a script.
Tony, please check into this.
Thanks, Yadong
Retested VERDI 2.1.4 20230517 builds on Atmos, found that this issue has resolved. Exporting shapefiles from a tile plot in VERDI GUI worked.
Also tested on the command line with:
./verdi.sh -f /work/MOD3APP/yxu/VERDI_2.1.4/data/model/CCTM47_aac_spr06.12k.CONC.2006113.O3.ncf -s "O3[1]" -g tile -saveImage "shp" /work/MOD3APP/yxu/VERDI_2.1.4/data/plots/CCTM_O3_shapefile -quit
It also worked.
Retested VERDI 2.1.4 20230831 builds on Atmos, confirmed that this issue has resolved. Exporting shapefiles from a tile plot in VERDI GUI worked. Also tested on the command line with: ./verdi.sh -f /work/MOD3APP/yxu/VERDI_2.1.4/data/model/CCTM47_aac_spr06.12k.CONC.2006113.O3.ncf -s "O3[1]" -g tile -saveImage "shp" /work/MOD3APP/yxu/VERDI_2.1.4/data/plots/CCTM_O3_shapefile_again -quit It also worked.
Retested VERDI 2.1.4 20230911 and 20230924 builds on Atmos, confirmed that this issue has resolved.
Checked VERDI_2.1.5_linux64_20231222.tar.gz on Atmos and it worked.
Checked VERDI_2.1.5_mac_20240103.tar.gz on mac using both the command line option, and the GUI, and confirmed that both successfully created shapefiles of the tile plot variable.
Retested using VERDI_2.1.5_mac_20240124.tar.gz on mac
Using both command line and gui worked, successfully created shapefile of the tile plot variable selected.
Checked VERDI_2.1.5_linux64_20240124.tar.gz on Atmos and confirmed that both command line and GUI worked.
Describe the bug A user of the CMAS Forum had requested the ability to save data to a shapefile from the command line. I tested this and it appears to work ok for the command line. ./verdi.command -f $cwd/data/model/CCTM47_aac_spr06.12k.CONC.2006113.O3.ncf -s "O3[1]" -g tile -saveImage "shp" $cwd/ozone_shapefile -quit
The following shapefile was created by VERDI: [vcredadmins-MBP:~/Downloads/VERDI_2.1.4] lizadams% ls -rlt total 7528
-rw-r--r-- 1 lizadams staff 579 Apr 28 11:56 ozone_shapefile.prj -rw-r--r-- 1 lizadams staff 1466180 Apr 28 11:56 ozone_shapefile.shp -rw-r--r-- 1 lizadams staff 86340 Apr 28 11:56 ozone_shapefile.shx -rw-r--r-- 1 lizadams staff 269565 Apr 28 11:56 ozone_shapefile.dbf -rw-r--r-- 1 lizadams staff 129373 Apr 28 11:56 ozone_shapefile.fix
However, if I tried to create the same shapefile by using the GUI, I VERDI gave an error. ./verdi.command Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problem: The method exportShapeFile(String) is undefined for the type MeshPlot
To Reproduce Steps to reproduce the behavior:
Expected behavior When the user uses the GUI to save the Tile Plot of a variable, layer, and timestep to a shapefile, it should be generated, and match the shapefile that is generated from the command line option. Users need the ability to create a shapefile from both the GUI and the VERDI command line.
Desktop (please complete the following information):