Skip to content

Commit 67c5e06

Browse files
committed
Update README and a legend problem in vis
1 parent e3b5ccd commit 67c5e06

3 files changed

Lines changed: 27 additions & 4 deletions

File tree

R/vis_fit.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ PlotBLSP <- function(blsp_fit, if_return_fit = FALSE) {
168168
paste0(disp_cred_int_level, "% C.I. of phenometrics"),
169169
pheno_names
170170
),
171-
lty = c(NA, 1, NA, 1, 1, rep(NA, length(pheno_names))),
171+
lty = c(NA, 1, NA, 1, NA, rep(NA, length(pheno_names))),
172172
pch = c(16, NA, 15, NA, 16, rep(16, length(pheno_names))),
173173
col = c("black", "red",
174174
adjustcolor("red", 0.2),

README.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ devtools::install_github("ncsuSEAL/Bayesian_LSP", build_vignettes = TRUE)
2424
```
2525
Afterwards, you can call the package using `library(blsp)`. Run `help(package = "blsp")` to see the vignette and functions available in the package.
2626

27-
## Note:
27+
## Note
2828
We are currently (as of June 2022) improving the computing speed of the BLSP algorithm, thanks to Matt Shisler and Dr. Brian Reich's help. Be sure to watch or star this repo to keep up with our updates.
2929

3030
## The package functionality
@@ -36,13 +36,36 @@ The model fit is shown in the below figure:
3636

3737
And, the estimated phenometrics and their 95% credible intervals are stored in a table returned by the `FitBLSP()` function of the `blsp` package:
3838

39-
<img src="img/model_fit_phenos.png" alt="" width="500"/>
39+
| Year | midgup_lwr | midgup | midgup_upr | midgdown_lwr | midgdown | midgdown_upr |
40+
| :--: | :--------: | :----: | :--------: | :----------: | :------: | :----------: |
41+
| 1984 | 130 | 139 | 146 | 277 | 284 | 291 |
42+
| 1985 | 132 | 138 | 140 | 272 | 281 | 288 |
43+
| ... | ... | ... | ... | ... | ... | ... |
44+
| 2023 | ... | ... | ... | ... | ... | .. |
45+
46+
Starting from v1.5, in addition to `midgup` (SOS) and `midgdown` (EOS), we also support getting more detailed phenometrics using a threshold-based method. The method can be configured when using `FitBLSP(.., opt = list(method = "threshold"))`. The detailed phenometrics and their amplitude threshold are shown in the following table and figure:
47+
48+
| Phenometric | Threshold |
49+
| :----------: | ----------------------- |
50+
| Greenup | 15% amplitude in spring |
51+
| MidGreenup | 50% amplitude in spring |
52+
| Maturity | 90% amplitude in spring |
53+
| Peak | 100% amplitude |
54+
| Senescence | 95% amplitude in autumn |
55+
| MidGreendown | 50% amplitude in autumn |
56+
| Dormancy | 15% amplitude in autumn |
57+
58+
![](img/model_fit_more_phenos.png)
59+
60+
Also from v1.5, we support both 6- and 7-parameter double-logistic functions. To specify which function to use, pass a `model` string to the `FitBLSP()` function, e.g., `FitBLSP(..., model = "dblog6")`. To use the 6-parameter model, do `model = "dblog6"`; while `model = "dblog7"` will use the 7-parameter model, which is the default value.
4061

4162
For detailed introduction of the package usage, please use `help(package = "blsp")` to see the vignettes. We also provide Google Earth Engine javascript script and Microsoft Planetary Computer R functions to help users get Landsat time series for any latitude and longitude points so that users can try the `blsp` package with minimal effort in preparing data (see the vignettes).
4263

4364
> **Note**
44-
>
65+
>
4566
> Unlike other land surface phenology products, we don't have QA/QC flags. The reason is, from our current experience, that the quality of the retrieved phenometrics can be indicated from the uncertainty. For example, if the uncertainty for a phenometric is very large, it indicates that the phenometric might be of low quality; otherwise, the pheometirc is trustable. This strategy may be changed based on future experience with the BLSP model, though.
67+
>
68+
> Some data pre-processing such as filling in the extremly low values in the winter period using 2th percentile and removing abnormal low values in the summer period can help fitting the model better. Those abnormal observations should be captured by cloud detection but sometimes it fails.
4669
4770
# Known limitations
4871
Here are some limitations users frequently asked, we appreciate the feedback and want to notify future users to be aware of them.

img/model_fit_more_phenos.png

1.01 MB
Loading

0 commit comments

Comments
 (0)