search for: sta_mt

Displaying 2 results from an estimated 2 matches for "sta_mt".

Did you mean: sata_mv
2023 Feb 21
1
Interpolación IDW
...], optional = TRUE) : cannot coerce class ?structure("RasterLayer", package = "raster")? to a data.frame* El código es el siguiente: *for (i in 1:nrows_mt) { data_it_mt <- as.numeric(as.vector(data_y_mt[i,])) it_data_mt <- idw(data_it_mt, sta_mt, grid, p = 1) grid <- data.frame(grid, valores = it_data_mt[ , 1]) coordinates(grid) <- ~x+y gridded(grid) <- T grid <- raster(grid, "valores") projection(grid) <- crs("+init=epsg:9377") path <- 'C:/Users/David Gomez/Desktop/TESIS/DATOS/RESUL...
2023 Feb 17
1
Interpolación IDW
...cómo interpolar unos datos anuales con el método IDW, pero no consigo aún realizarlo. idw_models <- list() for (i in 1:ncol(data_y_mt)) { #Extract the current variable current_var <- names(data_y_mt)[i] #Create an IDW model for the current variable idw_model <- idw(current_var, sta_mt, grid, p = 1) idw_models[[i]] <- idw_model } Ese es el código que llevo, pero me siento muy perdido. La variable* data_y_mt* es el dataframe donde tengo los valores, *sta_mt* son las coordenadas de los puntos, *grid* es la malla coordenada. Me gustaría también eliminar los datos con valores...