# Saving file as shape in Verdi scripting

**URL:** <https://forum.cmascenter.org/t/saving-file-as-shape-in-verdi-scripting/4063>\
**Category:** VERDI\
**Created:** [April 12, 2023, 9:05pm UTC](https://forum.cmascenter.org/t/saving-file-as-shape-in-verdi-scripting/4063 "2023-04-12T21:05:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkkghs0828](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kkkghs0828](https://forum.cmascenter.org/u/kkkghs0828)\
**Post date:** [April 12, 2023, 9:05pm UTC](https://forum.cmascenter.org/t/saving-file-as-shape-in-verdi-scripting/4063/1 "2023-04-12T21:05:11Z")

</div>

Is it possible to save a file as a shape file in a Verdi scripting?  
or Does anyone know a location of this file?  
anl.verdi.commandline.ScriptHandler

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [April 25, 2023, 7:20pm UTC](https://forum.cmascenter.org/t/saving-file-as-shape-in-verdi-scripting/4063/2 "2023-04-25T19:20:47Z")

</div>

We are testing an update that would allow export to shapefiles, and hope to provide this soon.

---

<div class="post-metadata">

**Author:** ![Yadong](https://avatars.discourse-cdn.com/v4/letter/y/a8b319/32.png) [@Yadong](https://forum.cmascenter.org/u/Yadong)\
**Post date:** [April 26, 2023, 3:58pm UTC](https://forum.cmascenter.org/t/saving-file-as-shape-in-verdi-scripting/4063/3 "2023-04-26T15:58:10Z")

</div>

Please use this link to find anl.verdi.commandline.ScriptHandler on Github

> **[VERDI/verdi\_core/src/anl/verdi/commandline at master · CEMPD/VERDI](https://github.com/CEMPD/VERDI/tree/master/verdi_core/src/anl/verdi/commandline)**
>
> master/verdi\_core/src/anl/verdi/commandline

---

<div class="post-metadata">

**Author:** ![kkkghs0828](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kkkghs0828](https://forum.cmascenter.org/u/kkkghs0828)\
**Post date:** [April 28, 2023, 3:41pm UTC](https://forum.cmascenter.org/t/saving-file-as-shape-in-verdi-scripting/4063/4 "2023-04-28T15:41:57Z")

</div>

If you check the all command in verdi, there is no option for shapefile.

---

<div class="post-metadata">

**Author:** ![Yadong](https://avatars.discourse-cdn.com/v4/letter/y/a8b319/32.png) [@Yadong](https://forum.cmascenter.org/u/Yadong)\
**Post date:** [April 28, 2023, 4:10pm UTC](https://forum.cmascenter.org/t/saving-file-as-shape-in-verdi-scripting/4063/5 "2023-04-28T16:10:21Z")

</div>

Please refer to this Github issue regarding saving shapefiles in VERDI. You are correct that there is no functionality in VERDI to allow saving the gridded datasets directly into shapefiles. We may add this enhanced feature in the near future.  
[VERDI export as shapefile - allow user to export all variables, timesteps, layers · Issue #220 · CEMPD/VERDI · GitHub](https://github.com/CEMPD/VERDI/issues/220)  
For now, we are working on saving a tile plot image into shapefiles in a script. New builds will be posted very soon.

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [April 28, 2023, 4:15pm UTC](https://forum.cmascenter.org/t/saving-file-as-shape-in-verdi-scripting/4063/6 "2023-04-28T16:15:00Z")

</div>

As a work-around, you can [turn on CF-compliant I/O API output](https://www.cmascenter.org/ioapi/documentation/all_versions/html/ENVIRONMENT.html) and tthen use the (open-source) [GRASS GIS](https://grass.osgeo.org/) to convert gridded I/O API data to shapefiles. FWIW.
