Skip to content

ts2vel: save residual displacement TS via --save-res#654

Merged
yunjunz merged 3 commits intoinsarlab:mainfrom
yunjunz:ts2vel
Sep 5, 2021
Merged

ts2vel: save residual displacement TS via --save-res#654
yunjunz merged 3 commits intoinsarlab:mainfrom
yunjunz:ts2vel

Conversation

@yunjunz
Copy link
Copy Markdown
Member

@yunjunz yunjunz commented Sep 5, 2021

Description of proposed changes

  • timeseries2velocity.py: save residual displacement time-series via --save-res and --res-file options (add timeseriesResidual in ts2vel.py #588)
  • support very long time-series file with date in isoformat. e.g YYYY-MM-DDTHH:MM for reading and plotting.
  • initial test config file for hyp3 test/configs/RidgecrestSenDT71.txt

Reminders

  • Fix add timeseriesResidual in ts2vel.py #588
  • Pass Codacy code review (green)
  • Pass Circle CI / local test (green)
  • Make sure that your code follows our style. Use the other functions/files as a basis.
  • If modifying functionality, describe changes to function behavior and arguments in a comment below the function declaration.
  • If adding new functionality, add a detailed description to the documentation and/or an example.

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add timeseriesResidual in ts2vel.py

1 participant