Cpt-city, now in Rails

Possibly you’re familiar with cpt-city, an archive of GMT colour palettes (and other formats). I’ve recently rewritten the site in Rails, now available at

https://phillips.shef.ac.uk/pub/cpt-city/

Previous users should find the site very similar to the original. I’d be interested in any comments or bugs (bound to be a few).

Why on Earth would one do that? The original site (from 2004, yikes) was (is) entirely static, generated by a rat’s nest of Perl and shell scripts, took an age to generate and upload so fixing a spelling mistake was painful, adding new colour schemes a drudge. On moving the original site to its current location I found that the site statistics broke and I decided to rewrite rather than dive back into the Perl, Ruby’s much more fun, and now that everything is done on the server, deployment takes 45s and new schemes are easy to add.

The source for the site will be available on GitLab in a couple of weeks; I’ll add a link from the site when I’ve done a bit of tidying.

Edit: source now available at GitLab

5 Likes

Nice :slight_smile:
Should be in Announcements though

That was actually my first thought, but it’s not

News and announcements from the GMT team: new releases, workshops,
events, and more!

Thanks @jjg, for letting us know. I have updated the links in the GMT documentation.

1 Like

Hi @jjg thanks for this information and even more for maintaining and improving these resources! Also, the PyGMT docs were already updated by @seisman.