# "grdview \[ERROR\]: Map region exceeds 360 degrees" when plotting data in UTM coordinates with grdview

**URL:** <https://forum.generic-mapping-tools.org/t/grdview-error-map-region-exceeds-360-degrees-when-plotting-data-in-utm-coordinates-with-grdview/4939>\
**Category:** PyGMT Q&A\
**Created:** [May 31, 2024, 6:46pm UTC](https://forum.generic-mapping-tools.org/t/grdview-error-map-region-exceeds-360-degrees-when-plotting-data-in-utm-coordinates-with-grdview/4939 "2024-05-31T18:46:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spaghetticoder](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@spaghetticoder](https://forum.generic-mapping-tools.org/u/spaghetticoder)\
**Post date:** [May 31, 2024, 6:46pm UTC](https://forum.generic-mapping-tools.org/t/grdview-error-map-region-exceeds-360-degrees-when-plotting-data-in-utm-coordinates-with-grdview/4939/1 "2024-05-31T18:46:38Z")

</div>

> [@](#):
>
> I’m encountering errors ‘Map region exceeds 360 degrees’ and ‘General map projection error’ when attempting to use grdview in PyGMT to plot a 3D perspective of elevation data in UTM coordinates. How can I resolve these errors? Should I include a basemap or configure a projection parameter for grdview? Alternatively, is grid data in UTM coordinates simply not supported by grdview?

Here is the code I’ve used and the complete error message it produced:

```python
import pygmt
dem_file = "ASTGTMV003_N53E158_dem.tif"
cut_file = "cut.grd"
reproj_data = pygmt.grdproject(
    grid=dem_file,
    projection="+proj=utm+zone=57+datum=WGS84"
)
utm_region = [473985.689738, 478012.268774, 5874985.86281, 5879019.97682]
pygmt.grdcut(
    grid=reproj_data,
    region=utm_region,
    outgrid=cut_file
)
fig = pygmt.Figure()
fig.grdview(
    grid=cut_file,
    perspective=[-100, 30],
    frame="a",
    zsize="3c",
    surftype="s",
    cmap="geo",
    plane="80+ggray"
)
fig.show()

```

## [quote]grdview [ERROR]: Map region exceeds 360 degrees grdview [ERROR]: General map projection error

GMTCLibError Traceback (most recent call last)  
 in \<cell line: 15\>()  
13 )  
14 fig = pygmt.Figure()  
—\> 15 fig.grdview(  
16 grid=cut\_file,  
17 perspective=[-100, 30],

3 frames  
/usr/local/lib/python3.10/site-packages/pygmt/helpers/decorators.py in new\_module(\*args, \*\*kwargs)  
607 raise GMTInvalidInput(msg)  
608  
 → 609 return module\_func(\*args, \*\*kwargs)  
610  
611 new\_module.aliases = aliases

/usr/local/lib/python3.10/site-packages/pygmt/helpers/decorators.py in new\_module(\*args, \*\*kwargs)  
771  
772 # Execute the original function and return its output  
 → 773 return module\_func(\*bound.args, \*\*bound.kwargs)  
774  
775 return new\_module

/usr/local/lib/python3.10/site-packages/pygmt/src/grdview.py in grdview(self, grid, \*\*kwargs)  
153 ):  
154 kwargs[“G”] = vdrapegrid  
 → 155 lib.call\_module(  
156 module=“grdview”, args=build\_arg\_list(kwargs, infile=vingrd)  
157 )

/usr/local/lib/python3.10/site-packages/pygmt/clib/session.py in call\_module(self, module, args)  
657 status = c\_call\_module(self.session\_pointer, module.encode(), mode, argv)  
658 if status != 0:  
 → 659 raise GMTCLibError(  
660 f"Module ‘{module}’ failed with status code {status}:\n{self.\_error\_message}"  
661 )

GMTCLibError: Module ‘grdview’ failed with status code 74:  
grdview [ERROR]: Map region exceeds 360 degrees  
grdview [ERROR]: General map projection error[/quote]  
I appreciate any guidance or suggestions you can provide. Thank you very much for your assistance!

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [May 31, 2024, 7:04pm UTC](https://forum.generic-mapping-tools.org/t/grdview-error-map-region-exceeds-360-degrees-when-plotting-data-in-utm-coordinates-with-grdview/4939/2 "2024-05-31T19:04:28Z")

</div>

Can you please format your post??

---

<div class="post-metadata">

**Author:** ![mkononets](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/mkononets/32/4029_2.png) [@mkononets](https://forum.generic-mapping-tools.org/u/mkononets)\
**Post date:** [May 31, 2024, 8:30pm UTC](https://forum.generic-mapping-tools.org/t/grdview-error-map-region-exceeds-360-degrees-when-plotting-data-in-utm-coordinates-with-grdview/4939/3 "2024-05-31T20:30:40Z")

</div>

> [@Joaquim](#):
>
> Can you please format your post??

this and below

> [@spaghetticoder](#):
>
> configure a projection parameter for grdview
