Skip to content

Commit

Permalink
Update to 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lei Song committed Dec 8, 2021
1 parent e8b4a97 commit d838cd2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ Level-3 process:

Run docker to process WASP to get seasonal syntheses of sentinel-2 imagery. The details are here: [WASP](https://github.com/LLeiSong/waspire).

## Installation
NOTE: You might want to edit `requirements.txt` before installation if you don't want to change the existing packages on your own machine.

```
git clone git@github.com:LLeiSong/sentinelPot.git
cd sentinelPot
pip install .
```

## Config yaml setting

The template of the yaml is as follows:
Expand Down Expand Up @@ -118,6 +127,7 @@ gpt:
xml_path: files/S1_GRD_preprocessing.xml
# For Sentinel-1 harmonic regression
harmonic:
date_start: '2021-05-01'
gcs_rec: 0.000025
# the alpha of lasso algorithm
alpha: 0.2
Expand Down Expand Up @@ -388,6 +398,17 @@ with open("./config.yaml", 'r') as yaml_file:
config = yaml.safe_load(yaml_file)
```

## Package updates

### sentinelPot 0.1.1

1. Update function `_get_doy` to use a new parameter `start` to adjust the DOY of time series. So the users could define any time interval.
2. Add the corresponding parameter in config.yaml: `['harmonic']['date_start']`.

### sentinelPot 0.1.0

The first release of the package.

## Contributors

[Lei Song](https://github.com/LLeiSong) (lsong@clarku.edu)
Expand Down
8 changes: 5 additions & 3 deletions sentinelPot/files/config_main_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ gpt:
xml_path: files/S1_GRD_preprocessing.xml
# For Sentinel-1 harmonic regression
harmonic:
# The date_start and frequency define the whole time series
# The start date of the time series, fmt('2017-10-01')
date_start:
gcs_rec: 0.000025
# the alpha of lasso algorithm
alpha: 0.2
Expand All @@ -85,6 +82,11 @@ harmonic:
kernel: 3
iteration: 3
eps: 3
# The date_start and frequency define the whole time series.
# Make sure you did the right calculation on them.
# Otherwise, there might be zero or negative DOY at the end.
# The start date of the time series, fmt('2017-10-01')
date_start:
# Harmonics parameters
harmonic_frequency: 365
harmonic_pairs: 2
Expand Down

0 comments on commit d838cd2

Please sign in to comment.