UCL / pyCascadia

Implementation of GEBCO cookbook remove-restore and other cleaning of topography/bathymetry. Uses `pyGMT`.
Mozilla Public License 2.0
9 stars 0 forks source link

before starting "restore" step, the base grid should be upsampled to match source grid resolution #7

Closed alessandrofelder closed 3 years ago

alessandrofelder commented 3 years ago

...if I understand the GEBCO cookbook correctly.

JamieJQuinn commented 3 years ago

Source grid resolution or final output grid resolution? Doing it before remove-restore would certainly help incorporate more of the better resolution data.

@Devaraj-G any thoughts?

Devaraj-G commented 3 years ago

We should be able to specify the grid resolution of the output dataset (i.e. merged bathymetry) as an input parameter. The remove-restore can do all the procedures on the grid resolution of the output.

alessandrofelder commented 3 years ago

I think after discussions today that this should be an input parameter (maybe optional, defaulting to source grid resolution). The base grid (and the source grid, if resolution is non-default) should be subsampled to this resolution using grdsample, as described on page 156 of the GEBCO cookbook (final step of "Gridding - workflow steps B and C").

JamieJQuinn commented 3 years ago

This is already implemented in the branch feature/upscale-basegrid using pygmt's surface instead of grdsample which appears to work down to grid resolutions of around 100m. At resolutions less than this the output grid starts showing what looks like aliasing errors (however I don't know if this is due to surface or other parts of the algorithm).

I'll try running it through grdsample too.

JamieJQuinn commented 3 years ago

Upsampling is now implemented with grdsample