Need data for a specific location but facing a problem

Hello dear researcher,
I have NC file containing weather data.
So I need data based on latitude and longitude for a specific location.
you can see below codes and errors are also attached.
Additionally, my NC file is attached.

I am a new user of R software and need your help to solve this issue. Thank you

library(cmsafops)
run_toolbox()

library(ncdf4)
nc=nc_open('RE.sfcWind.10m.Daymean_NCAR_1973_2005.nc')

setwd("G:/USB/3-PPT/6-HadOBS/Assessing_the_Reliablity_of_Reanalysis/Daily_Reanalysis_Data/NCAR_NEW-Daily")
selpoint(var="sfcWind",
         infile = "RE.sfcWind.10m.Daymean_NCAR_1973_2005.nc",
         outfile = "NCAR-417800-99999;JINNAH_INTL;Latitude_24.907;Longitude_67.161;Height_30.5;Pakistan.csv",
         lon1 = 67.161,
         lat1 = 24.907,
         format = "csv")
Error in ncvar_get_inner(ncid2use, varid2use, nc$var[[li]]$missval, addOffset,  : 
  Error: variable has 4 dims, but start has 3 entries.  They must match!
In addition: Warning message:
In varsize - start :
  longer object length is not a multiple of shorter object length
![Capture1|690x314](upload://8e3jGm7XSZ7kqHijJXiLhWhBc0a.png)

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.