# Is there a way to grid file in a stereographic projection?

**URL:** https://forum.generic-mapping-tools.org/t/is-there-a-way-to-grid-file-in-a-stereographic-projection/3207
**Category:** Q&A
**Tags:** gmt
**Created:** [August 14, 2022, 3:02pm UTC](https://forum.generic-mapping-tools.org/t/is-there-a-way-to-grid-file-in-a-stereographic-projection/3207 "2022-08-14T15:02:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rede1](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@Rede1](https://forum.generic-mapping-tools.org/u/Rede1)
#### Post date: [August 14, 2022, 3:02pm UTC](https://forum.generic-mapping-tools.org/t/is-there-a-way-to-grid-file-in-a-stereographic-projection/3207/1 "2022-08-14T15:02:46Z")

</div>

Hello everyone;  
I’m using a stereographic projection for my maps, but I’m also using a grid data with xyz2grd.  
The grid file seems to be in a Mercator projection and is not matching the -JS I’m using, even when I specify a -JS to the grdimage and grdconour.

Is there a way to grid on that projection?

Thank you for your help

---

<div class="post-metadata">

### Author: ![EJFielding](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ejfielding/32/82_2.png) [@EJFielding](https://forum.generic-mapping-tools.org/u/EJFielding)
#### Post date: [August 15, 2022, 4:30am UTC](https://forum.generic-mapping-tools.org/t/is-there-a-way-to-grid-file-in-a-stereographic-projection/3207/2 "2022-08-15T04:30:06Z")

</div>

Hi Rede,

The `xyz2grd` command reformats data into a grid but does not change the projection. You can change the projection of the xyz data points with `mapproject` to the `-JS` projection that you want before converting the data to a grid. The grid will have the projection that you used in the output of `mapproject`.

++Eric

---

<div class="post-metadata">

### Author: ![Rede1](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@Rede1](https://forum.generic-mapping-tools.org/u/Rede1)
#### Post date: [August 15, 2022, 10:55am UTC](https://forum.generic-mapping-tools.org/t/is-there-a-way-to-grid-file-in-a-stereographic-projection/3207/3 "2022-08-15T10:55:41Z")

</div>

Hi Eric,  
Thank you very much for your suggestion, I’ll try with mapproject.  
Thank you
