ascl_id
stringclasses
752 values
repo_url
stringclasses
737 values
file_path
stringlengths
4
194
content
large_stringlengths
1
1M
language
stringclasses
29 values
license_type
stringclasses
24 values
size
int64
1
1M
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/editcol.c
/* This file, editcol.c, contains the set of FITSIO routines that */ /* insert or delete rows or columns in a table or resize an image */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* Goddard Space...
C
null
111,493
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/drvrnet.c
/* This file, drvrhttp.c contains driver routines for http, ftp and root files. */ /* This file was written by Bruce O'Neel at the ISDC, Switzerland */ /* The FITSIO software is maintained by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA ...
C
null
128,200
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/putcoli.c
/* This file, putcoli.c, contains routines that write data elements to */ /* a FITS image or table, with short datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
35,662
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/simplerng.h
/* Simple Random Number Generators - getuniform - uniform deviate [0,1] - getnorm - gaussian (normal) deviate (mean=0, stddev=1) - getpoisson - poisson deviate for given expected mean lambda This code is adapted from SimpleRNG by John D Cook, which is provided in the public domain. ...
C/C++ Header
null
1,078
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/modkey.c
/* This file, modkey.c, contains routines that modify, insert, or update */ /* keywords in a FITS header. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
66,777
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/getcole.c
/* This file, getcole.c, contains routines that read data elements from */ /* a FITS image or table, with float datatype */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
71,012
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/region.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include "fitsio2.h" #include "region.h" static int Pt_in_Poly( double x, double y, int nPts, double *Pts ); /*---------------------------------------------------------------------------*/ int fits_read_rgnfile( const char ...
C
null
57,372
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/edithdu.c
/* This file, edithdu.c, contains the FITSIO routines related to */ /* copying, inserting, or deleting HDUs in a FITS file */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* Goddard S...
C
null
32,727
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/swapproc.c
/* This file, swapproc.c, contains general utility routines that are */ /* used by other FITSIO routines to swap bytes. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
7,703
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/eval_f.c
/************************************************************************/ /* */ /* CFITSIO Lexical Parser */ /* */ /* This file is one ...
C
null
104,344
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/putcols.c
/* This file, putcols.c, contains routines that write data elements to */ /* a FITS image or table, of type character string. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
10,944
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/putcole.c
/* This file, putcole.c, contains routines that write data elements to */ /* a FITS image or table, with float datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
39,515
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/windumpexts.c
/* * winDumpExts.c -- * Author: Gordon Chaffee, Scott Stanton * * History: The real functionality of this file was written by * Matt Pietrek in 1993 in his pedump utility. I've * modified it to dump the externals in a bunch of object * files to create a .def file. * * 10/12/9...
C
null
13,037
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/iter_a.c
#include <string.h> #include <stdio.h> #include <stdlib.h> #include "fitsio.h" /* This program illustrates how to use the CFITSIO iterator function. It reads and modifies the input 'iter_a.fit' file by computing a value for the 'rate' column as a function of the values in the other 'counts' and 'time' columns....
C
null
5,261
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/putcolk.c
/* This file, putcolk.c, contains routines that write data elements to */ /* a FITS image or table, with 'int' datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
36,612
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/eval_l.c
#line 1 "eval_l.c" #line 3 "eval_l.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ /* Suppress unused static function warning for 'input()' */ #define YY_NO_INPUT 1 #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 6 #define YY_FLEX_SUBMINOR_VERSION 4...
C
null
85,495
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/cfileio.c
/* This file, cfileio.c, contains the low-level file access routines. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* Goddard Space Flight Center. */ #inclu...
C
null
265,936
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/f77_wrap4.c
/************************************************************************ f77_wrap1.c and f77_wrap2.c have now been split into 4 files to prevent compile-time memory errors (from expansion of compiler commands). f77_wrap1.c was split into f77_wrap1.c and f77_wrap3.c, and f77_wrap2.c was split into ...
C
null
19,467
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/putcolui.c
/* This file, putcolui.c, contains routines that write data elements to */ /* a FITS image or table, with unsigned short datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA ...
C
null
35,051
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/scalnull.c
/* This file, scalnull.c, contains the FITSIO routines used to define */ /* the starting heap address, the value scaling and the null values. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
8,973
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/f77_wrap1.c
/************************************************************************ f77_wrap1.c and f77_wrap2.c have now been split into 4 files to prevent compile-time memory errors (from expansion of compiler commands). f77_wrap1.c was split into f77_wrap1.c and f77_wrap3.c, and f77_wrap2.c was split into ...
C
null
12,827
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/eval_tab.h
/* A Bison parser, made by GNU Bison 3.8.2. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as pub...
C/C++ Header
null
4,954
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/iter_b.f
program f77iterate_b C external work function is passed to the iterator external str_iter integer ncols parameter (ncols=2) integer units(ncols), colnum(ncols), datatype(ncols) integer iotype(ncols), offset, rows_per_loop, status character*70 colname(ncols) integer...
Fortran
null
5,679
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/getcolb.c
/* This file, getcolb.c, contains routines that read data elements from */ /* a FITS image or table, with unsigned char (unsigned byte) data type. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
78,370
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/fitscore.c
/* This file, fitscore.c, contains the core set of FITSIO routines. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* Goddard Space Flight Center. */ /* Cop...
C
null
323,482
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/CMakeLists.txt
#============================================================================== # CFITSIO CMakeLists.txt #============================================================================== # Ensure that build directory is not the source directory: IF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) message(FATAL_ERROR ...
Text
null
12,748
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/fitsio2.h
#ifndef _FITSIO2_H #define _FITSIO2_H #include "fitsio.h" /* Threading support using POSIX threads programming interface (supplied by Bruce O'Neel) All threaded programs MUST have the -D_REENTRANT on the compile line and must link with -lpthread. This means that when one builds cfitsio...
C/C++ Header
null
66,140
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/getcoll.c
/* This file, getcoll.c, contains routines that read data elements from */ /* a FITS image or table, with logical datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
23,298
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/grparser.h
/* T E M P L A T E P A R S E R H E A D E R F I L E ===================================================== by Jerzy.Borkowski@obs.unige.ch Integral Science Data Center ch. d'Ecogia 16 1290 Versoix Switzerland 14-Oct-98: initial release 16-Oct-98: reference to fitsio.h removed, also removed strings a...
C/C++ Header
null
5,725
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/f77_wrap3.c
/************************************************************************ f77_wrap1.c and f77_wrap2.c have now been split into 4 files to prevent compile-time memory errors (from expansion of compiler commands). f77_wrap1.c was split into f77_wrap1.c and f77_wrap3.c, and f77_wrap2.c was split into ...
C
null
33,790
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/drvrsmem.h
/* S H A R E D M E M O R Y D R I V E R ======================================= by Jerzy.Borkowski@obs.unige.ch 09-Mar-98 : initial version 1.0 released 23-Mar-98 : shared_malloc now accepts new handle as an argument */ #include <sys/ipc.h> /* this is necessary for Solaris/Linux */ #include <sys/shm.h> #...
C/C++ Header
null
6,536
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/getcolsb.c
/* This file, getcolsb.c, contains routines that read data elements from */ /* a FITS image or table, with signed char (signed byte) data type. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* G...
C
null
77,379
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/iter_image.c
#include <string.h> #include <stdio.h> #include <stdlib.h> #include "fitsio.h" /* This program illustrates how to use the CFITSIO iterator function. It reads and modifies the input 'iter_image.fit' image file by setting all the pixel values to zero (DESTROYING THE ORIGINAL IMAGE!!!) */ int main() { extern in...
C
null
3,082
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/simplerng.c
/* Simple Random Number Generators - getuniform - uniform deviate [0,1] - getnorm - gaussian (normal) deviate (mean=0, stddev=1) - getpoisson - poisson deviate for given expected mean lambda This code is adapted from SimpleRNG by John D Cook, which is provided in the public domain. ...
C
null
13,925
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/fits_hcompress.c
/* ######################################################################### These routines to apply the H-compress compression algorithm to a 2-D Fits image were written by R. White at the STScI and were obtained from the STScI at http://www.stsci.edu/software/hcompress.html This source file is a concatination of th...
C
null
47,306
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/vmsieee.c
#include <cvtdef.h> #include <cvtmsg.h> unsigned long CVT$CONVERT_FLOAT(); /* IEEVPAKR -- Pack a native floating point vector into an IEEE one. */ void ieevpr (unsigned int *native, unsigned int *ieee, int *nelem) { unsigned long status; unsigned long options; unsigned int *unanval; in...
C
null
3,782
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/zuncompress.c
/* gzcompress.h -- definitions for the .Z decompression routine used in CFITSIO */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #define get_char() get_byte() /* gzip.h -- common declarations for all gzip modules */ #define OF(args) args typedef void *voidp; #define memzero(s, n) ...
C
null
16,425
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/iter_c.c
#include <string.h> #include <stdio.h> #include <stdlib.h> #include "fitsio.h" /* This example program illustrates how to use the CFITSIO iterator function. This program creates a 2D histogram of the X and Y columns of an event list. The 'main' routine just creates the empty new image, then executes ...
C
null
6,020
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/getcoli.c
/* This file, getcoli.c, contains routines that read data elements from */ /* a FITS image or table, with short datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
74,917
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/drvrgsiftp.c
/* This file, drvrgsiftp.c contains driver routines for gsiftp files. */ /* Andrea Barisani <lcars@si.inaf.it> */ /* Taffoni Giuliano <taffoni@oats.inaf.it> */ #ifdef HAVE_NET_SERVICES #ifdef HAVE_GSIFTP #include <sys/types.h> #include <string.h> #include...
C
null
14,210
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/quantize.c
/* The following code is based on algorithms written by Richard White at STScI and made available for use in CFITSIO in July 1999 and updated in January 2008. */ # include <stdio.h> # include <stdlib.h> # include <math.h> # include <limits.h> # include <float.h> #include "fitsio2.h" /* nearest integer function ...
C
null
118,885
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/pliocomp.c
/* stdlib is needed for the abs function */ #include <stdlib.h> /* The following prototype code was provided by Doug Tody, NRAO, for performing conversion between pixel arrays and line lists. The compression technique is used in IRAF. */ int pl_p2li (int *pxsrc, int xs, short *lldst, int npix); int pl_l2pi (s...
C
null
7,067
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/group.h
#define MAX_HDU_TRACKER 1000 typedef struct _HDUtracker HDUtracker; struct _HDUtracker { int nHDU; char *filename[MAX_HDU_TRACKER]; int position[MAX_HDU_TRACKER]; char *newFilename[MAX_HDU_TRACKER]; int newPosition[MAX_HDU_TRACKER]; }; /* functions used internally in the grouping convention module */ ...
C/C++ Header
null
2,097
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/imcompress.c
# include <stdio.h> # include <stdlib.h> # include <string.h> # include <math.h> # include <ctype.h> # include <time.h> # include "fitsio2.h" #define NULL_VALUE -2147483647 /* value used to represent undefined pixels */ #define ZERO_VALUE -2147483646 /* value used to represent zero-valued pixels */ /* nearest integer...
C
null
381,945
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/putcol.c
/* This file, putcol.c, contains routines that write data elements to */ /* a FITS image or table. These are the generic routines. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
74,471
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/wcssub.c
#include <stdlib.h> #include <math.h> #include <string.h> #include "fitsio2.h" /*--------------------------------------------------------------------------*/ int fits_read_wcstab( fitsfile *fptr, /* I - FITS file pointer */ int nwtb, /* Number of arrays to be read from the binary table(s) */ ...
C
null
35,267
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/putcolj.c
/* This file, putcolj.c, contains routines that write data elements to */ /* a FITS image or table, with long datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
71,848
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/getcolui.c
/* This file, getcolui.c, contains routines that read data elements from */ /* a FITS image or table, with unsigned short datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* G...
C
null
75,314
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/getcold.c
/* This file, getcold.c, contains routines that read data elements from */ /* a FITS image or table, with double datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
68,862
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/drvrsmem.c
/* S H A R E D M E M O R Y D R I V E R ======================================= by Jerzy.Borkowski@obs.unige.ch 09-Mar-98 : initial version 1.0 released 23-Mar-98 : shared_malloc now accepts new handle as an argument 23-Mar-98 : shmem://0, shmem://1, etc changed to sh...
C
null
38,559
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/drvrfile.c
/* This file, drvrfile.c contains driver routines for disk files. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* Goddard Space Flight Center. */ #inclu...
C
null
31,822
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/putcoluj.c
/* This file, putcoluj.c, contains routines that write data elements to */ /* a FITS image or table, with unsigned long datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA *...
C
null
69,713
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/putcoluk.c
/* This file, putcolk.c, contains routines that write data elements to */ /* a FITS image or table, with 'unsigned int' datatype. */ /* The FITSIO software was written by William Pence at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* God...
C
null
35,867
[ascl:2402.002]
https://github.com/asgr/Rfits
src/cfitsio/config/ltmain.sh
#! /usr/bin/env sh ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in ## by inline-source v2019-02-19.15 # libtool (GNU libtool) 2.5.4 # Provide generalized library-building support services. # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # Copyright (C) 1996-2019, 2021-2024 Fre...
Shell
null
337,554
[ascl:2402.002]
https://github.com/asgr/Rfits
tests/testthat.R
library(testthat) library(Rfits) test_check("Rfits")
R
null
54
[ascl:2402.002]
https://github.com/asgr/Rfits
tests/testthat/test_Rfits.R
#load packages library(Rfits) library(testthat) library(FITSio) #library(tdigest) - ignoring now tdigest is not on CRAN :-( library(R.utils) library(bit64) context("Check Rfits table/image read/write") #ex 1 check that we read in images like readFITS file_image = system.file('extdata', 'image.fits', package = "Rfits...
R
null
13,678
[ascl:2402.002]
https://github.com/asgr/Rfits
R/zzz.R
.onLoad = function(libname, pkgname){ Rfits_gunzip_clear() }
R
null
63
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_gunzip.R
Rfits_gunzip = function(filename, tempdir=NULL){ assertCharacter(filename, max.len=1) filename = path.expand(filename) assertAccess(filename, access='r') if(grepl('fits.gz$',basename(filename)) | grepl('fit.gz$',basename(filename))){ if(filename %in% options()$Rfits_gunzip[,1]){ filename = options()$R...
R
null
2,193
[ascl:2402.002]
https://github.com/asgr/Rfits
R/utility.R
#utility functions .safedim = function(lo_orig=1L, hi_orig=1L, lo_tar=1L, hi_tar=1L){ len_orig = hi_orig - lo_orig + 1L len_tar = hi_tar - lo_tar + 1L out_lo_orig = max(lo_tar, 1L) out_hi_orig = min(hi_tar, len_orig) diff = (1L - lo_tar) out_lo_tar = out_lo_orig + diff out_hi_tar = out_hi_orig + diff ...
R
null
722
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_all_hdf5.R
Rfits_read_all_hdf5 = function(filename='temp.h5', header=TRUE, data.table=TRUE){ assertCharacter(filename, max.len=1) filename = path.expand(filename) assertLogical(header) assertFlag(data.table) file.h5 = hdf5r::H5File$new(filename, mode='a') extnames = file.h5$names dataclass = as.character(file.h5$ls...
R
null
2,666
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_image_hdf5.R
Rfits_read_image_hdf5 = function(filename='temp.h5', extname='data1', ext=NULL, header=TRUE, xlo=NULL, xhi=NULL, ylo=NULL, yhi=NULL, zlo=NULL, zhi=NULL, tlo=NULL, thi=NULL, remove_HIERARCH=FALSE, force_logical=FALSE){ if(!requireNamespace("hdf5r", quie...
R
null
13,140
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_methods_subset.R
`[.Rfits_vector` = function(x, i, header=TRUE){ if(missing(i)){i = c(1,length(x$imDat))} safedim_i = .safedim(1, length(x$imDat), min(i), max(i)) tar = array(NA, dim=safedim_i$len_tar) if(safedim_i$safe){ tar[safedim_i$tar] = x$imDat[safedim_i$orig] } if(header){ if(!isTRUE(x$keyvalues$Z...
R
null
31,373
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_header.R
# Access modes when opening a FITS file: # # #define READONLY 0 # #define READWRITE 1 # # BITPIX data type code values for FITS images: # # #define BYTE_IMG 8 /* 8-bit unsigned integers */ # #define SHORT_IMG 16 /* 16-bit signed integers */ # #define LONG_IMG 32 /* 32-bit signe...
R
null
32,777
[ascl:2402.002]
https://github.com/asgr/Rfits
R/RcppExports.R
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 Cfits_create_header <- function(filename, create_ext = 1L, create_file = 1L) { invisible(.Call(`_Rfits_Cfits_create_header`, filename, create_ext, create_file)) } Cfits_read_col <- functio...
R
null
4,902
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_table_hdf5.R
Rfits_read_table_hdf5 = function(filename='temp.h5', extname='table1', ext=NULL, data.table=TRUE, header=FALSE, remove_HIERARCH=FALSE){ if(requireNamespace("hdf5r", quietly = TRUE)){ file.h5 = hdf5r::H5File$new(filename, mode='a') output = NULL try({ if(!is.null(ext)){ extname...
R
null
4,398
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_methods_bespoke.R
#centre centre = function(x, useraw=TRUE, ...){ UseMethod("centre", x) } centre.Rfits_image = function(x, useraw=TRUE, ...){ if(!inherits(x, c('Rfits_image', 'Rfits_pointer', 'Rfits_header', 'Rfits_keylist'))){ stop('Object class is not of type Rfits_image / Rfits_pointer / Rfits_header / Rfits_keylist') } ...
R
null
14,481
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_image.R
# Access modes when opening a FITS file: # # #define READONLY 0 # #define READWRITE 1 # # BITPIX data type code values for FITS images: # # #define BYTE_IMG 8 /* 8-bit unsigned integers */ # #define SHORT_IMG 16 /* 16-bit signed integers */ # #define LONG_IMG 32 /* 32-bit signe...
R
null
42,682
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_point.R
Rfits_point = function(filename='temp.fits', ext=1, header=TRUE, zap=NULL, zaptype='full', allow_write=FALSE, sparse=1L, scale_sparse=FALSE){ assertCharacter(filename, max.len=1) filename = path.expand(filename) assertAccess(filename, access='r') filename = Rfits_gunzip(filename) if(is....
R
null
1,431
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_methods_file.R
Rfits_centre = function(filename, ext=1, useraw=TRUE, ...){ temp_header = Rfits_read_header(filename=filename, ext=ext) return(centre(temp_header, useraw=useraw, ...)) } Rfits_center = Rfits_centre Rfits_corners = function(filename, ext=1, useraw=TRUE, RAneg=FALSE, ...){ temp_header = Rfits_read_header(filename...
R
null
1,537
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_methods_operations.R
`&.Rfits_image`=function(e1, e2){ if (missing(e2)) return(e1) if (inherits(e2, 'Rfits_image')){ e1$imDat = e1$imDat & e2$imDat }else if (inherits(e2, 'Rfits_pointer')){ e1$imDat = e1$imDat & e2[,]$imDat }else{ e1$imDat = e1$imDat & e2 } return(e1) } `|.Rfits_image`=function(e1, e2){ i...
R
null
6,791
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_table.R
# Access modes when opening a FITS file: # # #define READONLY 0 # #define READWRITE 1 # # BITPIX data type code values for FITS images: # # #define BYTE_IMG 8 /* 8-bit unsigned integers */ # #define SHORT_IMG 16 /* 16-bit signed integers */ # #define LONG_IMG 32 /* 32-bit signe...
R
null
12,731
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_methods_base.R
#plotting plot.Rfits_image = function(x, useraw=TRUE, interactive=FALSE, ...){ if(!inherits(x, 'Rfits_image')){ stop('Object class is not of type Rfits_image!') } if(is.null(x$keyvalues$CRVAL1)){ magimage(x$imDat, ...) }else{ if(requireNamespace("Rwcs", quietly=TRUE)){ if(useraw){header = x$r...
R
null
10,462
[ascl:2402.002]
https://github.com/asgr/Rfits
R/Rfits_all.R
Rfits_read_all=function(filename='temp.fits', pointer='auto', header=TRUE, data.table=TRUE, anycompress=TRUE, bad=NULL, zap=NULL, zaptype='full', NAcheck = FALSE, nthreads = 1){ assertCharacter(filename, max.len=1) filename = path.expand(filename) filename = Rfits_g...
R
null
8,878
[ascl:2402.002]
https://github.com/asgr/Rfits
.github/workflows/main.yml
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help on: push: pull_request: branches: [main, master] name: R-CMD-check jobs: R-CMD-check: runs-on: ${{ matrix.config.os }} name: $...
YAML
null
1,633
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
README.md
# rfpipe A fast radio interferometric transient search library. Extends on [rtpipe](http://github.com/caseyjlaw/rtpipe). This library supports real-time analysis for the realfast project and offline analysis of VLA data on a single workstation. Integration with the real-time VLA and cluster processing is provided by ...
Markdown
BSD
2,237
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
.travis.yml
language: python python: - 3.6 dist: bionic branches: only: - main - development branches: only: - main - development install: - sudo apt-get update -y - sudo apt-get install -y libfftw3-dev libgfortran3 gcc wget # set up conda - wget https://repo.continuum.io/miniconda/Miniconda2-lates...
YAML
BSD
1,829
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = 'rfpipe' DESCRIPTION = 'Radio interferometric transi...
Python
BSD
3,961
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/fileLock.py
############################################################################### # lazyflow: data flow based lazy parallel computation framework # # Copyright (C) 2011-2014, the ilastik developers # <team@ilastik.org> # # This program is free software; you can redistribute it and/o...
Python
BSD
8,756
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/state.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems from io import open import os import numpy as np from astropy import time from rfpipe impo...
Python
BSD
41,160
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/metadata.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems from io import open import os.path import attr import numpy as np from scipy import const...
Python
BSD
21,722
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/version.py
__version__ = '1.6.3'
Python
BSD
22
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/source.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems import os.path import numpy as np from astropy import time from rfpipe import fileLock imp...
Python
BSD
19,954
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/candidates.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems from io import open import pickle import os from copy import deepcopy import numpy as np f...
Python
BSD
91,657
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/reproduce.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems from io import open import pickle import os.path import numpy as np from kalman_detector i...
Python
BSD
31,377
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/flagging.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems import numpy as np from numba import jit from rfpipe import util import logging logger = ...
Python
BSD
8,585
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/__init__.py
from __future__ import absolute_import __all__ = ['state', 'preferences', 'metadata', 'source', 'pipeline', 'reproduce'] # 'candidates', 'flagging', 'calibration', 'util', 'search' # these are slow to import import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname...
Python
BSD
511
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/preferences.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems from io import open import attr import yaml import json from os import getcwd from collect...
Python
BSD
9,432
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/pipeline.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems from io import open import logging logger = logging.getLogger(__name__) logger.setLevel(20...
Python
BSD
4,019
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/util.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input#, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems from io import open import numpy as np import math import random from time import sleep f...
Python
BSD
35,852
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/search.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input#, str (numba signature bug) from future.utils import itervalues, viewitems, iteritems, listvalues, listitems from io import open import numpy as np from numba import jit, guvec...
Python
BSD
52,353
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
rfpipe/calibration.py
from __future__ import print_function, division, absolute_import, unicode_literals from builtins import bytes, dict, object, range, map, input, str from future.utils import itervalues, viewitems, iteritems, listvalues, listitems from io import open import pickle import numpy as np import os.path from collections impor...
Python
BSD
26,720
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
docs/Reproduce.rst
.. _reproduce: ========================================== Reproducing realfast Candidate Transients ========================================== The rfpipe library has been developed for the realfast project, a real-time transient search instrument at the VLA. The realfast project will capture VLA visibility data for c...
reStructuredText
BSD
2,717
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
docs/Concepts.rst
=========== Concepts =========== The standard use case for rfpipe is to read visibility data, prepare it, search it, and save transient radio source information. The search work flow shown below and drives the concepts behind the rfpipe design. (Note references to databases are specific to the realfast system at the V...
reStructuredText
BSD
429
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
docs/index.rst
.. rfpipe documentation master file, created by sphinx-quickstart on Tue Apr 18 14:10:24 2017. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. rfpipe: radio interferometric transient search library ================================================...
reStructuredText
BSD
1,181
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
docs/State.rst
.. _state: ============== Search State ============== The definition of a search in rfpipe is controlled with a ``State`` object. The state object is passed to many of the core functions that run the search, which then defines how the functions operate (e.g., values of DM to search, memory limits of the computer, num...
reStructuredText
BSD
4,826
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
docs/Metadata.rst
========================= Observational Metadata ========================= Metadata define the properties of the data. Properties such as observing frequency, antenna positions, and time of observation are all metadata defined as the data are recorded. Metadata are required to interpret the data that is read and to c...
reStructuredText
BSD
812
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
docs/Preferences.rst
========================= Search Preferences ========================= Preferences are a way for a user to define how a transient search for any kind of data/metadata. Preferences have sensible defaults, so the state can be defined even if no preferences are provided. The most commonly used preferences define the sea...
reStructuredText
BSD
3,248
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
docs/GettingStarted.rst
=============== Getting Started =============== .. _installation: Installation ============== Rfpipe requires the `anaconda installer <https://conda.io/docs/user-guide/install/download.html>`_. The installation usually works best by adding two channels to find dependencies. To install rfpipe, try the following:: ...
reStructuredText
BSD
2,592
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
docs/Simulating.rst
.. _simulating: ============================= Finding Simulated Transients ============================= It is useful to simulate transients for testing purposes. This is done by defining parameters of a set of transient in the ``Preferences``. The ``simulated_transient`` preference expects a list of tuples defined a...
reStructuredText
BSD
2,557
[ascl:1710.002]
https://github.com/realfastvla/rfpipe
docs/Candidates.rst
============== Candidates ============== .. _candcollection: CandCollection ================ The search functions (or the pipeline) will return objects that summarize the candidates detected. The goal of the search process is to reduce the data volume (e.g., the TB per hour of visibilities) into a manageable summary...
reStructuredText
BSD
2,624