Repository navigation
Ghost server use for maintainers - #7812
Conversation
This PR will place data and info from a ghost server (i.e., candidate, static, or test) in a subdirectory by the same name of the USERDIR. This way, anything valuable in server and cache will not get polluted by data from those servers.
joa-quim
left a comment
There was a problem hiding this comment.
WTF cpt. Man, you want us trucidate by the paladins of uniform luminance.
|
I dont think we finished discussing the planetary CPT so this is probably a placeholder for now. |
|
Well, the mercury CPT is the same used here https://astrogeology.usgs.gov/search/map/Mercury/Topography/MESSENGER/Mercury_Messenger_USGS_ClrShade_Global_2km . |
I cannot find a CPT there? Do you mean you back-engineered the CPT from the image and data? Or I guess you used the legend and sampled the rgb from each box in the bar? I note the strange yellow band with orange above and below in the legend. Are they trying to highlight a particular z-range? |
|
Yes, I back-engineered the CPT from this image. I created lists with the values (valores.txt) and with the colors (colores.txt). And them I make a continuos CPT with: I got this CPT: GenericMappingTools/gmtserver-admin#182 (comment) |
|
OK, if that is the official Mercury map then why not use this as the default, @joa-quim ? |
|
It's esoteric but who am I to censure it. |
Maybe we can ask them for the CPT file they used to make the plot? |
Yep. I just sent them an email. |
|
I believe this PR is now working well. If you do With static I get 56 failures on macOS. Some of these are real failures while most are earth relief related. If you can run the tests via |
|
If you build from this branch (which I think is ready for approval) you can try things like |
|
Here is the folder structure (only 3 levels are shown) after running the 4 commands you posted: Is the |
|
I just fixed issues related to cache, so that cache now goes under candidate, test, static but for others (e.g., oceania) it will go where it has always gone: in .gmt. So the
will create server. But if you did not rebuild the last 30 minutes you may wish to pull, build, delete the above and see what you get. |
|
I was using the latest commit |
|
If I move my .gmt and create a blank one, running those 4 commands gives Sam as you, so you can see the default (oceania) places both server and cache in the .gmt dir while the ghost servers places everything under the host server name. As intended, do you see any issues? |
|
The issue is the |
|
Right, OK will work on that too! |
|
Now I get |
It's easy to set |
|
Sure, local tests are easy. Just export and run. That is not a problem. Sounds like the CI test you can do the same think. For a simple command one can do |
|
Since all tests are executed by the |
|
Yes that is fine |
* Fix gmt get -Dcache looking for the hash table in the wrong directory Since 6.5.0 (#7812, #7879) gmt_hash_server.txt is stored in <USERDIR>/, but gmt get still read <USERDIR>/server/gmt_hash_server.txt. So -Dcache and -Dall failed with "Unable to access or read ..." (the error reported in #8895), or silently used a stale copy left in server/ by an older GMT. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * gmtget: Do not download the cache when -Q is given -Q means list but do not download (gmtget.rst), yet the -Dcache and -Dall cache part ignored it. That went unnoticed because the cache part usually failed before downloading anything; with the hash table found it would fetch every cache file (about 118 MB). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Revert "gmtget: Do not download the cache when -Q is given" Moved to its own branch (fix-gmtget-q-cache) to go in a separate PR. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Description of proposed changes
This PR follows the discussion on the data server setup, which now has been implemented and tested a bit. If the developers switch to this branch, build and run
gmt grdimage @mercury_relief_20m -B -png map --GMT_DATA_SERVER=candidatethen in a few seconds you should see
grdimage [NOTICE]: Remote data courtesy of GMT data server candidate [http://candidate.generic-mapping-tools.org]
If some of you could give it a try that would be good. Also would be good to make a plot with 6.4 and determine that nothing has changed there.