diff --git a/geomagio/edge/EdgeFactory.py b/geomagio/edge/EdgeFactory.py index 1190dbb167356bed32e28dcb11bc9e4bbbc33c6e..2ce1685ae059f7e7208218679562264858dc37d2 100644 --- a/geomagio/edge/EdgeFactory.py +++ b/geomagio/edge/EdgeFactory.py @@ -311,7 +311,7 @@ class EdgeFactory(TimeseriesFactory): data = self.client.get_waveforms( sncl.network, sncl.station, - sncl.location, + self.locationCode or sncl.location, sncl.channel, starttime, endtime, @@ -334,7 +334,7 @@ class EdgeFactory(TimeseriesFactory): interval, sncl.network, sncl.station, - sncl.location, + self.locationCode or sncl.location, ) self._set_metadata(data, observatory, channel, type, interval) return data @@ -423,7 +423,7 @@ class EdgeFactory(TimeseriesFactory): port, sncl.station, sncl.channel, - sncl.location, + self.locationCode or sncl.location, sncl.network, ) diff --git a/geomagio/edge/MiniSeedFactory.py b/geomagio/edge/MiniSeedFactory.py index ec8b54692693e6f033326274e39deab0d51e719f..8d1779fc699f974075dbd0a550b760d9f200b7e3 100644 --- a/geomagio/edge/MiniSeedFactory.py +++ b/geomagio/edge/MiniSeedFactory.py @@ -336,7 +336,7 @@ class MiniSeedFactory(TimeseriesFactory): interval, sncl.network, sncl.station, - sncl.location, + self.locationCode or sncl.location, ) self._set_metadata(data, observatory, channel, type, interval) return data @@ -468,7 +468,7 @@ class MiniSeedFactory(TimeseriesFactory): ) for trace in to_write: trace.stats.station = sncl.station - trace.stats.location = sncl.location + trace.stats.location = self.locationCode or sncl.location trace.stats.network = sncl.network trace.stats.channel = sncl.channel # finally, send to edge