Regridding data for clipping to shapefile - [Sentinel-3 L2 LST // SLSTR Instrument]

Hi there,

Just wanted to share that I’ve been able to “regrid” my raster using the pangeo-pyinterp package used in the previously shared links.

In order for others to enjoy a smoother path to achieving regridding, I strongly recommend to have a look at those 2 links:

If I had to summarize the process in my own words, it would be:

  • build your initial dataset, defining your lat/lon dataarrays as coordinates (depending on the initial x/y grids),
  • define the mesh ‘nest’ through the use of pyinterp.RTree() and mesh.packing,
  • define the new grid you want your new data to be regridded in through the use of np.meshgrid,
  • then use, for example (and choosing wisely :smiley: ), mesh.inverse_distance_weighting or mesh.radial_basis_function to interpolate the initial gridded data in a new data.

Remember, I had to regrid my data because the initial ones corresponded to an irregular grid regarding corresponding georeferenced coordinates.
Your case might be different, but I hope somebody out here will benefit from this exchange.

Thanks again to all of you contributors.
Regards,
Mathieu

PS : I would like to flag this issue as SOLVED but…doesn’t seem to find a way to do it…any help ?

1 Like