GenericMappingTools / gmt

The Generic Mapping Tools
https://www.generic-mapping-tools.org
Other
824 stars 343 forks source link

Add CPT of the geological time scale #4448

Open Esteban82 opened 3 years ago

Esteban82 commented 3 years ago

Add the CPT with the colors defined by the ICS.

https://ccgm.org/img/cms/2013%20Chart%20CGMW%20color%20codes.pdf

There are some done by Christian Heine. Maybe only the times must be checked. https://tectonicwaters.wordpress.com/2014/09/06/geological-time-scale-color-palettes-for-gmt/ https://bitbucket.org/chhei/gmt-cpts/src/master/ http://soliton.vm.bytemark.co.uk/pub/cpt-city/heine/

Are you willing to help implement and maintain this feature? Yes

Esteban82 commented 3 years ago

Maybe this could be discussed in the next Thursday in the community meeting.

PaulWessel commented 3 years ago

Yes, I will add it to the agenda

Esteban82 commented 3 years ago

I copy the notes from the community meetings

In general, think it is OK to add to cache but not to GMT core since it is not generic and not tied to data we provide

Esteban82 commented 3 years ago

I shared some plots with the geological CPT. I think that the plots can be useful. Maybe one or two of these plots can be polished and add in the gallery (or in the forum showcase).

Batchs scripts: Earth_Age_CPT-City.zip

The important commands used were (in a batch file):

REM Links of the CPT
REM Geological CPT
rem gmt which -G > %color% "http://soliton.vm.bytemark.co.uk/pub/cpt-city/heine/GTS2012_eons.cpt"
rem gmt which -G > %color% "http://soliton.vm.bytemark.co.uk/pub/cpt-city/heine/GTS2012_eras.cpt"
rem gmt which -G > %color% "http://soliton.vm.bytemark.co.uk/pub/cpt-city/heine/GTS2012_periods.cpt"
    gmt which -G > %color% "http://soliton.vm.bytemark.co.uk/pub/cpt-city/heine/GTS2012_epochs.cpt"
rem gmt which -G > %color% "http://soliton.vm.bytemark.co.uk/pub/cpt-city/heine/GTS2012_ages.cpt"

REM Gee Kent 2007
    gmt which -G > %color% "http://soliton.vm.bytemark.co.uk/pub/cpt-city/heine/GeeK07.cpt"

REM Only for DOS
        set /p cpt=<%color%

REM Plot
        gmt grdgradient @earth_relief_05m_p -A270 -G%SHADOW% -Ne0.5
    gmt grdimage -R -J -O -K @earth_age_05m_p >> %OUT% -C%cpt% -I%SHADOW%
    gmt psscale -R -J -O -K -DJRM+o0.3c/0+w-7/0.618c -C%cpt% -I >> %OUT% -G0/200 -L0 
rem gmt psscale -R -J -O -K -DJRM+o0.3c/0+w-7/0.618c -C%cpt% -I >> %OUT% -G0/200 -B+l"Age (Ma)" 
    gmt psbasemap -R -J -O -K >> %OUT% -B0
    gmt pscoast -R -J -O -K  >> %OUT% -Df -W1/faint

Earth_Age_CPT-City_Periods_Ma

Earth_Age_CPT-City_Periods_Names

Earth_Age_CPT-City_Epochs_Ma Earth_Age_CPT-City_Epochs_Name Earth_Age_CPT-City_Geek07 Earth_Age_CPT-City_Geek07_Chron

PaulWessel commented 3 years ago

I agree these are useful and perhaps we can add some of this to the data set description of the age grids

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.

seisman commented 3 years ago

I agree these are useful and perhaps we can add some of this to the data set description of the age grids

It sounds good.

What about adding the script by @Esteban82 as an example?

Esteban82 commented 3 years ago

@seisman I like your idea.

However I think it may be a bit simpler for an official example. Maybe some other feature/s could be add. What do you think?

seisman commented 3 years ago

However I think it may be a bit simpler for an official example

I actually feel that the official examples are a little too complicated. These official examples are good to show how powerful GMT is and how beautiful plots GMT can produce.

For users, especially new GMT users, they may want to see more "simple" examples to do a simple thing (e.g., plot lines with different styles).

The PyGMT Gallery provides many "simple" examples, and I think they're more useful.

seisman commented 3 years ago

We had some disscussions in https://github.com/GenericMappingTools/gmt/issues/3320 one year ago.

seisman commented 2 years ago

@Esteban82 We have already set up the GMT Examples repository to host simple examples. I think your example above is pretty good and simple and should be moved to that repository.

Esteban82 commented 2 years ago

Thanks seisman. I will keep on mind.

joa-quim commented 1 year ago

Where are we in this? Can it be closed?

PaulWessel commented 1 year ago

I like the idea of harvesting these examples and add them somewhere - we do have a long to geo types (like me) doing GMT maps like this so try to find a good spot.

joa-quim commented 11 months ago

Status of this?

Esteban82 commented 11 months ago

I think that we could an example. So. this should to documentation. I will add a label.

PaulWessel commented 11 months ago

This should probably go in to https://www.generic-mapping-tools.org/remote-datasets/ via the GMT repo called remote-datasets.

Esteban82 commented 11 months ago

Well in fact I would be better to put it in the GMT Examples repository. So, I think we have to close this issue here and open a new one in that repository.

joa-quim commented 11 months ago

We have so many (never used) CPTs that we may as well have these CPTs in our source tree. And than, add these examples.

PaulWessel commented 11 months ago

I am fine with ex5? But those CPTs should probably go in the cache

joa-quim commented 3 months ago

Can we go along and add those CPTs?

joa-quim commented 3 months ago

I meant to say that we should add those CPTs, not closing the issue.

Esteban82 commented 3 months ago

Yes, sorry.

Esteban82 commented 3 months ago

So, I have to do the following two things, right?

  1. Add the 5 geological CPT to the cache.
  2. Add an example in GMT Examples.
joa-quim commented 3 months ago

Not sure about 1. I think we must add them to share/cpt. @remkos did the last edits of this, if I'm remembering it right.

Esteban82 commented 3 months ago

Not sure about 1. I think we must add them to share/cpt. @remkos did the last edits of this, if I'm remembering it right.

I believe there are two options for adding the CPTs:

  1. within GMT (in share/cpt ?). Here the CPT will be include in GMT (so we will need a new release).
  2. on the GMT servers as we did for the planetary CPT. No need for a new release.

I vote for 2.

joa-quim commented 3 months ago

But we can do 1. and 2. Where 1. will be official when a new release comes. 2. is kind of have it but hidden

remkos commented 3 months ago

I can take care of adding the CPTs to the share/cpt folder. It also requires an addition to the Cookbook where all the included colormaps are shown. I will do that as well.

It would be great if @Esteban82 could then add the example to GMT examples.

joa-quim commented 3 months ago

Thanks, I'll keep a eye and take notes so I'll know how to do it next time.

Esteban82 commented 3 months ago

Ok @remkos. I will add the example to GMT examples.