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 agegrid CLI #115

Merged
merged 2 commits into from
Oct 19, 2023
Merged

Add agegrid CLI #115

merged 2 commits into from
Oct 19, 2023

Conversation

cpalfonso
Copy link
Collaborator

The new gplately agegrid (or gplately ag) command will take a list of input files, a start and end time, and an output directory to create seafloor age and spreading rate grids. For full usage, see below:

usage: gplately agegrid [-h] [-c CONTINENTS_FILE [CONTINENTS_FILE ...]] [-r RESOLUTION] [--refinement-levels LEVELS] [--ridge-sampling RESOLUTION]
                        [--initial-spreadrate SPREADRATE] [-e MIN_TIME] [-s MAX_TIME] [-j N_JOBS] [-f NAME] [-u]
                        INPUT_FILE [INPUT_FILE ...] OUTPUT_DIR

Create age grids for a plate model.

positional arguments:
  INPUT_FILE            input reconstruction files
  OUTPUT_DIR            output directory

options:
  -h, --help            show this help message and exit
  -c CONTINENTS_FILE [CONTINENTS_FILE ...], --continents CONTINENTS_FILE [CONTINENTS_FILE ...]
                        input continent files
  -r RESOLUTION, --resolution RESOLUTION
                        grid resolution (degrees); default: 0.1
  --refinement-levels LEVELS
                        mesh refinement levels; default: 5
  --ridge-sampling RESOLUTION
                        MOR sampling resolution (degrees); default: 0.5
  --initial-spreadrate SPREADRATE
                        initial ocean spreading rate (km/Myr); default: 75
  -e MIN_TIME, --min-time MIN_TIME
                        minimum time (Ma); default: 0
  -s MAX_TIME, --max-time MAX_TIME
                        maximum time (Ma); default: 0
  -j N_JOBS, --n_jobs N_JOBS
                        number of processes to use; default: 1
  -f NAME, --file-collection NAME
                        file collection name (optional)
  -u, --include-unmasked
                        create unmasked grids in addition to masked ones

@cpalfonso cpalfonso marked this pull request as ready for review October 19, 2023 00:54
@cpalfonso cpalfonso merged commit 62d1736 into master Oct 19, 2023
1 check passed
@cpalfonso cpalfonso deleted the agegrid-cli branch October 19, 2023 00:54
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