get_ma_event_metadata: Get Mobile Acoustic event metadata

View source: R/nabat_gql_queries.R

get_ma_event_metadataR Documentation

Get Mobile Acoustic event metadata

Description

Returns a dataframe with metadata that is linked to the event id. This is used with get_ma_batch() output to create the MA bulk wav output.

Usage

get_ma_event_metadata(
  token,
  survey_df,
  year = NULL,
  branch = "prod",
  url = NULL,
  aws_gql = NULL,
  aws_alb = NULL,
  docker = FALSE,
  return_t = FALSE
)

Arguments

token

List token created from get_nabat_gql_token() or get_refresh_token()

survey_df

Dataframe MA summary data for a project. Running get_ma_project_summary() will create this survey_df

year

(optional) String Year of data to extract out. Can also be set to 'all' Defaults to NULL which grabs first year available from survey_df.

branch

(optional) String that defaults to 'prod' but can also be 'dev'|'beta'|'local'

url

(optional) String url to use for GQL

aws_gql

(optional) String url to use in aws

aws_alb

(optional) String url to use in aws

docker

(optional) Boolean if being run in docker container or not

return_t

(optional) Boolean Changes the Returned value to a list and adds a token as one of the returned values (if set to TRUE)


usgs/nabatr documentation built on Jan. 28, 2024, 7:10 a.m.