diff --git a/geomagio/edge/SNCL.py b/geomagio/edge/SNCL.py index 20a0a885fcdbf411d7cd5f5f4e0c9ae40d92e546..9e9e92b559231cfc41df72bab37e92a092cd7cba 100644 --- a/geomagio/edge/SNCL.py +++ b/geomagio/edge/SNCL.py @@ -42,6 +42,15 @@ class SNCL(BaseModel): location: str data_format: str = "miniseed" + def parse_sncl(self) -> Dict: + return { + "station": self.station, + "network": self.network, + "data_type": self.data_type, + "element": self.element, + "interval": self.interval, + } + def dict(self, exclude: Set = {"data_format"}) -> dict: return super().dict( exclude=exclude,