Help on the msnoise commands

This page shows all the command line interface commands

msnoise admin

msnoise admin --help

Usage:  [OPTIONS]

  Starts the Web Admin on http://localhost:5000 by default

Options:
  -p, --port INTEGER  Port to open
  --help              Show this message and exit.

msnoise bugreport

msnoise bugreport --help

Usage:  [OPTIONS]

  This command launches the Bug Report script.

Options:
  -s, --sys      System Info
  -m, --modules  Modules Info
  -e, --env      Environment Info
  -a, --all      All Info
  --help         Show this message and exit.

msnoise compute_cc

msnoise compute_cc --help

Usage:  [OPTIONS]

  Computes the CC jobs (based on the "New Jobs" identified)

Options:
  --help  Show this message and exit.

msnoise compute_cc2

msnoise compute_cc2 --help

Usage:  [OPTIONS]

  Computes the CC jobs (based on the "New Jobs" identified)

Options:
  --help  Show this message and exit.

msnoise compute_dtt

msnoise compute_dtt --help

Usage:  [OPTIONS]

  Computes the dt/t jobs based on the new MWCS data

Options:
  -i, --interval FLOAT  Number of days before now to search for modified Jobs
  --help                Show this message and exit.

msnoise compute_dvv

msnoise compute_dvv --help

Usage:  [OPTIONS]

  Plots the dv/v (parses the dt/t results)

  Individual pairs can be plotted extra using the -p flag one or more times.

  Example: msnoise plot dvv -p ID_KWUI_ID_POSI

  Example: msnoise plot dvv -p ID_KWUI_ID_POSI -p ID_KWUI_ID_TRWI

  Remember to order stations alphabetically !

Options:
  -f, --filterid INTEGER   Filter ID
  -c, --comp TEXT          Components (ZZ, ZR,...)
  -m, --mov_stack INTEGER  Plot specific mov stacks
  -p, --pair TEXT          Plot a specific pair
  -A, --all                Show the ALL line?
  -M, --dttname TEXT       Plot M or M0?
  -s, --show BOOLEAN       Show interactively?
  -o, --outfile TEXT       Output filename (?=auto)
  --help                   Show this message and exit.

msnoise compute_mwcs

msnoise compute_mwcs --help

Usage:  [OPTIONS]

  Computes the MWCS based on the new stacked data

Options:
  --help  Show this message and exit.

msnoise compute_stretching

msnoise compute_stretching --help

Usage:  [OPTIONS]

  [experimental] Computes the stretching based on the new stacked data

Options:
  --help  Show this message and exit.

msnoise config

msnoise config get

msnoise config get --help

Usage:  [OPTIONS] [NAMES]...

  Display the value of the given configuration variable(s).

Options:
  --help  Show this message and exit.

msnoise config gui

msnoise config gui --help

Usage:  [OPTIONS]

  Run the deprecated configuration GUI tool.  Please use the configuration
  web interface using 'msnoise admin' instead.

Options:
  --help  Show this message and exit.

msnoise config set

msnoise config set --help

Usage:  [OPTIONS] NAME_VALUE

  Set a configuration value. The argument should be of the form
  'variable=value'.

Options:
  --help  Show this message and exit.

msnoise config sync

msnoise config sync --help

Usage:  [OPTIONS]

  Synchronise station metadata from inventory/dataless.

Options:
  --help  Show this message and exit.

msnoise db

msnoise db clean_duplicates

msnoise db clean_duplicates --help

Usage:  [OPTIONS]

  Checks the Jobs table and deletes duplicate entries

Options:
  --help  Show this message and exit.

msnoise db execute

msnoise db execute --help

Usage:  [OPTIONS] SQL_COMMAND

  EXPERT MODE: Executes 'sql_command' on the database. Use this command at
  your own risk!!

Options:
  --help  Show this message and exit.

msnoise db init

msnoise db init --help

Usage:  [OPTIONS]

  This command initializes the current folder to be a MSNoise Project by
  creating a database and a db.ini file.

Options:
  --tech TEXT  Database technology: 1=SQLite 2=MySQL
  --help       Show this message and exit.

msnoise db upgrade

msnoise db upgrade --help

Usage:  [OPTIONS]

  Upgrade the database from previous to a new version.

  This procedure adds new parameters with their default value in the config
  database.

Options:
  --help  Show this message and exit.

msnoise info

msnoise info --help

Usage:  [OPTIONS]

  Outputs general information about the current install and config, plus
  information about jobs and their status.

Options:
  -j, --jobs  Jobs Info only
  --help      Show this message and exit.

msnoise install

msnoise install --help

Usage:  [OPTIONS]

  DEPRECATED: since MSNoise 1.6, please use "msnoise db init" instead

Options:
  --help  Show this message and exit.

msnoise jupyter

msnoise jupyter --help

Usage:  [OPTIONS]

  Launches an jupyter notebook in the current folder

