# Problems with format of grid

**URL:** <https://forum.generic-mapping-tools.org/t/problems-with-format-of-grid/5123>\
**Category:** Q&A\
**Created:** [July 27, 2024, 4:29pm UTC](https://forum.generic-mapping-tools.org/t/problems-with-format-of-grid/5123 "2024-07-27T16:29:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexvillarroel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/alexvillarroel/32/3845_2.png) [@alexvillarroel](https://forum.generic-mapping-tools.org/u/alexvillarroel)\
**Post date:** [July 27, 2024, 4:29pm UTC](https://forum.generic-mapping-tools.org/t/problems-with-format-of-grid/5123/1 "2024-07-27T16:29:39Z")

</div>

Hi!, My problem is that i have a grid with the following info:  
gmt grdinfo valpobath.grd py base 12:24:14  
valpobath.grd: Title:  
valpobath.grd: Command: gmt xyz2grd bath.valpo.xyz -I0.000185185185185 -R-71.65/-71.52/-33.0599999997/-32.9785185182 -Gvalpobath.grd=cf  
valpobath.grd: Remark:  
valpobath.grd: Gridline node registration used [Cartesian grid]  
valpobath.grd: Grid file format: cf = GMT netCDF format (32-bit float, deprecated)  
valpobath.grd: x\_min: -71.65 x\_max: -71.52 x\_inc: 0.000185185185185 name: x n\_columns: 703  
valpobath.grd: y\_min: -33.0600000075 y\_max: -32.978518526 y\_inc: 0.000185185185227 name: y n\_rows: 441  
valpobath.grd: v\_min: -403.863616943 v\_max: 119.668083191 name: z  
valpobath.grd: scale\_factor: 1 add\_offset: 0  
valpobath.grd: format: classic  
valpobath.grd: Default CPT:

but I need convert the format to  
valpobath.grd: Gridline node registration used [Geographic grid]

I tried using grdconvert with -T option and with grdproject but doesn’t work  
Thanks

---

<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:** [July 27, 2024, 4:49pm UTC](https://forum.generic-mapping-tools.org/t/problems-with-format-of-grid/5123/2 "2024-07-27T16:49:28Z")

</div>

> [@alexvillarroel](#):
>
> -Gvalpobath.grd=cf

Why this?

> [@alexvillarroel](#):
>
> I tried using grdconvert with -T option and with grdproject but doesn’t work

Telling it didn’t work helps no one. Why you say it did not work?

Maybe you wanted to use **-fg** in the `xyz2grd` step.

---

<div class="post-metadata">

**Author:** ![alexvillarroel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/alexvillarroel/32/3845_2.png) [@alexvillarroel](https://forum.generic-mapping-tools.org/u/alexvillarroel)\
**Post date:** [July 27, 2024, 5:50pm UTC](https://forum.generic-mapping-tools.org/t/problems-with-format-of-grid/5123/3 "2024-07-27T17:50:34Z")

</div>

HI, =cf it’s bc i wanna the old format.  
The option -T only makes the change to pixel format. -fg works fine, thank you!  
Sorry by confused comments.
