-
Notifications
You must be signed in to change notification settings - Fork 0
Description
-
There are python options to always overwrite existing files. We also could have a run_or_skip as in MintPy that checks for existing files before running something, but I don’t think it is worth it. Anyway, something to keep in mind so that we can add in the case we add processing.
-
Please make sure the metavar is correct. It is unclear what seismicity=3 means. And what is
--seismicity [SEISMICITY]
? -
--template default
is also weired. The default should be the choice if no option is given -
—colorbar
is not used properly. We may want an option —nocolorbar to switch it off . Use —colormap to select COLORMAP. See from MintPy:
view.py --help | grep color
[--base-color NUM] [--blend-mode STR] [--fontsize FONT_SIZE]
[--fontcolor FONT_COLOR] [--nowhitespace] [--noaxis] [--notick]
--base-color NUM [Blend] Topograhpy basemap greyish color ranges in [0,1] (default: 0.7).
--blend-mode STR [Blend] Type of blending used to combine the colormapped data with illumated topography.
-c COLORMAP, --colormap COLORMAP
colormap used for display, i.e. jet, cmy, RdBu, hsv, jet_r, viridis, etc.
More at https://mintpy.readthedocs.io/en/latest/api/colormaps/
number of increment of colormap lookup table (default: 256).
list of 3 float numbers, for truncated colormap only (default: [0.0, 0.7, 1.0]).
--nocbar, --nocolorbar
do not display colorbar
-
Just to clarify. I see
--dem DEM_FILE external DEM file (Default: geo/geo_geometryRadar.h5)
. Is there still an option to use a downloaded DEM? (May not be needed).
Once these are fixed I will try again. -
Instead of —show I may suggest to use —display for consistency with MintPy. It has display_flag=True as default and the —no display option. I like display=False as default and —display to switch display on (as you have). But I am not sure. I know that
show
is used in matplotlib. There may be some reasons that Yunjun chose—display
. Let me know what you decide and what are the reasons. From MintPy:
view.py --help | grep display
[-o [OUTFILE ...]] [--save] [--nodisplay] [--update]
display kept interferograms only, without dropped interferograms
--nodisplay save and do not display the figure
view.py velocity.h5 —nodisplay
- To avoid errors lets add a .circleci as I did for minsar (and Yunjun has for MintPy). It is very easy. We put the Chiles and Hawaii data on xenodo.org, For every git push they are downloaded on the circleci instance and the examples are run. We need some logic to get the examples from the code. I have seen somewhere something like
from cli.plot_data import EXAMPLE
, i.e. define them as a function and skip over lines that don’t start with plot_data.py there may be better ways. My PlotData had a notebook to always run the examples, but circleci is much better.
For the submission of the Chiles paper we need data on xenodo.org anyway. Let’s start this now and update the data when the paper is done.
-
Real programmers think always about writing tests.
-
We now need to think of a logic on how to specify options in a *template file and overwrite them by command line options.