# Problems with makecpt using roma or batlow color palettes

**URL:** <https://forum.generic-mapping-tools.org/t/problems-with-makecpt-using-roma-or-batlow-color-palettes/2366>\
**Category:** Q&A\
**Created:** [November 24, 2021, 2:52pm UTC](https://forum.generic-mapping-tools.org/t/problems-with-makecpt-using-roma-or-batlow-color-palettes/2366 "2021-11-24T14:52:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gg1slb](https://avatars.discourse-cdn.com/v4/letter/g/b5ac83/32.png) [@gg1slb](https://forum.generic-mapping-tools.org/u/gg1slb)\
**Post date:** [November 24, 2021, 2:52pm UTC](https://forum.generic-mapping-tools.org/t/problems-with-makecpt-using-roma-or-batlow-color-palettes/2366/1 "2021-11-24T14:52:07Z")

</div>

Hello I hope someone can help with this question. I am trying to make color palette using one of the color models from Fabio Crameri and I am hitting the same error message:

command line:

_gmt makecpt -Cbatlow -T-1/1/0.2 \> ./batlow.cpt_

_gmt makecpt -Croma -T-1/1/0.2 \> roma.cpt_

The error message which is the same for both models:  
-makecpt [INFORMATION]: Prepare CPT via the master file batlow  
-makecpt [INFORMATION]: Reading CPT from File batlow.cpt  
-makecpt [ERROR]: Failed to decode batlow.cpt

It will work with romaO or batlowK or batlowS.

I am sure there is something I am missing as this is a very similar command.

I am sure gmt version 6.2.0

thanks in advance

---

<div class="post-metadata">

**Author:** ![biggle1856](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/biggle1856/32/3169_2.png) [@biggle1856](https://forum.generic-mapping-tools.org/u/biggle1856)\
**Post date:** [November 24, 2021, 4:03pm UTC](https://forum.generic-mapping-tools.org/t/problems-with-makecpt-using-roma-or-batlow-color-palettes/2366/2 "2021-11-24T16:03:23Z")

</div>

Using redirection creates an empty file first.  
makecpt will first try to read a local file.  
The way you have written it makecpt gets confused because the file it is trying to read is empty  
Choose a different name for the output file (and delete any existing batlow.cpt or roma.cpt in your local directory)
