dtwSat 项目教程
1. 项目的目录结构及介绍
dtwSat/
├── DESCRIPTION
├── NAMESPACE
├── R/
│ ├── dtw_basic.R
│ ├── dtw_functions.R
│ ├── ...
├── man/
│ ├── dtwSat-package.Rd
│ ├── dtw_basic.Rd
│ ├── ...
├── inst/
│ ├── doc/
│ │ ├── landuse-mapping.Rmd
│ │ ├── ...
│ ├── extdata/
│ │ ├── patterns.csv
│ │ ├── ...
├── vignettes/
│ ├── landuse-mapping.Rmd
│ ├── ...
├── tests/
│ ├── testthat/
│ │ ├── test-dtw_basic.R
│ │ ├── ...
├── LICENSE
├── README.md
├── ...
- DESCRIPTION: 项目描述文件,包含项目的名称、版本、依赖等信息。
- NAMESPACE: 定义了项目的命名空间和导出的函数。
- R/: 包含项目的所有R脚本文件。
- man/: 包含项目的帮助文档。
- inst/doc/: 包含项目的示例文档。
- inst/extdata/: 包含项目的外部数据文件。
- vignettes/: 包含项目的长文档和教程。
- tests/testthat/: 包含项目的测试脚本。
- LICENSE: 项目的许可证。
- README.md: 项目的介绍和使用说明。
2. 项目的启动文件介绍
项目的启动文件通常是 R/dtw_basic.R
,它包含了项目的基本功能和核心函数的定义。用户可以通过加载这个文件来使用项目的基本功能。
source("R/dtw_basic.R")
3. 项目的配置文件介绍
项目的配置文件通常是 DESCRIPTION
,它包含了项目的名称、版本、依赖等信息。用户可以通过查看这个文件来了解项目的依赖和版本信息。
Package: dtwSat
Type: Package
Title: Time-Weighted Dynamic Time Warping for Satellite Image Time Series Analysis in R
Version: 0.2.0
Date: 2023-10-31
Authors@R: c(person("Victor", "Maus", role = c("aut", "cre"), email = "victor.maus@gmail.com"),
person("Gilberto", "Câmara", role = c("aut"), email = "gilberto.camara@inpe.br"),
person("Marius", "Appel", role = c("aut"), email = "marius.appel@uni-muenster.de"),
person("Edzer", "Pebesma", role = c("aut"), email = "edzer.pebesma@uni-muenster.de"))
Description: This package offers functions to produce land use maps based on distinct seasonality patterns commonly observed in the phenological cycles of vegetation. The approach is described in Maus et al (2016) and Maus et al (2019). A primary advantage of TWDTW is its capability to handle irregularly sampled and noisy time series while also requiring minimal training sets. The package includes tools for training the 1-NN-TWDTW model, visualizing temporal patterns, producing land use maps, and visualizing the results.
License: GPL-3
Depends: R (>= 3.5.0)
Imports: methods, stats, graphics, grDevices, utils, parallel, raster, sf, lubridate, zoo, dtw
Suggests: testthat, knitr, rmarkdown
VignetteBuilder: knitr
通过查看 DESCRIPTION
文件,用户可以了解项目的依赖包和版本要求,从而确保项目能够正确运行。