pyrfu.mms.db_init module#

pyrfu.mms.db_init.db_init(default: Literal['local', 'sdc', 'aws'] | None = 'local', local: str | None = '../data', sdc: str | None = 'public', sdc_username: str | None = 'username', sdc_password: str | None = 'password', aws: str | None = '')[source]#

Manage the MMS data access configuration.

The default resource to access MMS data, the local path to use, the MMS SDC credentials saved in encrypted file in your home directory, and the Amazon Web Services (AWS) bucket name.

Parameters:
  • default ({"local", "sdc", "aws"}, Optional) – Name of the default resource to access the MMS data. Default is local.

  • local (str, Optional) – Local path to MMS data. Default is /Volumes/mms.

  • sdc ({"public", "sitl"}, Optional) – Rights to access MMS data from SDC. If “sitl” please make sure to register valid SDC credential. Default is public.

  • sdc_username (str, Optional) – MMS SDC credential username. Default is “username”.

  • sdc_password (str, Optional) – MMS SDC credential password. Default is “password”.

  • aws (str, Optional) – Bucket name and prefix to MMS data in AWS S3. Default is empty.

Raises: