1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> 2 3<!--Converted with LaTeX2HTML 2018.3 (Released July 19, 2018) --> 4<HTML lang="EN"> 5<HEAD> 6<TITLE>remove_dipole</TITLE> 7<META NAME="description" CONTENT="remove_dipole"> 8<META NAME="keywords" CONTENT="idl"> 9<META NAME="resource-type" CONTENT="document"> 10<META NAME="distribution" CONTENT="global"> 11 12<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> 13<META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0"> 14<META NAME="Generator" CONTENT="LaTeX2HTML v2018.3"> 15 <link rel='apple-touch-icon' sizes='180x180' href='images/favicons/apple-touch-icon.png?v=2017'> 16 <link rel='icon' type='image/png' sizes='32x32' href='images/favicons/favicon-32x32.png?v=2017'> 17 <link rel='icon' type='image/png' sizes='16x16' href='images/favicons/favicon-16x16.png?v=2017'> 18 <link rel='manifest' href='images/favicons/manifest.json?v=2017'> 19 <link rel='mask-icon' href='images/favicons/safari-pinned-tab.svg?v=2017' color='#5bbad5'> 20 <link rel='shortcut icon' href='images/favicons/favicon.ico?v=2017'> 21 <meta name='apple-mobile-web-app-title' content='HEALPix'> 22 <meta name='application-name' content='HEALPix'> 23 <meta name='msapplication-config' content='images/favicons/browserconfig.xml?v=2017'> 24 <meta name='theme-color' content='#ffffff'> 25 26<LINK REL="STYLESHEET" HREF="idl.css"> 27 28<LINK REL="next" HREF="idl_reorder.htm"> 29<LINK REL="previous" HREF="idl_read_tqu.htm"> 30<LINK REL="next" HREF="idl_reorder.htm"> 31</HEAD> 32 33<body text="#000000" bgcolor="#FFFFFA"> 34 35<DIV CLASS="navigation"><!--Navigation Panel--> 36<A 37 HREF="idl_read_tqu.htm"> 38<IMG WIDTH="63" HEIGHT="24" ALT="previous" SRC="prev.png"></A> 39<A 40 HREF="idl_HEALPix_IDL_subroutines.htm"> 41<IMG WIDTH="26" HEIGHT="24" ALT="up" SRC="up.png"></A> 42<A 43 HREF="idl_reorder.htm"> 44<IMG WIDTH="37" HEIGHT="24" ALT="next" SRC="next.png"></A> 45<A ID="tex2html403" 46 HREF="idl_TABLE_CONTENTS.htm"> 47<IMG WIDTH="65" HEIGHT="24" ALT="contents" SRC="contents.png"></A> 48<BR> 49<B> Previous:</B> <A 50 HREF="idl_read_tqu.htm">read_tqu</A> 51 52<B>Up:</B> <A 53 HREF="idl_HEALPix_IDL_subroutines.htm">HEALPix/IDL subroutines</A> 54 55<B> Next:</B> <A 56 HREF="idl_reorder.htm">reorder</A> 57<B> Top:</B> <a href="main.htm">Main Page</a></DIV> 58<!--End of Navigation Panel--> 59 60<H1><A ID="SECTION6500"></A> 61<A ID="idl:remove_dipole"></A> 62<BR> 63 64</H1> 65 66<P> 67<b><font size=+6><FONT COLOR="#CC0000">remove_dipole</FONT></font></b><hr> 68<H3>This IDL facility provides a means to fit and remove the dipole and monopole 69from a <b>HEALPix</b> map. 70</H3> 71Location in HEALPix directory tree: <a href="https://sourceforge.net/p/healpix/code/1005/tree/trunk/src/idl/misc/remove_dipole.pro"><b>src/idl/misc/remove_dipole.pro</b></a> 72 73<P> 74<hr><h1>FORMAT </h1><h3>IDL> 75REMOVE_DIPOLE, 76<A HREF="#idl:remove_dipole:map"> Map</A> [, 77<A HREF="#idl:remove_dipole:weight"> Weight</A>, 78<A HREF="#idl:remove_dipole:bad_data">BAD_DATA=</A>, 79<A HREF="#idl:remove_dipole:gal_cut">GAL_CUT=</A>, 80<A HREF="#idl:remove_dipole:coord_in">COORD_IN=</A>, 81<A HREF="#idl:remove_dipole:coord_out">COORD_OUT=</A>, 82<A HREF="#idl:remove_dipole:covariance_matrix">Covariance_Matrix=</A>, 83<A HREF="#idl:remove_dipole:dipole">Dipole=</A>, 84<A HREF="#idl:remove_dipole:monopole">Monopole=</A>, 85<A HREF="#idl:remove_dipole:noremove">/NOREMOVE</A>, 86<A HREF="#idl:remove_dipole:nside">NSIDE=</A>, 87<A HREF="#idl:remove_dipole:onlymonopole">/ONLYMONOPOLE</A>, 88<A HREF="#idl:remove_dipole:ordering">ORDERING=</A>, 89<A HREF="#idl:remove_dipole:pixel">PIXEL=</A>, 90<A HREF="#idl:remove_dipole:silent">/SILENT</A>, 91<A HREF="#idl:remove_dipole:units">UNITS=</A>, 92<A HREF="#idl:remove_dipole:help">/HELP</A>] 93</h3> 94 95<P> 96<hr> 97<H1>QUALIFIERS</H1> 98 99 <DL COMPACT><DT> 100<B>Map</B> 101<DD><A ID="idl:remove_dipole:map"></A> input and output, vector 102<BR> 103map from which monopole and dipole are to be removed 104 (also used for output). 105 Assumed to be a full sky data set, unless PIXEL is set and has the same 106 size as map 107 <DT> 108<B>Weight</B> 109<DD><A ID="idl:remove_dipole:weight"></A> input, vector, optional 110<BR> 111same size as map, 112 describe weighting scheme to apply to each pixel for the fit 113<BR> <b>default:</b>uniform weight 114 <DT> 115<B>BAD_DATA =</B> 116<DD><A ID="idl:remove_dipole:bad_data"></A> 117 scalar float, value given on input to bad pixels 118<BR> <b>default:</b><TT>!healpix.bad_value</TT> <!-- MATH 119 $\equiv -1.6375\ 10^{30}$ 120 --> 121<SPAN CLASS="MATH"><IMG STYLE="height: 1.92ex; vertical-align: -0.29ex; " SRC="idl_img105.png" 122 ALT="$\equiv -1.6375\ 10^{30}$"></SPAN>. 123 <DT> 124<B>GAL_CUT=</B> 125<DD><A ID="idl:remove_dipole:gal_cut"></A> 126 if set to a value larger than 0, the pixels with galactic 127 latitude <SPAN CLASS="MATH">|b|<</SPAN>gal_cut degrees are not considered in the 128 fit. 129<BR><B>NB:</B> 130 the cut is <EM>really</EM> done in Galactic coordinates. If the input 131 coordinates are different (see Coord_In), the map is rotated into galactic 132 before applying the cut. 133 <DT> 134<B>COORD_IN =</B> 135<DD><A ID="idl:remove_dipole:coord_in"></A> 136 string, map coordinate system (either 'Q' or 'C': equatorial, 137 'G': galactic or 'E': ecliptic; upper/lower case accepted) 138<BR> <b>default:</b>'G' (galactic) 139 <DT> 140<B>COORD_OUT =</B> 141<DD><A ID="idl:remove_dipole:coord_out"></A> 142 string, coordinate system (see above) in which 143 to output dipole vector in variable Dipole 144<BR> <b>default:</b>same as coord_in 145 <DT> 146<B>Covariance_Matrix =</B> 147<DD><A ID="idl:remove_dipole:covariance_matrix"></A> 148 OUTPUT, scalar (or symmetric 4x4 matrix), 149<BR> 150covariance 151 of the statistical errors made on monopole (and dipole) determination 152 <DT> 153<B>Dipole=</B> 154<DD><A ID="idl:remove_dipole:dipole"></A> 155 OUTPUT, 3d vector, 156<BR> 157coordinates of best fit dipole (done simultaneously with monopole), same 158 units as input map 159 <DT> 160<B>Monopole=</B> 161<DD><A ID="idl:remove_dipole:monopole"></A> 162 OUTPUT, scalar float, 163<BR> 164value found for the best fit monopole (done simultaneously with dipole), 165 same units as input map 166 <DT> 167<B>NSIDE=</B> 168<DD><A ID="idl:remove_dipole:nside"></A> 169 scalar integer, healpix resolution parameter 170 <DT> 171<B>ORDERING=</B> 172<DD><A ID="idl:remove_dipole:ordering"></A> 173 string, ordering scheme (either 'RING' or 'NESTED') 174 <DT> 175<B>PIXEL=</B> 176<DD><A ID="idl:remove_dipole:pixel"></A> 177 input, vector, gives the Healpix index of the pixels 178 whose temperature is actually given in map (for cut sky 179 maps). If present, must match Map in size. If absent, it is 180 assumed that the map covers the whole sky. 181 <DT> 182<B>UNITS=</B> 183<DD><A ID="idl:remove_dipole:units"></A> 184 string, units of the input map 185 </DL> 186 187<P> 188<hr><H1>KEYWORDS</H1> 189 190 <DL COMPACT><DT> 191<B>/NOREMOVE</B> 192<DD><A ID="idl:remove_dipole:noremove"></A> 193 if set, the best fit dipole and monopole are computed but not 194 removed (ie, Map is unchanged) 195 <DT> 196<B>/ONLYMONOPOLE</B> 197<DD><A ID="idl:remove_dipole:onlymonopole"></A> 198 if set, fit (and remove) only the monopole 199 <DT> 200<B>/HELP</B> 201<DD><A ID="idl:remove_dipole:help"></A> 202 if set, only display documentation header 203 <DT> 204<B>/SILENT</B> 205<DD><A ID="idl:remove_dipole:silent"></A> 206 if set, the routine works silently 207 </DL> 208 209<P> 210<hr> 211<H1>DESCRIPTION</H1> 212<blockquote> 213remove_dipolemakes a simultaneous least square fit of the monopole and dipole on all the valid 214pixels of Map (those with a value different from BAD_DATA) with a galactic 215latitude larger in magnitude than GAL_CUT (in degrees). The position of the pixels 216on the sky is reconstructed from NSIDE and ORDERING. 217If Map does not cover the full sky, the actual indices of the concerned pixels should be given in PIXEL 218</blockquote> 219 220<P> 221<hr><H1>RELATED ROUTINES</H1><h3>This section lists the routines related to <b><FONT COLOR="#CC0000">remove_dipole</FONT></b></h3> 222 223 <DL COMPACT><DT> 224<B>idl</B> 225<DD>version 6.4 or more is necessary to run remove_dipole. 226 </DL> 227 228<P> 229 230<P> 231 232<P> 233 234<DIV CLASS="navigation"><HR> 235<!--Navigation Panel--> 236<A 237 HREF="idl_read_tqu.htm"> 238<IMG WIDTH="63" HEIGHT="24" ALT="previous" SRC="prev.png"></A> 239<A 240 HREF="idl_HEALPix_IDL_subroutines.htm"> 241<IMG WIDTH="26" HEIGHT="24" ALT="up" SRC="up.png"></A> 242<A 243 HREF="idl_reorder.htm"> 244<IMG WIDTH="37" HEIGHT="24" ALT="next" SRC="next.png"></A> 245<A ID="tex2html403" 246 HREF="idl_TABLE_CONTENTS.htm"> 247<IMG WIDTH="65" HEIGHT="24" ALT="contents" SRC="contents.png"></A> 248<BR> 249<B> Previous:</B> <A 250 HREF="idl_read_tqu.htm">read_tqu</A> 251 252<B>Up:</B> <A 253 HREF="idl_HEALPix_IDL_subroutines.htm">HEALPix/IDL subroutines</A> 254 255<B> Next:</B> <A 256 HREF="idl_reorder.htm">reorder</A> 257<B> Top:</B> <a href="main.htm">Main Page</a></DIV> 258<!--End of Navigation Panel--> 259<ADDRESS> 260Version 3.50, 2018-12-10 261</ADDRESS> 262</BODY> 263</HTML> 264