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

euler_pole: add PMM plotting functions #935

Merged
merged 24 commits into from
Jan 15, 2023
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c1eb0d8
euler_pole.py: add PMM plotting functions
yuankailiu Dec 23, 2022
fa16079
updates
yuankailiu Jan 6, 2023
17c6a19
+ plate_motion.py: ITRF2014_PMM use full names as keys
yuankailiu Jan 6, 2023
ed9f4dd
bugfix for codacy and unit_test checks
yuankailiu Jan 6, 2023
5e491ab
ionex: attempt to fix the unit test
yunjunz Jan 6, 2023
22f88ba
ionex: bugfix attempt no. 2
yunjunz Jan 6, 2023
b62d748
test git rename via jupyter
yunjunz Jan 7, 2023
217c914
Revert "test git rename via jupyter"
yunjunz Jan 7, 2023
e5f3057
Revert "ionex: bugfix attempt no. 2"
yunjunz Jan 7, 2023
5eed6d6
Revert "ionex: attempt to fix the unit test"
yunjunz Jan 7, 2023
c92a02d
remove the unnecessary plate name abbreviation in `plate_motion.py -h`
yunjunz Jan 7, 2023
c87bd3e
filenames and variable changes:
yuankailiu Jan 9, 2023
32764aa
structure changes
yuankailiu Jan 10, 2023
2722779
move ITRF2014_PMM dependent codes to src/mintpy/plate_motion.py
yuankailiu Jan 11, 2023
bd365f4
src/mintpy/plate_motion.py
yuankailiu Jan 11, 2023
c0024a3
fix import in tests/objects/euler_pole.py
yuankailiu Jan 11, 2023
140613e
plate_boundary dir/file rename with shell cmds to reproduce
yunjunz Jan 12, 2023
f460c3e
codacy fix
yunjunz Jan 12, 2023
866a7f6
euler_pole refactor - part 1
yunjunz Jan 12, 2023
1ff55c3
codacy fix
yunjunz Jan 12, 2023
0509ac5
euler_pole refactor part 2
yunjunz Jan 12, 2023
7ca596f
updates to the plate boundary files:
yuankailiu Jan 15, 2023
d008dcc
update
yuankailiu Jan 15, 2023
975f9d8
read_plate_outline: return as shapely object
yunjunz Jan 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ repos:
- id: check-added-large-files
args: ['--maxkb=20']
exclude_types: [image]
exclude: src/mintpy/data/plate_boundary
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
Expand Down
28 changes: 14 additions & 14 deletions src/mintpy/cli/plate_motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
from mintpy.utils.arg_utils import create_argument_parser

