เปิดใช้ package ที่เกี่ยวข้อง

library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.4     ✔ readr     2.1.5
## ✔ forcats   1.0.0     ✔ stringr   1.5.1
## ✔ ggplot2   3.5.1     ✔ tibble    3.2.1
## ✔ lubridate 1.9.3     ✔ tidyr     1.3.1
## ✔ purrr     1.0.2     
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(dismo)
## Loading required package: raster
## Loading required package: sp
## 
## Attaching package: 'raster'
## 
## The following object is masked from 'package:dplyr':
## 
##     select
library(geodata)
## Loading required package: terra
## terra 1.7.78
## 
## Attaching package: 'terra'
## 
## The following object is masked from 'package:tidyr':
## 
##     extract
library(tidyterra)
## 
## Attaching package: 'tidyterra'
## 
## The following object is masked from 'package:raster':
## 
##     select
## 
## The following object is masked from 'package:stats':
## 
##     filter

อ่านไฟล์โดยใช้คำสั่ง raster

NDVI<-raster("G:\\My Drive\\Gee data\\NDVI_from_S2_10m.tif", crs="EPSG:4326")

plot ไฟล์ที่นำเข้ามา

plot(NDVI)