Skip to content

Testing new planets relief grids. #219

Closed

Description

@Esteban82

I made this script to test the new relief grids in the test directory. For all the grids I use the geo cpt.

I made a different issue so it is easy to find.

#!/bin/bash -e
# Script to test the grids

list=(mars mercury moon pluto venus) # Full list
gmt set GMT_DATA_SERVER=test

for set in ${list[@]}; do
	gmt begin remote_planets_grids_${set} png
		gmt subplot begin 2x1 -Fs15c/12c -Rg -JH15c -A -T"${set}_relief"
		gmt grdcut @${set}_relief_06m -Rg -G${set}_relief_06m.grd
    	gmt subplot set 0 -A"6m"
		gmt grdimage ${set}_relief_06m.grd -Rg -Cgeo
		gmt subplot set 1 -A"5m"
        gmt grdcut @${set}_relief_05m -Rg -G${set}_relief_05m.grd
		gmt grdimage @${set}_relief_05m -Rg -Cgeo
		gmt subplot end
	gmt end #show
done
rm *.grd

remote_planets_grids_mars
remote_planets_grids_mercury
remote_planets_grids_moon
remote_planets_grids_pluto
remote_planets_grids_venus

Activity

  1. PaulWessel commented on Aug 25, 2023

    @PaulWessel
    Contributor

    Think this looks good. Pretty sure Pluto was only imaged from one side of the planet - there is no global view:

    image

  2. Esteban82 commented on Aug 25, 2023

    @Esteban82
    MemberAuthor

    Yes, there elevation data in only "half" of the planet.

  3. Esteban82 commented on Aug 26, 2023

    @Esteban82
    MemberAuthor

    Testing defaults CPT

    There is no defaults CPT for Venus and Pluto yet.

    planets_defaultCPT

    Script:

    gmt begin planets_defaultCPT png
        gmt subplot begin 2x3 -Fs5/0 -B+n -Rd -JQ5c
            gmt grdimage -c @mars_relief_30m    
            gmt grdimage -c @mercury_relief_30m 
            gmt grdimage -c @moon_relief_30m    
            gmt grdimage -c @venus_relief_30m   -Crainbow
            gmt grdimage -c @pluto_relief_30m   -Crainbow
    gmt end
    
  4. PaulWessel commented on Aug 26, 2023

    @PaulWessel
    Contributor

    Weren't there candidates from back when this started? I think I asked David but no reply. I can ask again.

  5. Esteban82 commented on Aug 26, 2023

    @Esteban82
    MemberAuthor

    I think I asked David but no reply. I can ask again.

    Yes, I think so. Also we could ask in the forum.

  6. PaulWessel commented on Aug 26, 2023

    @PaulWessel
    Contributor
  7. PaulWessel commented on Aug 26, 2023

    @PaulWessel
    Contributor

    An odd thing it is 0.04 deg longitude by 0.03 deg latitude. Will be a good test for our scripts! Pixels would be2.4 x 1.8 arc minutes.

  8. Esteban82 commented on Aug 26, 2023

    @Esteban82
    MemberAuthor

    I try to process it but I am not sure how to modify venus_relief.recipe (specially the table). Check the branch Venus_Sandwell.

  9. PaulWessel commented on Aug 28, 2023

    @PaulWessel
    Contributor

    I cannot find venus_relief.cpt in that branch or elsewhere ?

  10. Esteban82 commented on Sep 15, 2023

    @Esteban82
    MemberAuthor

    Well, Paul asked and NASA doesn't have CPT for Venus and Pluto. So I propose to choose some master CPT that are already available. In the future it can be changed to a specific CPT.

    I think that the simplest solution would be to choose batlow (the color-blinded version of the rainbow).

    First I do it directly with batlow but the distributions of altitudes led to few colors on the map. So I use grd2cpt from the full resolution available.

    Pluto

    Batlow directly

    pluto_batlow

    grd2cpt

    pluto_relief_cpt

    gmt set GMT_DATA_SERVER=candidate
    planet=venus
    dem=@${planet}_relief_01m
    cpt=${planet}_relief.cpt
    gmt grdcut $dem -Rd -G${planet}.nc
    gmt grd2cpt ${planet}.nc -Cbatlow -Z > $cpt
    gmt begin ${planet}_relief_cpt png
    	gmt grdimage ${planet}.nc -Baf -Rd -C$cpt
    	gmt colorbar -Ba
    gmt end
    gmt grdimage ${planet}.nc -png ${planet}_batlow -Baf -Cbatlow
    
  11. Esteban82 commented on Sep 15, 2023

    @Esteban82
    MemberAuthor

    Venus

    venus_batlow
    venus_relief_cpt

    gmt set GMT_DATA_SERVER=candidate
    planet=venus
    dem=@${planet}_relief_01m
    cpt=${planet}_relief.cpt
    gmt grdcut $dem -Rd -G${planet}.nc
    gmt grd2cpt ${planet}.nc -Cbatlow -Z > $cpt
    gmt begin ${planet}_relief_cpt png
    	gmt grdimage ${planet}.nc -Baf -Rd -C$cpt
    	gmt colorbar -Ba
    gmt end
    gmt grdimage ${planet}.nc -png ${planet}_batlow -Baf -Cbatlow
    
  12. Esteban82 commented on Sep 15, 2023

    @Esteban82
    MemberAuthor

    So my proposal is to use the cpt created with grd2cpt for Venus and Pluto. Maybe another master cpt could be used (instead of batlow) but in any case I think you have to use a CPT created with grd2cpt. Let me know if you agree so I can do the PR.

  13. joa-quim commented on Sep 15, 2023

    @joa-quim
    Member

    Those CPTs are not comparable. The one produced by grd2cpt is histogram equalized whilst the other is linear. The default CPT should not be a histogram equalized.

  14. Esteban82 commented on Sep 15, 2023

    @Esteban82
    MemberAuthor

    Ok, altough I don't understand why should not be a histogram equalized.

  15. 28 remaining items

  16. PaulWessel commented on Oct 1, 2023

    @PaulWessel
    Contributor

    Hi @joa-quim and @Esteban82. Some issues with Sandwellʻs faaerror grid. The original file he shares says this

    grav_error_32.1.nc: v_min: -7.80630970001 v_max: 58.2441101074 name: z

    However, his file also reveals

    grav_error_32.1.nc: Command: grdsample -R-180/180/-80/80 -I1m @GMTAPI@-S-I-G-G-G-N-000001 -Ggrav_error_32.1.nc -fg --GMT_HISTORY=readonly

    which must mean he ran grdblend or something which then called grdsample. Anyway, pretty sure the uncertainty in an FAA node cannot be negative (probably cannot be zero either). So I think we should

    1. Set all nodes that are <= 0 to NaN
    2. Ensure the @arth_faaerror.cpt starts at 0.

    Comments?

  17. PaulWessel commented on Oct 1, 2023

    @PaulWessel
    Contributor

    @Esteban82, will you be able to redo Mercury or do you want me to do it?

  18. Esteban82 commented on Oct 1, 2023

    @Esteban82
    MemberAuthor

    @Esteban82, will you be able to redo Mercury or do you want me to do it?

    Yes, it is being copied right now.

  19. Esteban82 commented on Oct 2, 2023

    @Esteban82
    MemberAuthor

    Mercury fix!

    planets_defaultCPT

  20. PaulWessel commented on Oct 2, 2023

    @PaulWessel
    Contributor

    Great, thanks! Maybe you can approve #242 which I wrote just to count the number of files on staging or on the server. i think all files are there.

  21. PaulWessel commented on Oct 2, 2023

    @PaulWessel
    Contributor

    Maybe your plot of 5 should be made into a script in remote_data but also do all the earth files. It will be 22 I think. Ideally a script that detects the number of data and loops over them. Since this is 01d (I guess) it will be quick.

    I wanted to have a second look at the MSS and now in my flooded inbox and 50 web tabs I cannot find the message from you with the links to the two candidates(french and IGPP). Please resend or point out the git page.

  22. PaulWessel commented on Oct 2, 2023

    @PaulWessel
    Contributor

    Also, any other global images we should consider, e.g., land classifications? We would treat them the way we do day and night.

  23. Esteban82 commented on Oct 2, 2023

    @Esteban82
    MemberAuthor

    I wanted to have a second look at the MSS and now in my flooded inbox and 50 web tabs I cannot find the message from you with the links to the two candidates(french and IGPP). Please resend or point out the git page.

    Both grids were on the https://topex.ucsd.edu/pub/?C=M;O=D. I see now that the original grids were removed (or renamed).
    Now, there is this directory https://topex.ucsd.edu/pub/MSS_replace/ with this https://topex.ucsd.edu/pub/MSS_replace/MSS_construction_10.pdf. Maybe is WIP. I think that the better thing to do is to write directly to Sandwell.

  24. PaulWessel commented on Oct 2, 2023

    @PaulWessel
    Contributor

    Looks to me we need to use his Sept 29, 2023 file. So the recipe needs to be edited to remove the directory name, right?
    I may need to edit the download script again (and recipes) since we want to interfere with the downloaded file (set z <= 0 to NaN) and then we run into difficulties with SRC_file.

  25. Esteban82 commented on Oct 2, 2023

    @Esteban82
    MemberAuthor

    Based on the conclusions of the previous pdf (copy below), I think that mss_sio_32.1.nc is an improve grid

    We have used the along-track slope data from multiple satellites to tune the CLS22 MSS model. ... We deliver this new MSS grid (mss_sio_32.1nc??) back to CLS for testing and evaluation in the original CLS format.

    I think that the better thing to do would be to wait until this grid (mss_sio_32.1.nc) is approved.
    Otherwise, we could use the published grid (CNES_CLS_22_H.nc, so the one that we already did). In this last case, we would need just to update SRC_FILE in the recipe.

  26. WalterHFSmith commented on Oct 2, 2023

    @WalterHFSmith
  27. Esteban82 commented on Oct 2, 2023

    @Esteban82
    MemberAuthor

    Hi Walter.

    It is nice to see you here.
    We are just offering the grids as Remote Data Sets.
    And we are discussing which one should we use: CNES_CLS_22_H.nc or mss_sio_32.1.nc. What do you think?

  28. PaulWessel commented on Oct 2, 2023

    @PaulWessel
    Contributor

    We are just serving up these grids. We have added the planetary stuff (moon, venus, mercury, mars, pluto), added the SIO deflections of the vertical, and then we noticed the mss grid. e just want to serve the right and best one.

  29. Esteban82 commented on Jan 9, 2024

    @Esteban82
    MemberAuthor

    I think this can be closed. It was already implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions