function allataq2bin(from, to)

for mjd = from:10:to
	mjd_str = sprintf("%d",mjd);
	cmd = ['/home/ftp/pub/hmaser/prog/ata2bin < /home/ftp/pub/hmaser/q' mjd_str '.dat > /home/ftp/pub/hmaser/bin/q' mjd_str '.bin']
	system(cmd)
endfor

