Hello everyone: I'm trying to run a variogram on an STFDF, but getting an odd error. Here is the str of the data set, along with the error message.
> str(wind.data) Formal class 'STFDF' [package "spacetime"] with 4 slots ..@ data :'data.frame': 48 obs. of 1 variable: .. ..$ values: int [1:48] 78 79 84 82 79 80 84 83 81 83 ... ..@ sp :Formal class 'SpatialPoints' [package "sp"] with 3 slots .. .. ..@ coords : num [1:4, 1:2] -82.4 -80 -75.8 -76.3 23.1 ... .. .. .. ..- attr(*, "dimnames")=List of 2 .. .. .. .. ..$ : NULL .. .. .. .. ..$ : chr [1:2] "long" "lat" .. .. ..@ bbox : num [1:2, 1:2] -82.4 20 -75.8 23.1 .. .. .. ..- attr(*, "dimnames")=List of 2 .. .. .. .. ..$ : chr [1:2] "long" "lat" .. .. .. .. ..$ : chr [1:2] "min" "max" .. .. ..@ proj4string:Formal class 'CRS' [package "sp"] with 1 slot .. .. .. .. ..@ projargs: chr "+proj=longlat +datum=WGS84 +no_defs" .. .. .. .. ..$ comment: chr "GEOGCRS[\"unknown\",\n DATUM[\"World Geodetic System 1984\",\n ELLIPSOID[\"WGS 84\",6378137,298.25722"| __truncated__ ..@ time :An xts object on 2024-01-01 12:00:00 / 2024-12-01 12:00:00 containing: Data: integer [12, 1] Columns: timeIndex Index: POSIXct,POSIXt [12] (TZ: "GMT") ..@ endTime: POSIXct[1:12], format: "2024-02-01 12:00:00" "2024-03-01 12:00:00" ... > variogramST(values~1,wind.data,na.omit=TRUE) |==================================================== | 75%Error in `[.xts`(x@time, j) : subscript out of bounds In addition: Warning message: In variogramST(values ~ 1, wind.data, na.omit = TRUE) : strictly irregular time steps were assumed to be regular > This is R-4.4.3. Any suggestions would be much appreciated. Sincerely, Erin Erin Hodgess, PhD mailto: [email protected] [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-geo
