Skip to content

Commit

Permalink
Made RMSF width calculations consistent throughout (#86).
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron-Van-Eck committed Aug 4, 2023
1 parent 972a992 commit eb289f3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RMtools_1D/do_RMsynth_1D.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def run_rmsynth(data, polyOrd=2, phiMax_radm2=None, dPhi_radm2=None,

# Set the Faraday depth range
if not super_resolution:
fwhmRMSF_radm2 = 2.0 * m.sqrt(3.0) / lambdaSqRange_m2 #B&dB05 theoretical RMSF width
fwhmRMSF_radm2 = 3.8 / lambdaSqRange_m2 #Dickey+2019 theoretical RMSF width
else: #If super resolution, use R&C23 theoretical width
fwhmRMSF_radm2 = 2.0 / (np.nanmax(lambdaSqArr_m2) + np.nanmin(lambdaSqArr_m2))
if dPhi_radm2 is None:
Expand Down
2 changes: 1 addition & 1 deletion RMtools_3D/do_RMsynth_3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def run_rmsynth(dataQ, dataU, freqArr_Hz, dataI=None, rmsArr=None,

# Set the Faraday depth range
if not super_resolution:
fwhmRMSF_radm2 = 2.0 * m.sqrt(3.0) / lambdaSqRange_m2 #B&dB05 theoretical RMSF width
fwhmRMSF_radm2 = 3.8 / lambdaSqRange_m2 #Dickey+2019 theoretical RMSF width
else: #If super resolution, use R&C23 theoretical width
fwhmRMSF_radm2 = 2.0 / (np.nanmax(lambdaSqArr_m2) + np.nanmin(lambdaSqArr_m2))
if dPhi_radm2 is None:
Expand Down
10 changes: 10 additions & 0 deletions VERSION_HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

Github main branch:


1.3.1:
-progress bars updated to use tdqm, which should make them faster.
-Integrated super-resolution method of Cotton & Rudnick 2023, which creates
narrower RMSF shapes by setting lambda^2_0 = 0.
-Added options to dofitIcube tool to save more outputs (coefficient maps,
errors, etc).
-Made RMSF theoretical width calculations consistent: Dickey et al. 2019
now used throughout.

1.3.0:
-merged in bwdepol branch. This does not change any core functionality in the
existing RM-Tools programs, but adds two new command-line tools: rmtools_bwpredict
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
DESCRIPTION = 'RM-synthesis, RM-clean and QU-fitting on polarised radio spectra'
URL = 'https://github.com/CIRADA-Tools/RM-Tools'
REQUIRES_PYTHON = '>=3.7.0'
VERSION = '1.3.0'
VERSION = '1.3.1'
DOWNLOAD_URL = 'https://github.com/CIRADA-Tools/RM-Tools/archive/v'+VERSION+'.tar.gz'

REQUIRED = [
Expand Down

0 comments on commit eb289f3

Please sign in to comment.