Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
angehung5 authored Nov 7, 2023
1 parent ae01d8a commit d86262c
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,11 @@ You can also download and generate global gridded canopy-app inputs using Python

1. Edit python script (`global_data_process.py`)

2. Change user settings
2. Change global settings

```python
'''User Options'''
path = '/scratch/pcampbe8/canopy-app/input' # work directory
year = 2022 # year
month = 7 # month
day = 1 # day
houri = 12 # gfs initialization hour in UTC (caution currently GFS files are initialized at 12 UTC only -- do not change)
hour = 00 # gfs forecast hour in UTC
ref_lev = 10 # reference height above the canopy (m)
frp_src = 1 # frp data source (0: local source; 1: check local source first, switch to climatological file if no available data; 2: 12 month climatology; 3: all ones when ifcanwaf=.FALSE.)
```
Expand All @@ -79,8 +74,18 @@ You can also download and generate global gridded canopy-app inputs using Python
conda activate canopy-app
```

3. Run Python script
3. Run Python script with time arguments:

Time format: `Year(yyyy)+month(mm)+date(dd)+hour(hh)+forecast hour(fff)` Multiple time steps available. Use `,` to separate different times, no spaces.

Example 1: 15-17 Jul 2020 12Z, forecast hour=0

```
python global_data_process.py 2020071512000,2020071612000,2020071712000
```

Example 2: 1 Jul 2020 12Z, forecast hour=0-4

```
python global_data_process.py
python global_data_process.py 2020070112000,2020070112001,2020070112002,2020070112003,2020070112004
```

0 comments on commit d86262c

Please sign in to comment.