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:2010.015]
https://github.com/thdauser/relxill
src/ModelDefinition.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
5,723
[ascl:2010.015]
https://github.com/thdauser/relxill
src/relutility.c
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C
Unknown
20,108
[ascl:2010.015]
https://github.com/thdauser/relxill
src/reltable.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
2,163
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relreturn_Datastruct.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
1,759
[ascl:2010.015]
https://github.com/thdauser/relxill
src/writeOutfiles.c
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C
Unknown
2,853
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Rellp.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
2,264
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relprofile.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
34,148
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Xillspec.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
3,570
[ascl:2010.015]
https://github.com/thdauser/relxill
src/relutility.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
6,438
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relxill.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
18,067
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relprofile.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
1,521
[ascl:2010.015]
https://github.com/thdauser/relxill
src/JedSad.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
8,342
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relreturn_Datastruct.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
3,471
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relreturn_BlackBody.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
2,890
[ascl:2010.015]
https://github.com/thdauser/relxill
src/CMakeLists.txt
### SOURCE FILES: add all model files here ### set(SOURCE_FILES common.h donthcomp.c Relbase.cpp Relbase.h Relcache.cpp Relcache.h Rellp.cpp Rellp.h reltable.c reltable.h relutility.c relutility.h xilltable.c xilltable.h Relphysics.cpp Relphysics.h...
Text
Unknown
3,735
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relreturn_Table.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
2,639
[ascl:2010.015]
https://github.com/thdauser/relxill
src/reltable.c
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C
Unknown
16,947
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relcache.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
6,640
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relbase.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
21,279
[ascl:2010.015]
https://github.com/thdauser/relxill
src/common.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
10,067
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relxill.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
3,809
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relphysics.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
3,004
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relreturn_Table.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
17,042
[ascl:2010.015]
https://github.com/thdauser/relxill
src/donthcomp.c
/* donthcomp.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end...
C
Unknown
23,907
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Rellp.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
22,823
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relreturn_Corona.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
1,657
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Rellp_Extended.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
3,932
[ascl:2010.015]
https://github.com/thdauser/relxill
src/PrimarySource.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
12,618
[ascl:2010.015]
https://github.com/thdauser/relxill
src/LocalModel.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
5,711
[ascl:2010.015]
https://github.com/thdauser/relxill
src/xilltable.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
2,146
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relbase.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
4,999
[ascl:2010.015]
https://github.com/thdauser/relxill
src/JedSad.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
4,323
[ascl:2010.015]
https://github.com/thdauser/relxill
src/writeOutfiles.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
1,264
[ascl:2010.015]
https://github.com/thdauser/relxill
src/IonGradient.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
4,084
[ascl:2010.015]
https://github.com/thdauser/relxill
src/create_wrapper_xspec.py
#! /usr/bin/env python3 import re import sys # Tool to Automatically Construct the Cpp-Model-Wrapper from the Xspec lmodel.dat file # - models are separated by an empty line # - for <model_name> the C-function has to be called c_<local_model_prefix><model_name> local_model_prefix = "lmod" header = """/* *** AUTOM...
Python
Unknown
8,185
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relreturn_BlackBody.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
32,096
[ascl:2010.015]
https://github.com/thdauser/relxill
src/IonGradient.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
18,089
[ascl:2010.015]
https://github.com/thdauser/relxill
src/LocalModel.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
4,597
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Rellp_Extended.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
50,245
[ascl:2010.015]
https://github.com/thdauser/relxill
src/xilltable.c
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C
Unknown
39,563
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relphysics.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
17,053
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relreturn_Corona.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
11,404
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Xillspec.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
23,222
[ascl:2010.015]
https://github.com/thdauser/relxill
src/ModelDatabase.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
6,362
[ascl:2010.015]
https://github.com/thdauser/relxill
src/test_sta.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
1,599
[ascl:2010.015]
https://github.com/thdauser/relxill
src/PrimarySource.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
6,594
[ascl:2010.015]
https://github.com/thdauser/relxill
src/ModelInfo.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
2,463
[ascl:2010.015]
https://github.com/thdauser/relxill
src/ModelDefinition.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
19,181
[ascl:2010.015]
https://github.com/thdauser/relxill
src/Relcache.cpp
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C++
Unknown
13,376
[ascl:2010.015]
https://github.com/thdauser/relxill
src/XspecSpectrum.h
/* This file is part of the RELXILL model code. RELXILL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. RELXILL is distributed in the hope...
C/C++ Header
Unknown
6,430
[ascl:2010.015]
https://github.com/thdauser/relxill
src/modelfiles/compile_relxill.sh
#!/bin/bash ln -sf lmodel_relxill.dat lmodel.dat sed -i "s,#define RELXILL_TABLE_PATH.*,#define RELXILL_TABLE_PATH "'"'`pwd`'"'"," common.h # "For Mac OSX systems, you might have to use this" # sed -i.ori "s,#define RELXILL_TABLE_PATH.*,#define RELXILL_TABLE_PATH "'"'`pwd`'"'"," common.h echo "initpackage relxill ...
Shell
Unknown
450
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
wigner3j.py
import numpy as np import pywigxjpf as wig import multiprocessing as mp def compute_3j_symbol_one_ell(l1, ell_sum_max): ''' PARAMETERS l1: int, value of first ell for Wigner 3j symbol ell_sum_max: int, maximum l2,l3 for which to calculate Wigner 3j symbols RETURNS wig3j_one_ell: 2D numpy array...
Python
null
1,946
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
threshold_moto.yaml
nsims: 1 #number of simulations to run ellmax: 50 #ellmax for power spectra ell_sum_max: 50 #maximum ell to loop over remove_high_ell_power: 1 #Set to nonzero value to remove power above ellmax in alm and wlm nside: 128 #nside of maps, used in bi[tri]spectrum calculation nside_for_masking: 64 #nside for finding regions...
YAML
null
1,191
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
input.py
import yaml import numpy as np ########################## # simple function for opening the file def read_dict_from_yaml(yaml_file): assert(yaml_file != None) with open(yaml_file) as f: config = yaml.safe_load(f) return config ########################## ########################## """ class that co...
Python
null
3,188
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
plot_remastered.py
import matplotlib.pyplot as plt import string import healpy as hp import numpy as np def plot_remastered(inp, remastered_data, base_dir, start=2, logx=False, logy=False): ''' PARAMETERS inp: Info() object, contains information about input parameters remastered_data: list, contains [aa_ww_term, aw_...
Python
null
2,418
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
generate_mask.py
import numpy as np import healpy as hp import pymaster as nmt def mask_above_cut(inp, cut_high, cut_low, map_, nside, nside_for_masking): ''' PARAMETERS inp: Info object, contains input specifications cut_high: float, value of map pixels above which to mask if inp.cut_high is True cut_low: float, v...
Python
null
1,761
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
test_remastered.py
import numpy as np import pickle import subprocess import os from plot_remastered import * def compare_master(inp, master_lhs, wlm_00, alm_00, Cl_aa, Cl_ww, Cl_aw, bispectrum_aaw, bispectrum_waw, Rho, env, base_dir=None): ''' PARAMETERS inp: Info() object, contains information about input parameters ma...
Python
null
3,350
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
main.py
import os import subprocess import numpy as np import healpy as hp import time import pickle import argparse from input import Info from bispectrum import * from trispectrum import * from test_remastered import * from wigner3j import * from plot_mask import * def main(): start_time = time.time() # main input...
Python
null
3,470
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
trispectrum.py
#Code adapted from PolyBin O. H. E. Philcox (2022), in prep. import healpy as hp import numpy as np def Tl_numerator(inp, lmax, lmax_sum, data1, data2, data3, data4, Cl12_th, Cl13_th, Cl14_th, Cl23_th, Cl24_th, Cl34_th, lmin=0, verb=False, equal12=False,equal13=Fals...
Python
null
7,701
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
bispectrum.py
#Code adapted from PolyBin O. H. E. Philcox (2022), in prep. import healpy as hp import numpy as np def Bl_norm(inp): ''' Computes bispectrum normalization PARAMETER inp: Info() object, contains information about input parameters RETURNS norm: 3D numpy array, indexed as norm[l1,l2,l3] ''...
Python
null
3,521
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
ensemble_threshold.py
import os import subprocess import numpy as np import healpy as hp import multiprocessing as mp import time import pickle import argparse from input import Info from generate_mask import * from bispectrum import * from trispectrum import * from test_remastered import * from plot_mask import * from wigner3j import * ...
Python
null
7,302
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
moto.yaml
ellmax: 5 #ellmax for power spectra ell_sum_max: 10 #maximum ell to loop over nside: 16 #nside of maps, used in bi[tri]spectrum calculation map_file: '/moto/hill/users/kms2320/websky_maps/cmb_lensed_nside1024_K.fits' #File for component map, assumed to be in Kelvin mask_file: '/moto/hill/users/kms2320/websky_maps/cmb_...
YAML
null
797
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
plot_mask.py
import matplotlib.pyplot as plt import string import healpy as hp import numpy as np def plot_mask(inp, mask_data, base_dir): ''' PARAMETERS inp: Info() object, contains information about input parameters mask_data: list, contains [map, mask, masked map, and correlation coefficient] base_dir: str,...
Python
null
1,680
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
README.md
# reMASTERed Calculates contributions to pseudo-Cl for maps with correlated masks. In particular, it extends the **M**onte Carlo **A**podised **S**pherical **T**ransform **E**stimato**R** (MASTER) approach (https://arxiv.org/abs/astro-ph/0105302) to situations where the map and mask exhibit correlations, as is the c...
Markdown
null
1,839
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
additional_tests/consistency_cmb_offsetmask.py
# import sys # sys.path.insert(0, "./../" ) # sys.path.insert(0, "./" ) # import os # import subprocess # import numpy as np # import healpy as hp # import multiprocessing as mp # import time # from input import Info # from generate_mask import * # from bispectrum import * # from test_remastered import * # from wigner3...
Python
null
9,920
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
additional_tests/plot_consistency.py
import matplotlib.pyplot as plt import string import healpy as hp import numpy as np def plot_consistency(inp, data, base_dir, start=0, logx=True, logy=False): ''' PARAMETERS inp: Info() object, contains information about input parameters data: list, contains [lhs_atildea, w_aa_term_atildea, a_aw_...
Python
null
3,109
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
additional_tests/consistency_checks.py
import sys sys.path.insert(0, "./../" ) sys.path.insert(0, "./" ) import os import subprocess import numpy as np import healpy as hp import multiprocessing as mp import time import pickle from input import Info from generate_mask import * from bispectrum import * from test_remastered import * from plot_consistency impo...
Python
null
6,648
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
additional_tests/consistency_tsz_offsetmask.py
import sys sys.path.insert(0, "./../" ) sys.path.insert(0, "./" ) import os import subprocess import numpy as np import healpy as hp import multiprocessing as mp import time import pickle from input import Info from generate_mask import * from bispectrum import * from trispectrum import * from test_remastered import * ...
Python
null
6,144
[ascl:2307.049]
https://github.com/kmsurrao/reMASTERed
additional_tests/tsz_maskIR.py
import sys sys.path.append("..") import os import subprocess import numpy as np import healpy as hp import multiprocessing as mp import h5py import pymaster as nmt import pickle import time from input import Info from generate_mask import * from bispectrum import * from trispectrum import * from test_remastered import ...
Python
null
8,684
[ascl:1904.008]
https://github.com/pcubillos/repack
requirements.txt
numpy>=2.0 scipy>=1.13.0
Text
MIT
25
[ascl:1904.008]
https://github.com/pcubillos/repack
setup.py
# Copyright (c) 2017-2024 Patricio Cubillos and contributors. # repack is open-source software under the MIT license (see LICENSE). import os import re from setuptools import setup, Extension from numpy import get_include srcdir = './repack/utils/' # C-code source folder files = os.listdir(srcdir) files = list(fi...
Python
MIT
809
[ascl:1904.008]
https://github.com/pcubillos/repack
pyproject.toml
[build-system] requires = [ 'setuptools>=40.8.0', 'numpy>=2.0.0', ] build-backend = "setuptools.build_meta" [project] name = "lbl-repack" description = "A line-transition data compression package" readme = "README.md" license = { file = "LICENSE" } #https://packaging.python.org/en/latest/guides/single-sourcin...
TOML
MIT
979
[ascl:1904.008]
https://github.com/pcubillos/repack
.travis.yml
language: python matrix: include: - python: 3.6 - python: 3.7 sudo: required dist: xenial install: - pip install -r requirements.txt - pip install -e . - wget https://hitran.org/hitemp/data/HITEMP-2010/CO2_line_list/02_03750-04000_HITEMP2010.zip - wget https://hitran.org/hitemp/data/HITEMP-2010/...
YAML
MIT
1,394
[ascl:1904.008]
https://github.com/pcubillos/repack
README.md
# repack Repack and Compress Line-transition Data for Radiative-tranfer Calculations [![PyPI](https://img.shields.io/pypi/v/lbl-repack.svg)](https://pypi.org/project/lbl-repack) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/lbl-repack.svg)](https://anaconda.org/conda-forge/lbl-repack) [![GitHub](https:...
Markdown
MIT
6,299
[ascl:1904.008]
https://github.com/pcubillos/repack
demo/repack_HCN.cfg
[REPACK] # Line-transition files: lblfiles = 1H-12C-14N__Harris.trans.bz2 1H-13C-14N__Larner.trans.bz2 # Database type [exomol, hitran, or kurucz]: dbtype = exomol # Output file name (without file extension): outfile = HCN_exomol_harris-larner_0.3-33um_100-3000K_sthresh_0.01 # Wavenumber sampling (in cm-...
Config
MIT
589
[ascl:1904.008]
https://github.com/pcubillos/repack
demo/wget_exomol_hcn.txt
http://exomol.com/db/HCN/1H-12C-14N/Harris/1H-12C-14N__Harris.states.bz2 http://exomol.com/db/HCN/1H-12C-14N/Harris/1H-12C-14N__Harris.trans.bz2 http://exomol.com/db/HCN/1H-12C-14N/Harris/1H-12C-14N__Harris.pf http://exomol.com/db/HCN/1H-13C-14N/Larner/1H-13C-14N__Larner.states.bz2 http://exomol.com/db/HCN/1H-13C-14N/L...
Text
MIT
420
[ascl:1904.008]
https://github.com/pcubillos/repack
demo/repack_TiO.cfg
[REPACK] # Line-transition files: lblfiles = tioschwenke.bin # Database type [exomol, hitran, or kurucz]: dbtype = kurucz # Partition function file: pffile = PF_Schwenke_TiO.dat # Output file name (without file extension): outfile = TiO_kurucz_0.5-10um_1000-3000K_sthresh_0.01 # Wavenumber sampling (all in cm-1): w...
Config
MIT
585
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/test_utils.py
import os import pytest import numpy as np import repack.utils as u ROOT = os.path.realpath(os.path.dirname(__file__) + '/..') + '/' os.chdir(ROOT+'tests') @pytest.mark.parametrize('zip', ['', '.bz2']) def test_parse_file_exomol(zip): tfile = '1H2-16O__POKAZATEL__00400-00500.trans' + zip info = u.parse_fil...
Python
MIT
3,339
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/exomol_repack_two_isotopes.cfg
[REPACK] # Line-transition files: lblfiles = data/14N-1H3__BYTe__00100-00200.trans.bz2 data/15N-1H3__BYTe-15__00100-00200.trans.bz2 # Database type (exomol or hitran): dbtype = exomol # Output file name (without file extension): outfile = NH3_exomol_050-100um_500-700K # Wavenumber sampling (in cm-1): wnmin ...
Config
MIT
536
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/exomol_repack_missing1.cfg
[REPACK] # Line-transition files: lblfiles = data/14N-1H3__BYTe__00100-00200.trans.bz2 data/14N-1H3__MiSSinG__00200-00300.trans.bz2 # Database type (exomol or hitran): dbtype = exomol # Output file name (without file extension): outfile = NH3_exomol_050-100um_500-700K # Wavenumber sampling (in cm-1): wnmin ...
Config
MIT
536
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/exomol_repack_single_chunks.cfg
[REPACK] # Line-transition files: lblfiles = data/14N-1H3__BYTe__00100-00200.trans.bz2 # Database type (exomol or hitran): dbtype = exomol # Output file name (without file extension): outfile = NH3_exomol_050-100um_500-700K # Wavenumber sampling (in cm-1): wnmin = 100.0 wnmax = 200.0 dwn = 1.0 # Temperature sa...
Config
MIT
482
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/exomol_sort.cfg
[REPACK] # Line-transition files: lblfiles = data/1H2-16O__POKAZATEL__34800-34900.trans.bz2 # Database type (exomol or hitran): dbtype = exomol # Output file name (without file extension): outfile = H2O_exomol_0.26um_500-1000K # Wavenumber sampling (in cm-1): wnmin = 34800.0 wnmax = 34900.0 dwn = 0.0 # Tempe...
Config
MIT
491
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/exomol_repack_missing2.cfg
[REPACK] # Line-transition files: lblfiles = data/14N-1H3__BYTe__00100-00200.trans.bz2 data/14N-1H3__MiSSinG__00200-00300.trans.bz2 data/14N-1H3__MiSSinG__00300-00400.trans.bz2 data/14N-1H3__MiSSinG__00400-00500.trans.bz2 # Database type (exomol or hitran): dbtype = exomol # Output file name (without...
Config
MIT
634
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/exomol_repack_two_files.cfg
[REPACK] # Line-transition files: lblfiles = data/14N-1H3__BYTe__00100-00200.trans.bz2 data/14N-1H3__BYTe__00200-00300.trans.bz2 # Database type (exomol or hitran): dbtype = exomol # Output file name (without file extension): outfile = NH3_exomol_033-100um_500-700K # Wavenumber sampling (in cm-1): wnmin = 1...
Config
MIT
533
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/exomol_repack_single_unzip.cfg
[REPACK] # Line-transition files: lblfiles = data/14N-1H3__BYTe__00100-00200.trans # Database type (exomol or hitran): dbtype = exomol # Output file name (without file extension): outfile = NH3_exomol_050-100um_500-700K # Wavenumber sampling (in cm-1): wnmin = 100.0 wnmax = 200.0 dwn = 1.0 # Temperature sampli...
Config
MIT
479
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/exomol_repack_single.cfg
[REPACK] # Line-transition files: lblfiles = data/14N-1H3__BYTe__00100-00200.trans.bz2 # Database type (exomol or hitran): dbtype = exomol # Output file name (without file extension): outfile = NH3_exomol_050-100um_500-700K # Wavenumber sampling (in cm-1): wnmin = 100.0 wnmax = 200.0 dwn = 1.0 # Temperature sa...
Config
MIT
483
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/hitemp_repack_single_zip.cfg
[REPACK] # Line-transition files: lblfiles = data/02_03750-04000_HITEMP2010.zip # Database type: dbtype = hitran # Output file name (without file extension): outfile = CO2_hitran_2.5-2.6um_500-700K # Partition function file: pffile = data/PF_tips_CO2.dat # Wavenumber sampling (all in cm-1): wnmin = 3750.0 wnmax = ...
Config
MIT
551
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/test_sorting.py
import os import bz2 import shutil import subprocess import numpy as np import repack ROOT = os.path.realpath(os.path.dirname(__file__) + '/..') + '/' os.chdir(ROOT+'tests') def test_exomol_sort(): states_file = 'data/1H2-16O__POKAZATEL.states.bz2' lbl_file = 'data/1H2-16O__POKAZATEL__34800-34900.trans.bz2'...
Python
MIT
1,557
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/hitemp_repack_single_chunks.cfg
[REPACK] # Line-transition files: lblfiles = data/02_03750-04000_HITEMP2010.zip # Database type: dbtype = hitran # Output file name (without file extension): outfile = CO2_hitran_2.5-2.6um_500-700K # Partition function file: pffile = data/PF_tips_CO2.dat # Wavenumber sampling (all in cm-1): wnmin = 3750.0 wnmax = ...
Config
MIT
550
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/test_exomol.py
import os import subprocess import pytest ROOT = os.path.realpath(os.path.dirname(__file__) + '/..') + '/' os.chdir(ROOT+'tests') @pytest.mark.parametrize('missfile', ['exomol_repack_missing1.cfg', 'exomol_repack_missing2.cfg']) def test_missing(capfd, missfile): subprocess.call(['repack', missfile]) ...
Python
MIT
6,710
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/hitemp_repack_single_unzip.cfg
[REPACK] # Line-transition files: lblfiles = data/02_3750-4000_HITEMP2010.par # Database type: dbtype = hitran # Output file name (without file extension): outfile = CO2_hitran_2.5-2.6um_500-700K # Partition function file: pffile = data/PF_tips_CO2.dat # Wavenumber sampling (all in cm-1): wnmin = 3750.0 wnmax = 40...
Config
MIT
549
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/test_hitemp.py
import os import subprocess ROOT = os.path.realpath(os.path.dirname(__file__) + '/..') + '/' os.chdir(ROOT+'tests') def test_hitemp_single_zip(capfd): subprocess.call('repack hitemp_repack_single_zip.cfg'.split()) capfd = capfd.readouterr() assert """Reading: 'data/02_03750-04000_HITEMP2010.zip'. Flagg...
Python
MIT
3,976
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/exomol_repack_two_two.cfg
[REPACK] # Line-transition files: lblfiles = data/14N-1H3__BYTe__00100-00200.trans.bz2 data/14N-1H3__BYTe__00200-00300.trans.bz2 data/15N-1H3__BYTe-15__00100-00200.trans.bz2 data/15N-1H3__BYTe-15__00200-00300.trans.bz2 # Database type: dbtype = exomol # Output file name (without file extension): outf...
Config
MIT
612
[ascl:1904.008]
https://github.com/pcubillos/repack
tests/hitemp_repack_two.cfg
[REPACK] # Line-transition files: lblfiles = data/02_03750-04000_HITEMP2010.zip data/02_04000-04500_HITEMP2010.zip # Database type: dbtype = hitran # Output file name (without file extension): outfile = CO2_hitran_2.2-2.6um_500-700K # Partition function file: pffile = data/PF_tips_CO2.dat # Wavenumber samp...
Config
MIT
594
[ascl:1904.008]
https://github.com/pcubillos/repack
repack/pack.py
# Copyright (c) 2017-2024 Patricio Cubillos and contributors. # repack is open-source software under the MIT license (see LICENSE). __all__ = [ 'parser', 'repack', 'sort', ] import os import bz2 import struct import subprocess import configparser import multiprocessing as mp import numpy as np import sci...
Python
MIT
19,592
[ascl:1904.008]
https://github.com/pcubillos/repack
repack/version.py
# Copyright (c) 2017-2024 Patricio Cubillos and contributors. # repack is open-source software under the MIT license (see LICENSE). # repack version: repack_VER = 1 # Major version repack_MIN = 4 # Minor version repack_REV = 5 # Revision __version__ = f'{repack_VER}.{repack_MIN}.{repack_REV}'
Python
MIT
299
[ascl:1904.008]
https://github.com/pcubillos/repack
repack/__init__.py
# Copyright (c) 2017-2024 Patricio Cubillos and contributors. # repack is open-source software under the MIT license (see LICENSE). __all__ = [ 'constants', 'utils', ] from . import constants from . import utils from .pack import * from .version import __version__ __all__ += pack.__all__ # Clean up top-le...
Python
MIT
612
[ascl:1904.008]
https://github.com/pcubillos/repack
repack/__main__.py
#! /usr/bin/env python # Copyright (c) 2017-2021 Patricio Cubillos and contributors. # repack is open-source software under the MIT license (see LICENSE). import sys import time import warnings from datetime import date import repack banner = ':'*70 error_message = """\ Error: Wrong usage. For repacking: ...
Python
MIT
1,334
[ascl:1904.008]
https://github.com/pcubillos/repack
repack/constants/__init__.py
# Copyright (c) 2017-2021 Patricio Cubillos and contributors. # repack is open-source software under the MIT license (see LICENSE). from .constants import * from .constants import __all__ # Clean up top-level namespace--delete everything that isn't in __all__ # or is a magic attribute, and that isn't a submodule of ...
Python
MIT
500
[ascl:1904.008]
https://github.com/pcubillos/repack
repack/constants/constants.py
# Copyright (c) 2017-2021 Patricio Cubillos and contributors. # repack is open-source software under the MIT license (see LICENSE). __all__ = [ "kB", "amu", "e", "me", "N0", "nano", "C1", "C2", "C3", "ROOT", ] import os import scipy.constants as sc # Boltzmann constant i...
Python
MIT
1,021