I an unable to assign the values to the variables from the file.
#code
names(nc_data$var)
[1] "PRODUCT/latitude"
[2] "PRODUCT/longitude"
[3] "PRODUCT/delta_time"
[4] "PRODUCT/time_utc"
[5] "PRODUCT/qa_value"
[6] "PRODUCT/nitrogendioxide_tropospheric_column"
[7] "PRODUCT/nitrogendioxide_tropospheric_column_precision"
[8] "PRODUCT/nitrogendioxide_tropospheric_column_precision_kernel"
[9] "PRODUCT/averaging_kernel"
error that is showing
lat <- ncvar_get(nc_data,"latitude")
[1] "vobjtovarid4: error #F: I could not find the requsted var (or dimvar) in the file!"
[1] "var (or dimvar) name: latitude"
[1] "file name: S5P_OFFL_L2__NO2____20210126T070807_20210126T084938_17038_01_010400_20210128T004135.nc"
Error in vobjtovarid4(nc, varid, verbose = verbose, allowdimvar = TRUE) :
Variable not found
question from:
https://stackoverflow.com/questions/66058280/i-am-writing-a-function-in-r-to-extract-sentinel-tropomi-air-quality-modelling-d 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…