Options:
  --help  Show this message and exit.

msnoise new_jobs

msnoise new_jobs --help

Usage:  [OPTIONS]

  Determines if new CC jobs are to be defined

Options:
  -i, --init  First run ? This disables the check for existing jobs.
  --nocc      Disable the creation of CC jobs.
  --hpc TEXT  Format PREVIOUS:NEXT. When running on HPC, create the next jobs
              in the workflow based on theprevious step mentioned here.
              Example:"msnoise new_jobs --hpc CC:STACK" will create STACK jobs
              based on CC jobs marked "D"one.
  --help      Show this message and exit.

msnoise p

Will be automatically populated with the commands declared by the plugins (p is an alias for plugin)


msnoise plot

msnoise plot ccftime

msnoise plot ccftime --help

Usage:  [OPTIONS] STA1 STA2

  Plots the ccf vs time between sta1 and sta2

  STA1 and STA2 must be provided with this format: NET.STA !

Options:
  -f, --filterid INTEGER   Filter ID
  -c, --comp TEXT          Components (ZZ, ZR,...)
  -m, --mov_stack INTEGER  Mov Stack to read from disk
  -a, --ampli FLOAT        Amplification
  -S, --seismic            Seismic style
  -s, --show BOOLEAN       Show interactively?
  -o, --outfile TEXT       Output filename (?=auto)
  -e, --envelope           Plot envelope instead of time series
  -r, --refilter TEXT      Refilter CCFs before plotting (e.g. 4:8 for
                           filtering CCFs between 4.0 and 8.0 Hz. This will
                           update the plot title.
  --help                   Show this message and exit.

msnoise plot data_availability

msnoise plot data_availability --help

Usage:  [OPTIONS]

  Plots the Data Availability vs time

Options:
  -s, --show BOOLEAN  Show interactively?
  -o, --outfile TEXT  Output filename (?=auto)
  --help              Show this message and exit.

msnoise plot distance

msnoise plot distance --help

Usage:  [OPTIONS]

  Plots the REFs of all pairs vs distance

Options:
  -f, --filterid INTEGER  Filter ID
  -c, --comp TEXT         Components (ZZ, ZR,...)
  -a, --ampli FLOAT       Amplification
  -s, --show BOOLEAN      Show interactively?
  -o, --outfile TEXT      Output filename (?=auto)
  -r, --refilter TEXT     Refilter CCFs before plotting (e.g. 4:8 for
                          filtering CCFs between 4.0 and 8.0 Hz. This will
                          update the plot title.
  --virtual-source TEXT   Use only pairs including this station. Format must
                          be NET.STA
  --help                  Show this message and exit.

msnoise plot dtt

msnoise plot dtt --help

Usage:  [OPTIONS] STA1 STA2 DAY

  Plots a graph of dt against t

  STA1 and STA2 must be provided with this format: NET.STA !

  DAY must be provided in the ISO format: YYYY-MM-DD

Options:
  -f, --filterid INTEGER   Filter ID
  -c, --comp TEXT          Components (ZZ, ZR,...)
  -m, --mov_stack INTEGER  Mov Stack to read from disk
  -s, --show BOOLEAN       Show interactively?
  -o, --outfile TEXT       Output filename (?=auto)
  --help                   Show this message and exit.

msnoise plot dvv

msnoise plot dvv --help

Usage:  [OPTIONS]

  Plots the dv/v (parses the dt/t results)

  Individual pairs can be plotted extra using the -p flag one or more times.

  Example: msnoise plot dvv -p ID_KWUI_ID_POSI

  Example: msnoise plot dvv -p ID_KWUI_ID_POSI -p ID_KWUI_ID_TRWI

  Remember to order stations alphabetically !

Options:
  -f, --filterid INTEGER   Filter ID
  -c, --comp TEXT          Components (ZZ, ZR,...)
  -m, --mov_stack INTEGER  Plot specific mov stacks
  -p, --pair TEXT          Plot a specific pair
  -A, --all                Show the ALL line?
  -M, --dttname TEXT       Plot M or M0?
  -s, --show BOOLEAN       Show interactively?
  -o, --outfile TEXT       Output filename (?=auto)
  --help                   Show this message and exit.

msnoise plot interferogram

msnoise plot interferogram --help

Usage:  [OPTIONS] STA1 STA2

  Plots the interferogram between sta1 and sta2 (parses the CCFs)

  STA1 and STA2 must be provided with this format: NET.STA !

Options:
  -f, --filterid INTEGER   Filter ID
  -c, --comp TEXT          Components (ZZ, ZR,...)
  -m, --mov_stack INTEGER  Mov Stack to read from disk
  -s, --show BOOLEAN       Show interactively?
  -o, --outfile TEXT       Output filename (?=auto)
  -r, --refilter TEXT      Refilter CCFs before plotting (e.g. 4:8 for
                           filtering CCFs between 4.0 and 8.0 Hz. This will
                           update the plot title.
  --help                   Show this message and exit.

msnoise plot mwcs

msnoise plot mwcs --help

Usage:  [OPTIONS] STA1 STA2

  Plots the mwcs results between sta1 and sta2 (parses the CCFs)

  STA1 and STA2 must be provided with this format: NET.STA !

Options:
  -f, --filterid INTEGER   Filter ID
  -c, --comp TEXT          Components (ZZ, ZR,...)
  -m, --mov_stack INTEGER  Mov Stack to read from disk
  -s, --show BOOLEAN       Show interactively?
  -o, --outfile TEXT       Output filename (?=auto)
  --help                   Show this message and exit.

msnoise plot spectime

msnoise plot spectime --help

Usage:  [OPTIONS] STA1 STA2

  Plots the ccf's spectrum vs time between sta1 and sta2

  STA1 and STA2 must be provided with this format: NET.STA !

Options:
  -f, --filterid INTEGER   Filter ID
  -c, --comp TEXT          Components (ZZ, ZR,...)
  -m, --mov_stack INTEGER  Mov Stack to read from disk
  -a, --ampli FLOAT        Amplification
  -s, --show BOOLEAN       Show interactively?
  -o, --outfile TEXT       Output filename (?=auto)
  -r, --refilter TEXT      Refilter CCFs before plotting (e.g. 4:8 for
                           filtering CCFs between 4.0 and 8.0 Hz. This will
                           update the plot title.
  --help                   Show this message and exit.

msnoise plot station_map

msnoise plot station_map --help

Usage:  [OPTIONS]

  Plots the station map (very very basic)

Options:
  -s, --show BOOLEAN  Show interactively?
  -o, --outfile TEXT  Output filename (?=auto)
  --help              Show this message and exit.

msnoise plot timing

msnoise plot timing --help

Usage:  [OPTIONS]

  Plots the timing (parses the dt/t results)

  Individual pairs can be plotted extra using the -p flag one or more times.

  Example: msnoise plot timing -p ID_KWUI_ID_POSI

  Example: msnoise plot timing -p ID_KWUI_ID_POSI -p ID_KWUI_ID_TRWI

  Remember to order stations alphabetically !

Options:
  -f, --filterid INTEGER   Filter ID
  -c, --comp TEXT          Components (ZZ, ZR,...)
  -m, --mov_stack INTEGER  Plot specific mov stacks
  -p, --pair TEXT          Plot a specific pair
  -A, --all                Show the ALL line?
  -M, --dttname TEXT       Plot M or M0?
  -s, --show BOOLEAN       Show interactively?
  -o, --outfile TEXT       Output filename (?=auto)
  --help                   Show this message and exit.

msnoise plugin

Will be automatically populated with the commands declared by the plugins (p is an alias for plugin)

msnoise populate

msnoise populate --help

Usage:  [OPTIONS]

  Rapidly scan the archive filenames and find Network/Stations

Options:
  --fromDA  Populates the station table using network and station codes found
            in the data_availability table, overrides the default workflow
            step.
  --help    Show this message and exit.

msnoise reset

msnoise reset --help

Usage:  [OPTIONS] JOBTYPE

  Resets the job to "T"odo. ARG is [CC] or [DTT]. By default only resets
  jobs "I"n progress. --all resets all jobs, whatever the flag value

Options:
  -a, --all        Reset all jobs
  -r, --rule TEXT  Reset job that match this SQL rule
  --help           Show this message and exit.

msnoise scan_archive

msnoise scan_archive --help

Usage:  [OPTIONS]

  Scan the archive and insert into the Data Availability table.

Options:
  -i, --init         First run ?
  --path TEXT        Scan all files in specific folder, overrides the default
                     workflow step.
  -r, --recursively  When scanning a path, walk subfolders automatically ?
  --crondays TEXT    Number of past days to monitor, typically used in cron
                     jobs (overrides the 'crondays' configuration value). Must
                     be a float representing a number of days, or designate
                     weeks, days, and/or hours using the format 'Xw Xd Xh'.
  --help             Show this message and exit.

msnoise stack

msnoise stack --help

Usage:  [OPTIONS]

  Stacks the [REF] and/or [MOV] windows

Options:
  -r, --ref   Compute the REF Stack
  -m, --mov   Compute the MOV Stacks
  -s, --step  Compute the STEP Stacks
  --help      Show this message and exit.

msnoise test

msnoise test --help

Usage:  [OPTIONS]

  Runs the test suite, should be executed in an empty folder!

Options:
  -p, --prefix TEXT  Prefix for tables
  --help             Show this message and exit.

msnoise upgrade-db

msnoise upgrade-db --help

Usage:  [OPTIONS]

  DEPRECATED: since MSNoise 1.6, please use "msnoise db upgrade" instead

Options:
  --help  Show this message and exit.