This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""nqm2ms: Convert NEWSTAR data (*.nqm) to CASA MS. | |
Usage: /path/to/casa -c nqm2ms [<nqm> [<nqm> ...]] | |
Note: This script only works with CASA <= 5.0.0. | |
""" | |
import asap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randrange | |
from re import sub | |
from time import sleep | |
def update(lineno: int, pattern: str, repl: str) -> None: | |
"""Update part of this file by given pattern and replacement.""" | |
with open(__file__, "r") as f: | |
lines = f.readlines() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import sdpl | |
import numpy as np | |
import matplotlib.pyplot as plt | |
"""CASA pipeline for NRO45m/SAM45 PSW data. | |
This script uses the ATNF Spectral Analysis Package (ASAP), | |
moduled as `sd` in the Common Astronomy Software Packages (CASA). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# standard library | |
from dataclasses import dataclass | |
from typing import ( | |
Any, | |
Callable, | |
Generic, | |
ParamSpec, | |
Protocol, | |
Type, | |
TypeVar, |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
''' | |
makefmp.py - make frequency modulation pattern (FMP) file | |
+ developer: Akio Taniguchi (IoA, UTokyo) | |
+ contact: taniguchi_at_ioa.s.u-tokyo.ac.jp | |
''' | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import time | |
from datetime import datetime | |
BUFSIZE = 4096 | |
LOCAL_IP = "192.168.101.88" | |
MULTICAST_IP = "239.0.0.1" | |
MULTICAST_PORT = 6000 | |
RECV_INTERVAL = 0.0 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder