How to crop gridded data with shapefile

As usual, could you please turn this into a proper REPRoducible EXample (reprex)?

1 Like