ts2vel: save residual displacement TS via --save-res#654
Merged
yunjunz merged 3 commits intoinsarlab:mainfrom Sep 5, 2021
Merged
ts2vel: save residual displacement TS via --save-res#654yunjunz merged 3 commits intoinsarlab:mainfrom
yunjunz merged 3 commits intoinsarlab:mainfrom
Conversation
Add the following changes to support the reading and plotting of TS files: + with >8000 dates and + with dates in isoformat, e.g. YYYY-MM-DD[*HH[:MM[:SS[.fff[fff]]]]. Detailed changes includes: + readfile.read_hdf5_file(): support YYYY-MM-DDTHH:MM format in the date dataset with more relaxed but accurate detection of date and "-" + info.py: do not list dates and dates in years, because the former is covered in --date option and the later is not used, to be more compact on TS output + utils.plot.scale_data2disp_unit(): set disp_unit to data unit if it's un-scalable data + view/draw_scalebar(): do not plot scalebar if the longitude span > 30 deg + ptime.py: - get_date_str_format(): support the isoformat date and datetimes - get_date_range(): extend dmin/dmax to any format supported by get_date_str_format() - naming conflict fix for `dt`
+ add --save-res option to turn ON saving residual displacement time-series [OFF by default] + add --res-file option to specify the residual file name [timeseriesResidual.h5 by default, same as dem_error.py]
6 tasks
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
timeseries2velocity.py: save residual displacement time-series via--save-resand--res-fileoptions (add timeseriesResidual in ts2vel.py #588)isoformat. e.g YYYY-MM-DDTHH:MM for reading and plotting.test/configs/RidgecrestSenDT71.txtReminders