KCAP 23 Magnetic Fields
KCAP 23 Magnetic Fields
KCAP 23 Magnetic Fields
Debasish Panda
21D070021
Mentor : Tamojeet
Contents
1 Introduction 2
4 Methodology 7
5 Results 13
1
1 INTRODUCTION
1 Introduction
Molecular interstellar clouds, composed primarily of hydrogen gas and dust, play a crucial role in the
formation of stars and planetary systems. Understanding the magnetic field structure within these clouds is
essential for unravelling the complex processes governing star formation. This project delves into the theory
of analysis of these molecular clouds and how they result in the formation of structures within the molecular
cloud. We will verify the correlation between gas column density and orientation of the magnetic field in
the cloud in the case of several different regions in the sky captured by the Planck mission. We will arrive
at a ’Histogram of Relative Orientation’ used for correlation purposes. This project is based on a paper
released by the Planck collaboration back in 2015.
Figure 1: Magnetic field and column density measured by Planck towards the Orion MC. The colours
represent column density. The “drapery” pattern, produced using the line integral convolution method,
indicates the orientation of magnetic field lines, orthogonal to the orientation of the submillimetre
polarization
2
2 OBSERVATIONAL PROBES OF MAGNETIC FIELDS
There can be regions of particularly high density within the molecular clouds, called clumps, which can drive
the process of star formation within the cloud if gravitational forces are sufficient to cause the gas and dust
to collapse. In this sense, molecular clouds serve as giant incubators where gas and dust are transformed into
stars. Observations have shown that the evidence of such star formation in molecular clouds is ubiquitously
associated with the presence of filamentary structures. The outcomes from the observational data then
suggest that filaments precede the process of star formation- first, turbulent motions of gas and dust give
rise to filamentary structures; then, the densest regions of the filament contract and fragment under the
influence of gravity to form clumps of star formation. Analogous to a major artery branching off to smaller
arterioles, these larger filaments draw interstellar material from their surroundings through a network of
smaller filaments. Although stellar formation is not limited to the region within filaments, stars that form
away from dense filaments appear to constitute a smaller fraction of the stellar population, and their average
mass tends to be lower than their filamentary counterparts. Observational data suggests that filamentary
structures are not limited to any single galaxy or interstellar region, but there seems to be a ’top-down’
order of filamentary structures throughout the observed Universe, funnelling interstellar dust and gas into
increasingly denser concentrations and thus fostering stellar birth across the galaxy.
Local magnetic fields in the molecular clouds are vital in channelling the flow of interstellar medium via
filaments. Observations have agreed with the theoretical model that predicts such movement of material to
be directed along routes that are parallel to the direction of the local magnetic field. Thus, it appears that
the magnetic field is preferentially oriented perpendicular to the densest filaments, which is in accordance
with two previous observations- one, that the filaments draw matter from the interstellar medium through
smaller filaments, and two, that the matter drawn as such is directed parallel to the local magnetic field.
The orientation of the magnetic field changes from parallel to perpendicular with increasing density of the
filaments, which is what one would expect from the previous observations, too.
Although dust grains are opaque to visible light emanating from the background (which can occasionally
prove to be a nuisance in visible-light astronomy), they emit black body radiation, and more often than
not, this radiation spans the electromagnetic spectrum from the microwave to the infrared region. The dust
grains tend to align their longest axis along the local magnetic field (as predicted by the radiative torque
(RAT) theory), so the light emitted by them is partly polarised; thus, the direction of polarisation is a direct
indicator of the orientation of the local magnetic field in the vicinity [1].
Figure 2: Taurus Molecular Cloud as viewed by Herschel and Planck. Observe the interstellar filament
running from the top left to the bottom right of the image, dotted with prominent regions of star formation
3
3 THE PLANCK MISSION
The interstellar dust predominantly consists of amorphous silicate grains and carbonaceous (graphite) grains.
The graphite grains are randomly oriented, while the silicate grains can be aligned via the RAT mechanism.
These silicate grains polarise starlight passing through them, which is recorded on the intensity maps.
Apart from this, dust grains heated by the starlight also emit polarised black-body radiation. These two
radiation sources indicate that emission intensity is a direct measure of the gas density since interstellar dust
is invariably associated with the presence of interstellar gaseous medium. Polarimeters aboard the Planck
observatory record the intensity (I) of the polarised emission, along with the Stokes’ parameters Q and U,
which can be used to estimate the angle of polarization [1].
1
4
3 THE PLANCK MISSION
Figure 4: In this image, the colour scale represents the total intensity of dust emission, revealing the
structure of interstellar clouds in the Milky Way. The texture is based on measurements of the direction of
the polarised light emitted by the dust, which in turn indicates the orientation of the magnetic field.
The central dark region is our Milky Way galaxy. Sky maps give the best estimate of the intensity and
polarization (Stokes’ Q and U components), if available, of the signal from the sky after removal, as far as
possible, of known systematic effects (mostly instrumental, but also including the solar and earth-motion
dipole, Galactic starlight and the Zodiacal light). Sky maps are provided for the full Planck mission using
all valid detectors in each frequency channel and also for various subsets by splitting the mission into various
time ranges or subsets of the detectors in a given channel [2].
• Full mission, Full channel maps: Full channel maps are built using all the valid detectors of a
frequency channel and cover either the full or the nominal mission. For HFI, the 143-8 and 545-3
bolometers are rejected entirely as they are seriously affected by RTS noise. HFI provides the Q and
U components for the 100, 143, 217, and 353 GHz channels only. LFI provides the I, Q, and U maps
for all the channels. Reminder: HFI Q and U maps are corrected for bandpass leakage, but LFI Q
and U maps are not.
• Nominal mission, full channel maps: These maps are similar to the ones above but cover the
nominal mission only. They are meant primarily to be compared to the PR1 products in order to see
the level of improvements in the processing. Because of this, they are produced at temperature only
and have not had post-processing applied.
• Single survey, full channel maps: Single survey maps are built using all valid detectors of a
frequency channel; they cover the different sky surveys separately. The surveys are defined as the
times over which the satellite spin axis rotates but 180 degrees, which, due to the position of the
detectors in the focal plane, does not cover the full sky, but a fraction between 80 and 90% depending
on detector position.
• Yearly, full channel maps: These maps are built using the data of surveys 1+2, surveys 3+4, and so
forth. They are used to study long-term systematic effects. The 70 GHz years maps are also available
at Nside 2048.
• Full mission, single detector maps: These maps have no polarization data; they only have
temperature data.
5
3 THE PLANCK MISSION
• Half-mission, full channel maps: For HFI, the half-mission is defined after eliminating those rings
discarded for all bolometers. There are 347 such rings, many of which were during the 5th survey
when the End-of-Life tests were performed. The remaining 26419 rings are divided in half (up to the
odd ring) to define the two halves of the mission. This exercise is done for the full mission only. For
LFI, instead of the half-mission, the following year combination has been created: Year 1+2, Year
1+3, Year 2+4, Year 3+4.
• Full mission, detector set or detector pairs maps: The objective here is to build independent
temperature (I ) and polarization (Q and U ) maps with the two pairs of polarisation-sensitive detectors
of each channel where they are available, i.e. in the 44-353 GHz channels.
• Half-ring maps: These maps are similar to the ones above but are built using only the first or the
second half of each ring (or pointing period). The HFI provides half-ring maps for the full mission
only and for the full channel, the datasets, and the single bolometers. The LFI provides half-rings
maps for the channel full mission (70 GHz also at Nside 2048), for the radiometer full mission and for
the horn pairs full mission.
• The Zodiacal light correction maps: The Zodiacal light signal depends on the location of the
observer relative to the Zodiacal light bands, and thus, it is not a fixed pattern on the sky but depends
on the period of observation.
We want a full mission map for our study to understand the physics behind the correlation, so maximum
temporal data would be more suitable for our purposes. We would want the map to have polarization data
because we need the Stokes parameters and intensities to identify magnetic fields in these cloud images.
Also, we would prefer a sky map at the highest frequency, so the most suitable one is that of the 353GHz
channel. In the next section, we will look at the actual code-based implementation for manipulating the
data and extracting useful information from it.
6
4 METHODOLOGY
4 Methodology
HEALPix (Hierarchical, Equal Area, and iso-Latitude Pixelation) spherical data representation format and
associated healpy modules are essential for extracting and visualising the information recorded by Planck
since these modules were specifically designed to handle pixelated data on sphere. HEALPix was developed
to efficiently process Cosmic Microwave Background data from Cosmology experiments like BOOMERANG
and WMAP, but it is now used in other branches of Astrophysics to store data from all-sky surveys. The
data available to us is in the NESTED format, which must be converted into the RING format for further
analysis and visualisation. The RING ordering is necessary for the Spherical Harmonics transforms; the
other option is NESTED ordering, which is very efficient for map domain operations because scaling up or
scaling down the maps is achieved just by multiplying and rounding pixel indices.
1 NPIX = len ( I )
2 print ( NPIX )
3 NSIDE = 2**11 # NPIX = 12* NSIDE 2
4 print ( NSIDE )
5
24 m = np . arange ( NPIX )
25 m [ ipix_poly ] = m . max ()
26 hp . mollview (m , title = " Mollview image RING " )
7
4 METHODOLOGY
1 m = I
2 def display_pixels ( sel_pix ) :
3 pix_list = []
4 onerow = list ([ sel_pix [0] ,])
5 for i in range (1 , len ( sel_pix ) ) :
6 if sel_pix [ i ] == sel_pix [i -1] + 1:
7 onerow . append ( sel_pix [ i ])
8 else :
9 pix_list . append ( onerow )
10 onerow = [ sel_pix [ i ] ,]
11 sizex = np . max ([ len ( j ) for j in pix_list ])
12 sizey = len ( pix_list )
13 mat = np . zeros (( sizey , sizex ) )
14 for j in range ( sizey ) :
15 start_ind = int ( sizex /2 + 1/2 ) - int ( len ( pix_list [ j ]) /2 + 1/2)
16 new_pix_list = pix_list [ j ]
17 mat [j , start_ind : start_ind + len ( pix_list [ j ]) ] = m [ new_pix_list ]
18 plt . figure ( figsize =(7 ,6) )
19 plt . imshow ( mat , aspect = ' auto ' , vmin =0 , vmax =0.1) # , cmap = ' coolwarm ' )
20 plt . gca () . invert_xaxis ()
21 # plt . contour ( mat , levels = np . linspace (0 , np . max ( mat ) ,5) , cmap = ' Reds ' )
22 # plt . title ( title )
23 plt . colorbar ()
24 plt . show ()
25 return mat
26
27 m = display_pixels ( ipix_poly )
28 hdu = fits . PrimaryHDU ( m )
29 hdu . writeto ( ' Taurus . fits ' , overwrite = True )
The dimensions of the image plotted using the data available to us as-is will usually not be ’standardised’, i.e.
it will be numerically difficult to deal with. In order to tackle this issue, the initial image was interpolated
via cubic interpolation to a standard 1200 × 1200 pixels array.
3 input_map = ' / content / gdrive / MyDrive / Krittika_CAP /K - CAP / Taurus . fits '
4 hdul = fits . open ( input_map )
5 data = hdul [0]. data
6
10 xn = np . arange (1200)
11 yn = np . arange (1200)
12
8
4 METHODOLOGY
5 xn = np . arange (1200)
6 yn = np . arange (1200)
7
16 hdul _inte rpolat ed . writeto ( ' polarization . fits ' , overwrite = True )
17 plt . figure ( figsize =(7 ,6) )
18 plt . imshow ( im , aspect = ' auto ' , vmin = - np . pi , vmax = np . pi )
19 plt . gca () . invert_xaxis ()
20 plt . colorbar ()
21 plt . show ()
The data from the Planck mission also incorporates the Stokes’ parameters Q and U, which provide us
with a direct measurement of the polarization angle at each pixel. However, it is impractical to consider
the data at each pixel for analytic purposes due to the noise associated with the data. Instead, the data
was first convoluted with a gaussian filter to suppress the noise, following which we took the average of the
polarization angle over squares of size 30 × 30 pixels, as illustrated in the code below.
Following this, constant-intensity contour lines were plotted for the molecular cloud. Care must be taken
while choosing the contours so that portions of the contour lines inside the 30 × 30 squares should not curve
excessively to form a ’semi-circular’ structure since this can result in wrong estimation of the average slope
of the contour. After obtaining the mean polarization angle and mean contour slope over all the 30 × 30
squares, the histogram of relative orientations showing the distribution of relative angle between these two
parameters was plotted.
The final part of the project involves establishing the correlation between intensity and angle of relative
orientation. In order to do so, a scatter plot showing the distribution of average intensities over the 30 × 30
squares v/s the corresponding angle of relative orientation was drawn up. Next, we average out the intensities
over regions of width 5◦ (so as to suppress the noise in the data) and create a binplot to obtain the correlation
between intensity and angle of relative orientation.
9
4 METHODOLOGY
1 import scipy
2 from scipy . ndimage import gaussian_filter
3
4 length = 10
5 step = 30
6 n = 2
7 sm = 4
8
10
4 METHODOLOGY
9 slopes = []
10 for collection in contours . collections :
11 paths = collection . get_paths ()
12 for path in paths :
13 x , y = path . vertices [: , 0] , path . vertices [: , 1]
14 slope = np . polyfit (x , y , deg =0) [0]
15 slopes . append ( np . arctan2 ( slope , 1) )
16
17 if slopes :
18 avg_slope = np . mean ( slopes )
19 avg_slopes [i , j ] = np . degrees ( avg_slope )
20
21 plt . close ()
22
9 x = angle_diff
10 y = avg_intensity . flatten ()
11 w = 5
12 midpts = np . arange (50+ w /2 , 90 , w )
13 avg_y = []
14
11
4 METHODOLOGY
1 plt . plot ( midpts , avg_y , marker = ' o ' , linestyle = ' -' , color = ' blue ' )
2 plt . xlabel ( ' Angle ( in $ {\ circ } $ ) ' )
3 plt . ylabel ( ' Intensity ' )
4 plt . xlim (50 ,90)
5 plt . ylim (0.0080 ,0.0125)
6 plt . show ()
12
5 RESULTS
5 Results
Figure 5: Intensity (or column density) map of the Taurus molecular cloud
Figure 6: Polarization vectors of dust emission overlayed on the intensity (or column density) map of the
Taurus molecular cloud
13
5 RESULTS
Figure 7: Constant-intensity contour lines plotted for the Taurus molecular cloud
Figure 8: Histogram showing the distribution of relative orientation between the contours and average
polarization angle
14
5 RESULTS
Figure 9: Scatter plot showing the distribution of intensity and angle of relative orientation
Figure 10: Binplot showing the correlation between intensity and angle of relative orientation
15
REFERENCES REFERENCES
References
[1] N. L. Hyeseung Lee, Thiem Hoang and J. Cho, “Physical model of dust polarization by radiative torque
alignment and disruption and implications for grain internal structures,” The Astrophysical Journal,
p. 15, June 2020.
16