Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiste committed Jan 7, 2025
1 parent 751836c commit d909e5b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion data-raw/DATASET.R
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,14 @@ ITRF2020 <- readxl::read_excel("../europe-tectonics/data/euler/recent_plate_moti

ITRF2020_deg <- cbind(ITRF2020$x_deg, ITRF2020$y_deg, ITRF2020$z_deg) |>
deg2rad() %>%
apply(1, euler::euler_cart2geo) |> t()
euler::euler_cart2geo()

ITRF2020_PMM <- ITRF2020 |> select(plate.name, plate.rot, plate.fix) |>
bind_cols(ITRF2020_deg) |>
rename(angle = mag) |>
dplyr::mutate(
lon = ifelse(is.nan(lon), 0, lon),
lat = ifelse(is.nan(lat), 0, lat),
plate.rot = tolower(plate.rot),
#plate.fix = "itrf97",
model = "ITRF2020-PMM"
Expand Down Expand Up @@ -291,3 +293,4 @@ usethis::use_data(cpm_models, overwrite = TRUE, ascii = TRUE)

# check all the files:
tools::checkRdaFiles("data")

Binary file modified data/cpm_models.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/cpm_models.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d909e5b

Please sign in to comment.