# Error with psconvert on GMT 6.1.1

**URL:** <https://forum.generic-mapping-tools.org/t/error-with-psconvert-on-gmt-6-1-1/923>\
**Category:** Q&A\
**Created:** [October 2, 2020, 3:07pm UTC](https://forum.generic-mapping-tools.org/t/error-with-psconvert-on-gmt-6-1-1/923 "2020-10-02T15:07:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![roxanetissandier](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@roxanetissandier](https://forum.generic-mapping-tools.org/u/roxanetissandier)\
**Post date:** [October 2, 2020, 3:07pm UTC](https://forum.generic-mapping-tools.org/t/error-with-psconvert-on-gmt-6-1-1/923/1 "2020-10-02T15:07:36Z")

</div>

Hello everyone,

I am using GMT 6.1.1 and I have an issue with psconvert. The error is :  
psconvert [ERROR]: The file postseismic\_illapel\_0001.ps has no BoundingBox in the first 20 lines or last 256 bytes. Use -A option.

I am just trying to convert the postscript to pdf, and it was working on GMT 5.6.  
I tried many (many things) with -A option and other thing but I still cannot resolve this error. I was wondering if it was because I have scales outside of the map on my plot …?

Thank for your help,  
Cheers,

Roxane.

---

<div class="post-metadata">

**Author:** ![MarceloBanik](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/marcelobanik/32/479_2.png) [@MarceloBanik](https://forum.generic-mapping-tools.org/u/MarceloBanik)\
**Post date:** [October 2, 2020, 6:46pm UTC](https://forum.generic-mapping-tools.org/t/error-with-psconvert-on-gmt-6-1-1/923/2 "2020-10-02T18:46:12Z")

</div>

I would guess that there is some error in the sequence of  
-K  
-K -O  
-O  
if so, you could try to change to the new  
gmt begin  
gmt end  
without the actual ps file it is hard to be sure

---

<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:** [October 3, 2020, 12:02am UTC](https://forum.generic-mapping-tools.org/t/error-with-psconvert-on-gmt-6-1-1/923/3 "2020-10-03T00:02:14Z")

</div>

Have you checked that the ps is file is not simply empty? That’s the most likely cause for such error message.

---

<div class="post-metadata">

**Author:** ![roxanetissandier](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@roxanetissandier](https://forum.generic-mapping-tools.org/u/roxanetissandier)\
**Post date:** [October 5, 2020, 9:54am UTC](https://forum.generic-mapping-tools.org/t/error-with-psconvert-on-gmt-6-1-1/923/4 "2020-10-05T09:54:49Z")

</div>

Hello,

Thanks for your answers. There is no error in the sequence -K, -K -O and -O and the postscript is not empty because the ps was created with GMT 5.6…

---

<div class="post-metadata">

**Author:** ![MarceloBanik](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/marcelobanik/32/479_2.png) [@MarceloBanik](https://forum.generic-mapping-tools.org/u/MarceloBanik)\
**Post date:** [October 5, 2020, 11:33am UTC](https://forum.generic-mapping-tools.org/t/error-with-psconvert-on-gmt-6-1-1/923/5 "2020-10-05T11:33:59Z")

</div>

could you share the ps file? Without that, I think it is not possible to give any other advice.

---

<div class="post-metadata">

**Author:** ![roxanetissandier](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@roxanetissandier](https://forum.generic-mapping-tools.org/u/roxanetissandier)\
**Post date:** [October 5, 2020, 12:03pm UTC](https://forum.generic-mapping-tools.org/t/error-with-psconvert-on-gmt-6-1-1/923/6 "2020-10-05T12:03:32Z")

</div>

Yes, of course. I should have think about it ! Here is a link to download the ps file : [https://dl.ipgp.fr/ixjeyfim](https://dl.ipgp.fr/ixjeyfim)

---

<div class="post-metadata">

**Author:** ![MarceloBanik](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/marcelobanik/32/479_2.png) [@MarceloBanik](https://forum.generic-mapping-tools.org/u/MarceloBanik)\
**Post date:** [October 5, 2020, 12:45pm UTC](https://forum.generic-mapping-tools.org/t/error-with-psconvert-on-gmt-6-1-1/923/7 "2020-10-05T12:45:10Z")

</div>

I tried all GMT5 and GMT6 I have here, no one of them complain using the commands:  
`for gmt in GMT5.4.4 GMT5.4.5 GMT6.0.0 GMT6.1.0 GMT6.1.1 6.2.0; do gmtswitch $gmt; gmt psconvert postseismic_illapel_0072.ps -Tf;done`  
`for gmt in GMT5.4.4 GMT5.4.5 GMT6.0.0 GMT6.1.0 GMT6.1.1 6.2.0; do gmtswitch $gmt; gmt psconvert postseismic_illapel_0072.ps -Tf -A;done`

I just note that you send the file postseismic\_illapel\_0072.ps and in your first post appears postseismic\_illapel\_0001.ps, so I think they are not the same.

---

<div class="post-metadata">

**Author:** ![roxanetissandier](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@roxanetissandier](https://forum.generic-mapping-tools.org/u/roxanetissandier)\
**Post date:** [October 5, 2020, 3:30pm UTC](https://forum.generic-mapping-tools.org/t/error-with-psconvert-on-gmt-6-1-1/923/8 "2020-10-05T15:30:08Z")

</div>

Actually yes, the psconvert error was on the last runs (the script runs for several days, with a plot each day) and not on the first ones. That’s how I understood different errors on my script. Now it’s running, thanks a lot MarceloBanik ! 🙂
