Subset grid/region from netcdf file

Hi, I have a NetCDF file that contains global data, with long, lat, variables, and time. I got this file from here--

I want to subset Europe/other grid from this NetCDF file with all informations (long, lat, time, and variables), so that I can use ggplot2 for plotting.

Code I'm using is here--

nc_data <- nc_open('')
eushape <- countries[countries$CONTINENT == "Europe", ]
cropsize <- extent(eushape)
cropped_data <- raster::crop(nc_data, eushape)

I'm getting this error, please is there a way to solve this--

Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘crop’ for signature ‘"ncdf4"’

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.