You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Save any default CPT for remote datasets in hidden grid header (#6178)
* Save any default CPT in hidden grid header
This addresses #6167 when we cut a subset from, sa, earth_relief_10m and then no longer know what the CPT should be.
* use allocated string cpt instead
* Init remote_id to -1
* polish
* Fix save CPT and highpass
* Update gmt_support.c
* Add small tests
* formatting
* Remove boundary annotations
* Save the current CPT from grdcut if modern mode
/* Define z variable. Attempt to remove "scale_factor" or "add_offset" when no longer needed */
1031
1034
gmtnc_put_units (ncid, z_id, header->z_units);
1035
+
if (GMT->parent->remote_info&&GMT->parent->remote_id!=GMT_NOTSET&&GMT->parent->remote_info[GMT->parent->remote_id].CPT[0] !='-') { /* Subset of remote grid with default CPT, save name as an attribute */
0 commit comments