Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
404 views
in Technique[技术] by (71.8m points)

I am writing a function in R to extract Sentinel Tropomi air quality modelling data from netCDF files. I have the Package "ncdf" installed

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...