Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e498593
ECR: Corrected keyword error when instanciating Hazel_atmosphere in a…
edgecarlin Jun 7, 2022
7fe843f
ECR:corrected error in io_py.f90, where the module vars containing th…
edgecarlin Jun 7, 2022
fa70a51
ECR: Added non-convincing encapsulation of plot_stokes and interactiv…
edgecarlin Jun 8, 2022
0d072e6
TEST commit for discussion about synthesize routines and possible bug…
edgecarlin Jun 8, 2022
30ec28b
ECR:Corrected a bug in detection of the kind of coordinates (spherica…
edgecarlin Jul 21, 2022
c3ee434
Moved atom keyword from add_chromosphere to add_spectral. For this, w…
edgecarlin Jul 22, 2022
b457559
ECR: moved line keyword and variables to add_spectral and to spectrum…
edgecarlin Jul 22, 2022
38be96f
ECR: Made necessary changes to change the order of add_spectral and a…
edgecarlin Jul 24, 2022
72043fe
ECR: Created add_spectrum in model.py to substitute add_spectral. Now…
edgecarlin Jul 29, 2022
764586e
Fix bug when creating a model with other atom different than helium. …
edgecarlin Aug 1, 2022
e8f88c9
Definition of the dictionary atms_in_spectrum in model.py to link the…
edgecarlin Aug 3, 2022
437d081
Allow spectral boundary conditions and better set of j10 and j20f for…
edgecarlin Aug 25, 2022
0ec7657
Add nbar and j20f(external name for omega) to pars in the same fashio…
edgecarlin Aug 26, 2022
67ebdff
Create mutates() function for doing radiative transfer experiments.Mo…
edgecarlin Sep 13, 2022
c7a8af2
For improving synthesis of optically-thick lines and testing radiativ…
edgecarlin Sep 13, 2024
fade1a7
Improve mutation,plotting, and setting of atmosphere pars.
edgecarlin Sep 27, 2024
e192683
Update README.md
edgecarlin Jan 9, 2025
23894ee
Update README.md
edgecarlin Jan 9, 2025
08428ab
Update README.md
edgecarlin Jan 9, 2025
00cbddb
Update README.md
edgecarlin Jan 9, 2025
843c2e7
Update README.md
edgecarlin Jan 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,7 @@ docs/_build/

# PyBuilder
target/

#MACOS system
.DS_Store

27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
# Hazel v2.0
# Hazel Exp


[![github](https://img.shields.io/badge/GitHub-aasensio%2Fhazel2-blue.svg?style=flat)](https://github.com/aasensio/hazel2)
[![github](https://img.shields.io/badge/GitHub-edgecarlin%2Fhazel2_experimental-blue.svg?style=flat)](https://github.com/edgecarlin/hazel2_experimental)
[![Build Status](https://travis-ci.org/aasensio/hazel2.svg?branch=master)](https://travis-ci.org/aasensio/hazel2)
[![Coverage Status](https://coveralls.io/repos/github/aasensio/hazel2/badge.svg?branch=master)](https://coveralls.io/github/aasensio/hazel2?branch=master)
[![license](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/aasensio/hazel2/blob/master/LICENSE)
[![ADS](https://img.shields.io/badge/ADS-2008ApJ...683..542A-red.svg)](http://adsabs.harvard.edu/abs/2008ApJ...683..542A)
[![arxiv](http://img.shields.io/badge/arXiv-0804.2695-orange.svg?style=flat)](https://arxiv.org/abs/0804.2695)

## Introduction


[![arxiv](http://img.shields.io/badge/arXiv-2402.00252-orange.svg?style=flat)](https://arxiv.org/abs/2402.00252)

## Introduction for Hazel Exp

Hazel Exp stands for HAnle and ZEeman Light EXPerimental (or EXPonential)
and is an extense modification of Hazel v2.0 for experimenting and benchmarking
with novel radiative transfer methods based on geometrical integrators and on the Magnus
Expansion. Soon, this introduction will contain a more suitable description of the code
and its purpose. But for the moment, and despite Hazel Exp has been built trying to respect
backward compatibility with Hazel v2.0, please take into account that the information
written below corresponds to Hazel v2.0 and may not be accurate. Presently, Hazel Exp has many new features
(+8000 lines of code have been added and +2000 modified) and is still in phase of heavy development, hence
it requires a minimal explanation to be used. Yet, if the code is downloaded and installed as specified for Hazel v2.0,
it should be possible to use it within the MagnusRT branch in programatic mode
and with the guidance of the test python files included in the test directory.
A proper introduction will be developed as soon as possible.

## Introduction for Hazel v2.0
Hazel (an acronym for HAnle and ZEeman Light) is a computer program for the
synthesis and inversion of Stokes profiles caused by the joint action of atomic
level polarization and the Hanle and Zeeman effects. It is based on the quantum
Expand Down
11 changes: 6 additions & 5 deletions hazel/atmosphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
__all__ = ['General_atmosphere']

class General_atmosphere(object):
def __init__(self, atm_type, name, atom='helium'):
def __init__(self, atm_type, name):#, atom='helium'): #EDGAR:remove atom from here
self.ff = 1.0
self.name = name
self.type = atm_type
Expand All @@ -40,11 +40,12 @@ def __init__(self, atm_type, name, atom='helium'):
self.n_pixel = 1
self.stray_profile = None

if (atom == 'helium'):
self.multiplets = {'10830': 10829.0911, '3888': 3888.6046, '7065': 7065.7085, '5876': 5875.9663}
#EDGAR:in previous versions this was redundant with model.py, now all is gathered there, where atom model is read/set up
#if (atom == 'helium'):
# self.multiplets = {'10830': 10829.0911, '3888': 3888.6046, '7065': 7065.7085, '5876': 5875.9663}

if (atom == 'sodium'):
self.multiplets = {'5895': 5895.924, '5889': 5889.95}
#if (atom == 'sodium'):
# self.multiplets = {'5895': 5895.924, '5889': 5889.95}

self.parameters = OrderedDict()
self.nodes_location = OrderedDict()
Expand Down
Loading