Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ionex.py with simplified IONEX file reading & bug fix #794

Merged
merged 3 commits into from
Jun 17, 2022

Conversation

yunjunz
Copy link
Member

@yunjunz yunjunz commented Jun 17, 2022

Description of proposed changes

  • add mintpy.objects.ionex module to simplify the IONEX file reading, and to fix a previous bug in the reading function.

  • move draw_lalo_label() and draw_scalebar() out of mintpy.utils.plot to form a new sub-module mintpy.utils.map, for more independence and flexibility.

  • move mintpy.utils.constantsmodule to mintpy.objects.constants

  • view: add --ylabel-rot option to be able to rotate y-axis label, for more compact figure in publication

Reminders

  • Pass Codacy code review (green)
  • Pass Circle CI test (green)
  • 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.

yunjunz added 2 commits June 14, 2022 12:01
+ move draw_lalo_label() and draw_scalebar() from mintpy.utils.plot.py into a new sub-module mintpy.utils.map.py, for more independence.

+ refactor mintpy.utils.map.py

+ mv read_gmt_lonlat_file() from plot.py into readfile.py

+ remove unused plot.cmd_line_parse()

+ update module_hierarchiy accordingly.

+ mv constants from utils to objects
+ add mintpy.objects.ionex sub-module to handle all the IONEX file download/reading
   - add ionex.py based on daniestevez notebook, to simplify the IONEX file reading
   - move the following functions from mintpy.simulation.iono, to be more independent:
       - dload_ionex()
       - get_ionex_value()
       - get_ionex_filename()
       - get_ionex_date()
       - get_ionex_height()
       - plot_ionex()
   - simulation.iono.py: remove the obsolete read_ionex_tec()

+ add unit test for objects/ionext.py:
   - add tests/objects/ionex.py
   - add tests/data/jplg3190.15i
   - update .circleci/config.yml

+ update simulation.iono.py and iono_tec.py accordingly

+ update docs:
   - add ionex to docs/api/module_hierarchy.md
   - update .gitignore against the latest github example for python
@yunjunz yunjunz merged commit c8ae9c7 into insarlab:main Jun 17, 2022
@yunjunz yunjunz deleted the ionex branch June 17, 2022 03:42
@yunjunz yunjunz mentioned this pull request Sep 17, 2022
2 tasks
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.

1 participant