Skip to content

Commit

Permalink
update comments (#60)
Browse files Browse the repository at this point in the history
+ docs/paper: update link for nbviewer

+ add temp-c custom colormap cpt file

+ add -s besides --start-date and -e besides --end-date for timeseries2velocity.py

+ asc_desc2horz_vert: add example to prepare asc/desc data
  • Loading branch information
yunjunz authored May 9, 2019
1 parent a9ec91b commit db9dfa5
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/paper/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
### Figures in Jupyter Notebook for:
### Figures in Jupyter Notebook for: ###

+ Yunjun, Z., H. Fattahi, F. Amelung, 2019, InSAR time series analysis: error correction and noise reduction (under review).

### Content ([nbviewer](https://nbviewer.jupyter.org/github/insarlab/PySAR/docs/paper/))
### Content ([nbviewer](https://nbviewer.jupyter.org/github/insarlab/PySAR/tree/master/docs/paper/)) ###

+ Fig. 1 - Performance of four weight functions.
+ Fig. 2 - Phase-unwrapping error correction with bridging.
+ Fig. 3 - Characteristics of phase-unwrapping error in the closure phase.
Expand Down
28 changes: 28 additions & 0 deletions docs/resources/colormaps/temp-c.cpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# COLOR MODEL = RGB
-14 74 0 29 -12 74 0 29
-12 49 0 126 -10 49 0 126
-10 0 0 129 -8 0 0 129
-8 0 50 179 -6 0 50 179
-6 0 0 255 -4 0 0 255
-4 0 125 255 -2 0 125 255
-2 0 189 255 0 0 189 255
0 23 215 139 2 23 215 139
2 57 173 115 4 57 173 115
4 42 169 42 6 42 169 42
6 42 200 42 8 42 200 42
8 0 255 49 10 0 255 49
10 83 255 0 12 83 255 0
12 159 255 0 14 159 255 0
14 255 255 0 16 255 255 0
16 255 204 0 18 255 204 0
18 255 152 0 20 255 152 0
20 255 101 0 22 255 101 0
22 255 84 0 24 255 84 0
24 255 0 0 26 255 0 0
26 255 0 127 28 255 0 127
28 255 34 144 30 255 34 144
30 255 94 177 32 255 94 177
32 255 134 194 34 255 134 194
34 255 174 215 36 255 174 215
36 255 215 235 38 255 215 235
38 255 255 255 40 255 255 255
4 changes: 4 additions & 0 deletions pysar/asc_desc2horz_vert.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ def get_overlap_lalo(atr1, atr2):
"""

EXAMPLE = """example:
#geocode asc/desc data into the same spatial resolution and coverage
geocode.py AlosAT424/velocity -x 0.00027778 -y -0.00027778 --bbox 32.0 32.5 130.1 130.5 -o vel_AlosAT424.h5
geocode.py AlosDT73/velocity -x 0.00027778 -y -0.00027778 --bbox 32.0 32.5 130.1 130.5 -o vel_AlosDT73.h5
asc_desc2horz_vert.py vel_AlosAT424_masked.h5 vel_AlosDT73_masked.h5
asc_desc2horz_vert.py vel_EnvAT134_masked.h5 vel_EnvAT256_masked.h5 16
"""
Expand Down
4 changes: 2 additions & 2 deletions pysar/timeseries2velocity.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def create_parser():

parser.add_argument('timeseries_file',
help='Time series file for velocity inversion.')
parser.add_argument('--start-date', dest='startDate',
parser.add_argument('--start-date','-s', dest='startDate',
help='start date for velocity estimation')
parser.add_argument('--end-date', dest='endDate',
parser.add_argument('--end-date','-e', dest='endDate',
help='end date for velocity estimation')
parser.add_argument('--exclude', '--ex', dest='excludeDate', nargs='+', default=[],
help='date(s) not included in velocity estimation, could be list of string or text file, i.e.:\n' +
Expand Down

0 comments on commit db9dfa5

Please sign in to comment.