This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(sf) | |
library(units) | |
ponto <- st_point(c(1, 2)) %>% | |
st_sfc(crs = 31985) %>% | |
st_sf() | |
offset <- 5 # 5 unidades de mapa (EPSG 31985: metros) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doy | d | |
---|---|---|
1 | 0.98331 | |
2 | 0.9833 | |
3 | 0.9833 | |
4 | 0.9833 | |
5 | 0.9833 | |
6 | 0.98332 | |
7 | 0.98333 | |
8 | 0.98335 | |
9 | 0.98338 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
band | Grescale | Brescale | esun | |
---|---|---|---|---|
1 | 0.765827 | -2.29 | 1983 | |
2 | 1.448189 | -4.29 | 1796 | |
3 | 1.043976 | -2.21 | 1536 | |
4 | 0.876024 | -2.39 | 1031 | |
5 | 0.120354 | -0.49 | 220 | |
6 | 0.055376 | 1.18 | ||
7 | 0.065551 | -0.22 | 83.44 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://minato.sip21c.org/swtips/factor-in-R.pdf | |
bartlett.sphericity.test <- function(x) { | |
method <- "Bartlett’s test of sphericity" | |
data.name <- deparse(substitute(x)) | |
x <- subset(x, complete.cases(x)) # Omit missing values | |
n <- nrow(x) | |
p <- ncol(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
dataset <- tibble( | |
position = 0:9, | |
x0 = 1:10, | |
y0 = 1:10, | |
x1 = 1:10, | |
y1 = 1:10 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(raster) | |
library(tidyverse) | |
library(sf) | |
library(caret) | |
library(RStoolbox) | |
source("scripts/functions.R") | |
# Generate cropped landsat ---------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(sidrar) | |
library(survey) | |
library(srvyr) | |
library(PNADcIBGE) | |
library(janitor) | |
info_sidra(1288) | |
pop_censos <- get_sidra( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(randomForest) | |
train <- data.frame( | |
x = 1:10, | |
y = 1:10 * 100 | |
) | |
lm <- lm(y ~ x, data = train) | |
rf <- randomForest(y ~ x, data = train) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# diff LT05_L1TP_218072_20100716_20161014_01_T1_MTL.txt LT05_L1TP_218072_20100801_20161015_01_T1_MTL.txt | |
4,6c4,6 | |
< REQUEST_ID = "0501610125656_06672" | |
< LANDSAT_SCENE_ID = "LT52180722010197COA00" | |
< LANDSAT_PRODUCT_ID = "LT05_L1TP_218072_20100716_20161014_01_T1" | |
--- | |
> REQUEST_ID = "0501610125560_19672" | |
> LANDSAT_SCENE_ID = "LT52180722010213CUB00" | |
> LANDSAT_PRODUCT_ID = "LT05_L1TP_218072_20100801_20161015_01_T1" |
NewerOlder