# Problem with making GeoTIFF files

**URL:** <https://forum.generic-mapping-tools.org/t/problem-with-making-geotiff-files/528>\
**Category:** Q&A\
**Created:** [June 7, 2020, 11:12pm UTC](https://forum.generic-mapping-tools.org/t/problem-with-making-geotiff-files/528 "2020-06-07T23:12:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tianzeliu](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@tianzeliu](https://forum.generic-mapping-tools.org/u/tianzeliu)\
**Post date:** [June 7, 2020, 11:12pm UTC](https://forum.generic-mapping-tools.org/t/problem-with-making-geotiff-files/528/1 "2020-06-07T23:12:44Z")

</div>

I am trying to make a GeoTIFF file with GMT, which I could then view with Google Earth. Here are the commands I use:  
`gmt psxy RefCoord_70.txt -JB-96/22/29.5/45.5/6i -R-130/-64/22/52 -Sc0.025i -CBackAzi_cyclic.cpt -V > ReflectionPts_AllwoUW_standard_RectOverlap_2deg.ps`  
`gmt psconvert ReflectionPts_AllwoUW_standard_RectOverlap_2deg.ps -W+g -Tt -D../KMLFile -V`

However, the TIFF image generated by these commands doesn’t appear at the correct location and has the wrong size when it is opened in Google Earth. I am including my input data table and the CPT file in the attached ZIP file. I am using GMT 5.4.5. Thanks a lot! [TableNCPT.zip](https://forum.generic-mapping-tools.org/uploads/short-url/bpTdyeGIh4RfjjZ5SCKi7rpl0LT.zip) (554.0 KB)

Tianze

---

<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:** [June 8, 2020, 1:53am UTC](https://forum.generic-mapping-tools.org/t/problem-with-making-geotiff-files/528/2 "2020-06-08T01:53:16Z")

</div>

A couple of things.

1. You should have believed on what the `psconvert -W` warns you about.
2. I though we guessed better the Portrait/Landscape issue but at lest in this case you must use Portrait
3. You probably want transparency too

So, try this

```auto
gmt psxy RefCoord_70.txt -JB-96/22/29.5/45.5/6i -R-130/-64/22/52 -Sc0.025i -CBackAzi_cyclic.cpt -B0 --MAP_FRAME_TYPE=inside -P > lixo.ps

gmt psconvert lixo.ps -W+g -TG

```

---

<div class="post-metadata">

**Author:** ![tianzeliu](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@tianzeliu](https://forum.generic-mapping-tools.org/u/tianzeliu)\
**Post date:** [June 8, 2020, 4:01am UTC](https://forum.generic-mapping-tools.org/t/problem-with-making-geotiff-files/528/3 "2020-06-08T04:01:55Z")

</div>

That works. Thank you very much!

---

<div class="post-metadata">

**Author:** ![Yacob](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yacob/32/576_2.png) [@Yacob](https://forum.generic-mapping-tools.org/u/Yacob)\
**Post date:** [June 9, 2020, 9:05am UTC](https://forum.generic-mapping-tools.org/t/problem-with-making-geotiff-files/528/4 "2020-06-09T09:05:10Z")

</div>

Hi Tainzeliu,

I tried to insert the tiff image produced using the refined command by Joaquim. Still it did not fit in size and location to Google Earth. I have my Google Earth installed in Linux-ubuntu. I also use the latest version of GMT.

Yacob

---

<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:** [June 9, 2020, 9:38am UTC](https://forum.generic-mapping-tools.org/t/problem-with-making-geotiff-files/528/5 "2020-06-09T09:38:59Z")

</div>

Works fine on Windows, and the image is correctly referenced.

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/9ad0f06025884675d3f79ee2e092b3663e7399e7.jpeg)

---

<div class="post-metadata">

**Author:** ![Yacob](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yacob/32/576_2.png) [@Yacob](https://forum.generic-mapping-tools.org/u/Yacob)\
**Post date:** [June 9, 2020, 10:52am UTC](https://forum.generic-mapping-tools.org/t/problem-with-making-geotiff-files/528/6 "2020-06-09T10:52:36Z")

</div>

Thanks, Joaquim,

Here is mine from my Linux box.

 ![kml1](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/1X/f51b544fa2a269297243037d55c71a964a4625b0.jpeg)

---

<div class="post-metadata">

**Author:** ![Yacob](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yacob/32/576_2.png) [@Yacob](https://forum.generic-mapping-tools.org/u/Yacob)\
**Post date:** [June 11, 2020, 6:05pm UTC](https://forum.generic-mapping-tools.org/t/problem-with-making-geotiff-files/528/7 "2020-06-11T18:05:57Z")

</div>

Thanks again Joaquim. It works now as soon as I updated my Google Earth apps.

/Yacob
