This file contains hidden or 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 python3 | |
import numpy as np | |
import h5py | |
import argparse | |
import os | |
if __name__ == "__main__": | |
# Parse arguments | |
parser = argparse.ArgumentParser( | |
description="Convert a SatNOGS waterfall file to HDF5 format") |
This file contains hidden or 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
20442 437.126562 | |
24278 435.795813 | |
25397 435.225625 | |
25544 437.005969 | |
25544 437.049719 | |
27607 436.793406 | |
27844 436.836844 | |
27848 436.849562 | |
27939 435.354062 | |
28895 437.465969 |
This file contains hidden or 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 numpy as np | |
from astropy.time import Time | |
import matplotlib.pyplot as plt | |
def parse_line(line): | |
# Strip line and split | |
line = [part.strip() for part in line.strip().split(",")] | |
# Get MJD | |
t = Time("%sT%s"%(line[0], line[1]), format="isot", scale="utc") |
This file contains hidden or 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
#include <stdio.h> | |
#include <cpgplot.h> | |
int main(int argc,char *argv[]) | |
{ | |
cpgopen("?"); | |
cpgend(); | |
return 0; |
This file contains hidden or 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
# Open file | |
f=open(fname) | |
# Read number of channels | |
nchan=int(np.fromfile(f,dtype='float32',count=1)[0]) | |
# Read channel frequencies | |
freq=np.fromfile(f,dtype='float32',count=nchan)/1000.0 | |
# Read entire file |
NewerOlder