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.
https://drive.google.com/file/d/1GdXKGImL-fd4jXLCKTc7HlDvZItvMVLf/view?usp=sharing
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