# ITRF2014-PMM defined in Altamimi et al. (2017)
Tag = collections.namedtuple('Tag', 'name num_site omega_x omega_y omega_z omega wrms_e wrms_n')
Tag = collections.namedtuple('Tag', 'abbv num_site omega_x omega_y omega_z omega wrms_e wrms_n')
ITRF2014_PMM = {
'ANTA' : Tag('Antartica' , 7, -0.248, -0.324, 0.675, 0.219, 0.20, 0.16),
'ARAB' : Tag('Arabia' , 5, 1.154, -0.136, 1.444, 0.515, 0.36, 0.43),
'AUST' : Tag('Australia' , 36, 1.510, 1.182, 1.215, 0.631, 0.24, 0.20),
'EURA' : Tag('Eurasia' , 97, -0.085, -0.531, 0.770, 0.261, 0.23, 0.19),
'INDI' : Tag('India' , 3, 1.154, -0.005, 1.454, 0.516, 0.21, 0.21),
'NAZC' : Tag('Nazca' , 2, -0.333, -1.544, 1.623, 0.629, 0.13, 0.19),
'NOAM' : Tag('N. America' , 72, 0.024, -0.694, -0.063, 0.194, 0.23, 0.28),
'NUBI' : Tag('Nubia' , 24, 0.099, -0.614, 0.733, 0.267, 0.28, 0.36),
'PCFC' : Tag('Pacific' , 18, -0.409, 1.047, -2.169, 0.679, 0.36, 0.31),
'SOAM' : Tag('S. America' , 30, -0.270, -0.301, -0.140, 0.119, 0.34, 0.35),
'SOMA' : Tag('Somalia' , 3, -0.121, -0.794, 0.884, 0.332, 0.32, 0.30),
'Antartica' : Tag('ANTA' , 7, -0.248, -0.324, 0.675, 0.219, 0.20, 0.16),
'Arabia' : Tag('ARAB' , 5, 1.154, -0.136, 1.444, 0.515, 0.36, 0.43),
'Australia' : Tag('AUST' , 36, 1.510, 1.182, 1.215, 0.631, 0.24, 0.20),
'Eurasia' : Tag('EURA' , 97, -0.085, -0.531, 0.770, 0.261, 0.23, 0.19),
'India' : Tag('INDI' , 3, 1.154, -0.005, 1.454, 0.516, 0.21, 0.21),
'Nazca' : Tag('NAZC' , 2, -0.333, -1.544, 1.623, 0.629, 0.13, 0.19),
'NorthAmerica' : Tag('NOAM' , 72, 0.024, -0.694, -0.063, 0.194, 0.23, 0.28),
'Nubia' : Tag('NUBI' , 24, 0.099, -0.614, 0.733, 0.267, 0.28, 0.36),
'Pacific' : Tag('PCFC' , 18, -0.409, 1.047, -2.169, 0.679, 0.36, 0.31),
'SouthAmerica' : Tag('SOAM' , 30, -0.270, -0.301, -0.140, 0.119, 0.34, 0.35),
'Somalia' : Tag('SOMA' , 3, -0.121, -0.794, 0.884, 0.332, 0.32, 0.30),
}
PMM_UNIT = {
'omega' : 'deg/Ma', # degree per megayear or one-million-year
Expand Down Expand Up @@ -58,8 +58,8 @@

EXAMPLE = """example:
# Use build-in plate motion model of Table 1 from Altamimi et al. (2017)
plate_motion.py -g inputs/geometryGeo.h5 --plate ARAB
plate_motion.py -g inputs/geometryRadar.h5 --plate EURA
plate_motion.py -g inputs/geometryGeo.h5 --plate Arabia
plate_motion.py -g inputs/geometryRadar.h5 --plate Eurasia

# Cartesian form of Euler pole rotation in [wx, wy, wz] in unit of mas/year [milli arc second per year]
# e.g., Arabia plate in ITRF14-PMM (Table 1 in Altamimi et al., 2017)
Expand Down
51 changes: 51 additions & 0 deletions src/mintpy/data/plate_boundary/GSRMv2.1/nnr.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Plate,Ab,Lat. °N,Lon. °E,w °/Ma
Africa,AF,49.66,-78.08,0.285
Amur,AM,61.64,-101.29,0.287
Antarctica,AN,60.08,-120.14,0.234
Arabia,AR,51.12,-19.87,0.484
AegeanSea,AS,47.78,59.86,0.253
Australia,AU,33.31,36.38,0.639
BajaCalifornia,BC,-63.04,104.02,0.640
Bering,BG,-40.62,-53.84,0.333
Burma,BU,-4.38,-76.17,2.343
Caribbean,CA,37.84,-96.49,0.290
Caroline,CL,-76.41,30.22,0.552
Cocos,CO,27.21,-124.02,1.169
Capricorn,CP,42.13,24.28,0.622
Danakil,DA,21.80,36.05,2.497
Easter,EA,25.14,67.55,11.331
Eurasia,EU,55.38,-95.41,0.271
Galapagos,GP,2.83,81.26,5.473
Gonave,GV,23.89,-84.86,0.476
India,IN,50.95,-8.00,0.524
JuandeFuca,JF,-37.71,59.44,0.977
JuanFernandez,JZ,34.33,70.76,22.370
Lwandle,LW,52.20,-60.68,0.273
Mariana,MA,11.20,142.82,2.165
NorthAmerica,NA,2.19,-83.75,0.219
NorthBismarck,NB,-30.20,135.30,1.201
Niuafo'ou,NI,-3.51,-174.04,3.296
Nazca,NZ,49.05,-102.13,0.611
Okhotsk,OK,28.80,-90.91,0.209
Okinawa,ON,39.11,145.94,1.361
Pacific,PA,-63.09,109.63,0.663
Panama,PM,16.55,-84.30,1.392
PuertoRico,PR,27.81,-81.51,0.502
PhilippineSea,PS,-46.62,-28.39,0.895
Rivera,RI,20.27,-107.10,4.510
Rovuma,RO,51.72,-69.88,0.270
SouthAmerica,SA,-14.10,-117.86,0.123
SouthBismarck,SB,6.91,-32.41,6.665
Scotia,SC,23.02,-98.78,0.122
Sinai,SI,53.34,-7.27,0.476
Sakishima,SK,27.31,128.68,7.145
Shetland,SL,66.05,134.03,1.710
Somalia,SO,47.59,-94.36,0.346
SolomonSea,SS,-3.33,130.60,1.672
Satunam,ST,36.68,135.30,2.846
Sunda,SU,51.11,-91.75,0.350
Sandwich,SW,-30.11,-35.58,1.369
Tonga,TO,26.38,4.27,8.853
Victoria,VI,44.96,-102.19,0.330
Woodlark,WL,-1.62,130.63,1.957
Yangtze,YA,64.76,-109.19,0.335
Loading