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 baseband import vdif | |
from baseband.vdif.header import VDIFHeader0, HeaderParser, VDIFHeader | |
import numpy as np | |
import astropy.units as u | |
files = list('{:07d}.dat'.format(no) for no in range(100000, 100001)) | |
class DRAOVDIFHeader(VDIFHeader0): |
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
"""Test of the scintillometry dedispersion routines on PSR B1937+21""" | |
import numpy as np | |
from numpy.lib.format import open_memmap | |
import astropy.units as u | |
from baseband import guppi | |
from scintillometry.dispersion import Dedisperse | |
from scintillometry.functions import Square | |
from scintillometry.fourier import get_fft_maker | |
from scintillometry.integration import Stack | |
import matplotlib.pylab as plt |
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
#include <math.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#define _FILE_OFFSET_BITS 64 | |
//much of this taken from from Ari Mujunen vsib code | |
static unsigned char bytetable[256]; | |
unsigned char crcdata[6]; |