LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 10-15-2015, 01:50 PM   #1
Sonia Bargn
LQ Newbie
 
Registered: Oct 2014
Location: Zanjan
Posts: 24

Rep: Reputation: Disabled
how to make a new color table in GMT


Hi everybody
hope everything is just safe and sound.
there are some color tables (cpt files) in GMT and "makecpt" command helps to use these cpt files. but I want to create a new cpt file with my own arbitrary color scale.
how can I do that?
Many thanks.

Last edited by Sonia Bargn; 10-16-2015 at 02:53 AM.
 
Old 10-15-2015, 04:14 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,245

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
Quote:
Originally Posted by Sonia Bargn View Post
Hi everybody
hope everything is just safe and sound.
how can I create a new cpt file in GMT? I'm expected to create a new color scale.

Many thanks.
We also expect you to read the LQ Rules about posting the same question multiple times, and the "Question Guidelines". Had you even tried to look this up, the VERY FIRST HIT in Google for "how can I create a new cpt file in gmt" is:
http://gmt.soest.hawaii.edu/doc/5.1.0/makecpt.html

...amazingly, from the GMT site.
 
Old 10-15-2015, 05:10 PM   #3
Sonia Bargn
LQ Newbie
 
Registered: Oct 2014
Location: Zanjan
Posts: 24

Original Poster
Rep: Reputation: Disabled
Dear TB0ne
I mean a new table in "makecpt" command.
How can I create a new table?
 
Old 10-15-2015, 05:21 PM   #4
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,279
Blog Entries: 3

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
Quote:
Originally Posted by Sonia Bargn View Post
I'm expected to create a new color scale.
Hi...

I know nothing about this program or how one would do this but for the benefit of those who might be able to help, what color scale or range are you wanting to produce?

Regards...
 
Old 10-15-2015, 05:36 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,218

Rep: Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517
only a very FEW of us know what Generic Mapping Tools ( GMT ) are and even LESS know what a color pallet is and what it is used for
( GDAL and ISIS3 are the tools i use most and Qgis)

you really need to be specific
and have you even bothered to READ!!! the "--help" page??????
http://gmt.soest.hawaii.edu/doc/5.1.0/makecpt.html
or
Code:
makecpt --help

-----/* and read */ ----

man makecpt

Last edited by John VV; 10-15-2015 at 05:37 PM.
 
Old 10-16-2015, 02:44 AM   #6
Sonia Bargn
LQ Newbie
 
Registered: Oct 2014
Location: Zanjan
Posts: 24

Original Poster
Rep: Reputation: Disabled
Dear ardvark71
colors can be based on RGB codes (red,green,blue: for example black defines by 0/0/0 and white is 255/255/255. other colors is a range between these codes) in this program, I want a color scale which shows white for zero and then,blue, green, yellow, red till 50. unfortunately this color scale in not in program's default. the point is, color scale must be continuous. cpt file is a file which defines this RGB codes. I don't know how can I make my own continuous color scale.


Quote:
Originally Posted by ardvark71 View Post
Hi...

I know nothing about this program or how one would do this but for the benefit of those who might be able to help, what color scale or range are you wanting to produce?

Regards...
 
Old 10-16-2015, 02:48 AM   #7
Sonia Bargn
LQ Newbie
 
Registered: Oct 2014
Location: Zanjan
Posts: 24

Original Poster
Rep: Reputation: Disabled
Dear John VV
I've read the help page, but it states how you can use from program's color table, I wanna make a new color table.
 
Old 10-16-2015, 09:44 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,245

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
Quote:
Originally Posted by Sonia Bargn View Post
Dear John VV
I've read the help page, but it states how you can use from program's color table, I wanna make a new color table.
If you "wanna" make a new table, then READ the page you were given in the first reply. From the top of that page:
Quote:
Originally Posted by makecpt Page
makecpt is a utility that will help you make color palette tables (cpt files). You define an equidistant set of contour intervals or pass your own z-table, and create a new cpt file based on an existing master cpt file. The resulting cpt file can be reversed relative to the master cpt, and can be made continuous or discrete. For color tables beyond the standard GMT offerings, visit cpt-city: http://soliton.vm.bytemark.co.uk/pub/cpt-city/.
Read the instructions and follow them.
 
Old 10-16-2015, 10:54 AM   #9
Sonia Bargn
LQ Newbie
 
Registered: Oct 2014
Location: Zanjan
Posts: 24

Original Poster
Rep: Reputation: Disabled
I don't know how to define an equidistant set of intervals that result a continuous color scale, can u do a great favor and help me?
 
Old 10-16-2015, 11:32 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,245

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
Quote:
Originally Posted by Sonia Bargn View Post
I don't know how to define an equidistant set of intervals that result a continuous color scale, can u do a great favor and help me?
Again, read the LQ Rules...text-speak isn't good. And we will always be happy to HELP you...but we will NOT write things for you.

Show us what effort you have put forth, and tell us where you're stuck. Otherwise, you're just continuing to ask for a handout. You didn't appear to have done any research on how to do this (re: first hit in Google had the answer), and now you're asking us to write things for you. ESPECIALLY since you've been asking about GMT for about a year now, AND given the fact that there is a link on the web page you were handed that has SAMPLE CPT files already there for you to view.

Sorry, but no.

Last edited by TB0ne; 10-16-2015 at 12:03 PM.
 
Old 10-19-2015, 04:14 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


http://www.linuxquestions.org/questi...0/#post5434895
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make a cpt file at GMT(generic mapping tools) Sonia Bargn Linux - Software 3 10-16-2015 09:41 AM
Timezone in reverse. GMT+4 works as GMT-4 Lockywolf Slackware 3 05-20-2012 06:25 PM
What is the best linux version for a Dell Latitude CPT c? afullmetalwar Linux - Software 8 06-05-2010 01:01 PM
What's the best linux distro for a Dell Latitude cpt ? cardboardman Linux - Software 6 03-04-2005 01:36 PM
Sound on a Dell Latitude Cpt-C locazor Linux - Hardware 3 01-01-2004 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration