# Domain bounds in Python Variable

**URL:** <https://vapor.discourse.group/t/domain-bounds-in-python-variable/411>\
**Category:** Uncategorized\
**Created:** [September 26, 2024, 2:38am UTC](https://vapor.discourse.group/t/domain-bounds-in-python-variable/411 "2024-09-26T02:38:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![duaner](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@duaner](https://vapor.discourse.group/u/duaner)\
**Post date:** [September 26, 2024, 2:38am UTC](https://vapor.discourse.group/t/domain-bounds-in-python-variable/411/1 "2024-09-26T02:38:59Z")

</div>

Hi:

When creating a new variable using Tools\>Python Variables, how can I get the domain bounds from within the Python code?

Thanks, --d.r.

---

<div class="post-metadata">

**Author:** ![pearse](https://yyz2.discourse-cdn.com/free1/user_avatar/vapor.discourse.group/pearse/32/177_2.png) [@pearse](https://vapor.discourse.group/u/pearse)\
**Post date:** [September 27, 2024, 5:42pm UTC](https://vapor.discourse.group/t/domain-bounds-in-python-variable/411/2 "2024-09-27T17:42:14Z")

</div>

Hi,

The domain bounds will depend on the variables you’re interested in. You can acquire them by checking the “Include Coordinate Variables” checkbox under the Input Variables selector. You will then have access to the coordinate variables of your input variables.

For example, I’ve selected the 2D variable ACGRDFLX from a WRF output dataset. I can then access its coordinate variable XLATY and acquire min and max values for it.

 ![Screen Shot 2024-09-27 at 11.40.51 AM](https://global.discourse-cdn.com/free1/uploads/vapor/original/1X/9f21b91238105ebdf9283ed3145ec424c6c9650a.png)
