# Verdi (cross-section plot in script)

**URL:** https://forum.cmascenter.org/t/verdi-cross-section-plot-in-script/4156
**Category:** VERDI
**Created:** [June 9, 2023, 1:34am UTC](https://forum.cmascenter.org/t/verdi-cross-section-plot-in-script/4156 "2023-06-09T01:34:29Z")
**Posts on this page:** 5
**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: [June 9, 2023, 1:34am UTC](https://forum.cmascenter.org/t/verdi-cross-section-plot-in-script/4156/1 "2023-06-09T01:34:29Z")

</div>

Hello.  
I want to draw cross-section plots with the command. (-verticalCrossPlot X|Y \<row/column\> (NEW))  
But I am confused about using it.  
Can you give me any example of a cross-section plot?

This is my script.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/3/3605f16f00ba1cb90de49cacb68830ec14d6819a.png)

> <https://github.com/CEMPD/VERDI/blob/master/doc/User_Manual/VERDI_ch18.md>

**[-verticalCrossPlot X|Y \<row/column\> (NEW)]** creates a vertical cross-section plot. You indicate whether this will be an _x_ or _y_ cross-section plot and what row or column to use as the base.

---

<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: [June 12, 2023, 1:58pm UTC](https://forum.cmascenter.org/t/verdi-cross-section-plot-in-script/4156/2 "2023-06-12T13:58:28Z")

</div>

Please try using the latest version of VERDI, version 2.1.4.

Please also use quotations for the inputs. I will fix this in the documentation.

-verticalCrossPlot “X” “3” \

This creates an X cross section plot for Column 3.

I am attaching an image that shows the comparison between selecting only Column 3 in a tile plot, and the corresponding vertical cross section plot.

 ![vertical_cross_sect_plot_ X_col_3_with_tile_col_3](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/c/c54794d07b382eb83a62b872553da07975c08fb6.png)

---

<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: [June 14, 2023, 11:11pm UTC](https://forum.cmascenter.org/t/verdi-cross-section-plot-in-script/4156/3 "2023-06-14T23:11:14Z")

</div>

-verticalCrossPlot “Y” “3”   
Is this command for Row?

---

<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: [June 15, 2023, 3:41pm UTC](https://forum.cmascenter.org/t/verdi-cross-section-plot-in-script/4156/4 "2023-06-15T15:41:17Z")

</div>

Yes, according to this syntax, to obtain a vertical cross section plot along the Y axis or row you would use:  
-verticalCrossPlot “Y” “3”

I’ve modified the user documentation as follows:  
**-verticalCrossPlot X|Y \<column/row\>**

---

<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: [June 25, 2023, 8:29pm UTC](https://forum.cmascenter.org/t/verdi-cross-section-plot-in-script/4156/5 "2023-06-25T20:29:21Z")

</div>

How can I use subdomain for corssplot?  
**[-subDomain]** sets the VERDI domain matching the currently selected dataset to the bounding box specified by its arguments. The currently selected dataset is the most recently added dataset. It is often handy to type **-subdomain** commands into VERDI’s standard input if you are trying to select a very precise subdomain (such as that needed for a vertical cross-section plot).

I tried to use with the same command that I used for tile plot.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/1/13452576eb262292b8df8117657dade7cbcbf639.png)

It is not working with this error

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/5/5e88d74c0d6c12bfa90bc8146ad89dd38d46ba53.png)
