Title: | Calculation of the Fractal Dimension of a Coastline |
---|---|
Description: | Calculating the fractal dimension of a coastline using the boxes and dividers methods. |
Authors: | Zhao Shiqi [aut, cre] |
Maintainer: | Zhao Shiqi <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.1.2 |
Built: | 2025-03-06 04:49:03 UTC |
Source: | https://github.com/redworld123/coastlinefd |
Calculation of the fractal dimension of a coastline using the boxes methods
BoxesFD(BinputPath, netPath, outputPath, year, r, pearsonValue, writeF, showF)
BoxesFD(BinputPath, netPath, outputPath, year, r, pearsonValue, writeF, showF)
BinputPath |
All origin coastline files path |
netPath |
All fishnet files path |
outputPath |
All results will be exported here |
year |
R vector object, which represent your study time |
r |
R vector object, which represent your study scale |
pearsonValue |
The Pearson coefficient of your input data |
writeF |
Exporting Function's result |
showF |
Drawing Function's result |
An .xlsx file containing the results of the coastline fractal dimension
BinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[1] netPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[3] outputPath = paste0(system.file('extdata', package = 'CoastlineFD'), "/FD1985_1986.xlsx") BoxesFD( BinputPath, netPath, outputPath, c(1985:1986), c(300, 600, 900, 1000, 1050, 1100), 0.00, FALSE, TRUE )
BinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[1] netPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[3] outputPath = paste0(system.file('extdata', package = 'CoastlineFD'), "/FD1985_1986.xlsx") BoxesFD( BinputPath, netPath, outputPath, c(1985:1986), c(300, 600, 900, 1000, 1050, 1100), 0.00, FALSE, TRUE )
Calculation of the fractal dimension of a coastline using the dividers methods
DividersFD(DinputPath, outputPath, year, r, pearsonValue, writeF, showF)
DividersFD(DinputPath, outputPath, year, r, pearsonValue, writeF, showF)
DinputPath |
All density coastline files path |
outputPath |
All results will be exported here |
year |
R vector object, which represent your study time |
r |
R vector object, which represent your study scale |
pearsonValue |
The Pearson coefficient of your input data |
writeF |
Exporting Function's result |
showF |
Drawing Function's result |
An .xlsx file containing the results of the coastline fractal dimension
DinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[2] outputPath = paste0(system.file('extdata', package = 'CoastlineFD'), "/FD1985_1986.xlsx") DividersFD( DinputPath, outputPath, c(1985:1986), c(300, 600, 900, 1000, 1050, 1100), 0.00, FALSE, TRUE )
DinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[2] outputPath = paste0(system.file('extdata', package = 'CoastlineFD'), "/FD1985_1986.xlsx") DividersFD( DinputPath, outputPath, c(1985:1986), c(300, 600, 900, 1000, 1050, 1100), 0.00, FALSE, TRUE )
Calculation of the fractal dimension of a coastline using both methods
FD(DinputPath, BinputPath, netPath, outputPath, year, r, pearsonValue, writeF, showF)
FD(DinputPath, BinputPath, netPath, outputPath, year, r, pearsonValue, writeF, showF)
DinputPath |
All density coastline files path |
BinputPath |
All origin coastline files path |
netPath |
All fishnet files path |
outputPath |
All results will be exported here |
year |
R vector object, which represent your study time |
r |
R vector object, which represent your study scale |
pearsonValue |
The Pearson coefficient of your input data |
writeF |
Exporting Function's result |
showF |
Drawing Function's result |
An .xlsx file containing the results of the coastline fractal dimension
DinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[2] BinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[1] netPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[3] outputPath = paste0(system.file('extdata', package = 'CoastlineFD'), "/FD1985_1986.xlsx") FD( DinputPath, BinputPath, netPath, outputPath, c(1985:1986), c(300, 600, 900, 1000, 1050, 1100), 0.00, FALSE, TRUE )
DinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[2] BinputPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[1] netPath = list.files(system.file('extdata', package = 'CoastlineFD'),full.names = TRUE)[3] outputPath = paste0(system.file('extdata', package = 'CoastlineFD'), "/FD1985_1986.xlsx") FD( DinputPath, BinputPath, netPath, outputPath, c(1985:1986), c(300, 600, 900, 1000, 1050, 1100), 0.00, FALSE, TRUE )