Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • lofar2.0/tango
  • mckenna/tango
2 results
Show changes
Commits on Source (4)
......@@ -42,7 +42,7 @@ job "device-servers" {
}
config {
image = "minio/mc:latest"
image = "[[ $.registry.astron.url ]]/mc:latest"
entrypoint = [""]
command = "/bin/bash"
args = ["-c", "mc alias set object-storage http://s3.service.consul:9000 [[.object_storage.user.name]] [[.object_storage.user.pass]] && mc mirror --preserve --watch object-storage/iers/ /opt/IERS/ --monitoring-address 0.0.0.0:8081" ]
......
......@@ -4,6 +4,7 @@
from dataclasses import dataclass
from .constants import CLK_160_MHZ, CLK_200_MHZ
from .sdp import subband_frequency, are_subbands_decreasing
@dataclass(frozen=True)
......@@ -37,6 +38,17 @@ class Band:
# return first match
return matching_bands[0].name
@property
def spectral_inversion(self) -> bool:
"""Whether the spectrum is inverted, and thus should be inverted back by SDP."""
return are_subbands_decreasing(self.nyquist_zone, False)
def subband_frequency(self, subband: int) -> float:
"""The central frequency of the given subband index, if SDP is configured accordingly."""
return subband_frequency(
subband, self.clock, self.nyquist_zone, self.spectral_inversion
)
# Global list of all supported frequency bands
bands = {}
......
......@@ -44,7 +44,7 @@ class LOFAR1CalTables(dict):
def download_all(self):
for filename in self.files:
with open(f"{self.tmpdir}/{filename}", "wb") as f:
url = f"https://svn.astron.nl/Station/trunk/CalTables/{self.station.upper()}/{filename}"
url = f"https://git.astron.nl/ro/lofar1-caltables/-/raw/main/{self.station.upper()}/{filename}"
data = urllib.request.urlopen(url).read()
f.write(data)
......