Misc

This module contains all miscellaneous classes that are too small to have their own modules

Functions and Classes

class Coordinate(val, error=0.0)

A wrapper class for coordinates fro the NordicEvent. Does not modify the actual value inside the NordicEvent. Can be cast into float with float()

Variables:
  • val (float) – latitude or longitude of the event in degrees
  • error (float) – latitude or longitude error of the value
class CreationInfo(owner='postgres', c_id=-1, creation_date=datetime.datetime(2023, 8, 22, 8, 48, 50, 634442), privacy='public', creation_comment=None)

Class for containing basic creation info for a nordb entry.

Variables:
  • c_id (int) – database id of the CreationInfo entry
  • creation_date (datetime) – datetime of the time of creation
  • owner (str) – owner of the creationInfo entry
  • privacy (str) – privacy level of the creationInfo object
class Depth(val, error=0.0)

A wrapper class for depth for the NordicEvent. Does not modify the actual value inside the NordicEvent. Can be cast into float with float()

Variables:
  • val (float) – depth of the event in kilometers
  • error (float) – depth error of the value
class Magnitude(val, mtype, reporting_agency, error=0.0)

A magnitude wrapper class for the NordicEvent. Does not modify the actual value inside the NordicEvent. Can be cast into float with float()

Variables:
  • val (float) – the magnitude as a float
  • magnitude_type (str) – type of the magnitude as described in the NordicMain class
  • reporting_agency (str) – reporting agency of the event
  • error (float) – Error in the magnitude va Error in the magnitude value
class OriginTime(val, error=0.0)

A wrapper class for origin_time for the NordicEvent. Does not modify the actual value inside the NordicEvent. Can be cast into datetime with datetime()

Variables:
  • datetime val (date) – origin time as a datetime or a date
  • error (float) – error value of origin time in seconds