sc-depol
Introduction
This is not fully-fledged Python script. It is a simple shim availed to create a depolarization ratio map.
The depolarization ratio is the ratio of fractional polarisation at a shorter wavelength, to that at a longer wavelength. The fractional polarisation, \(P\), is defined using Stokes \(\mathit{I, Q, U}\) terms as:
Given fractional polarization at different frequencies, \(\nu_{max}\) and \(\nu_{min}\), the depolarization ratio is given as:
Docstring Documentation
Calculate the depolarization ratio
Parameters
(i|q|u)data: np.ndarray Data cubes containing the stokes e_file: str Name of the file containing errors. This is found in the file generated from scrappy's 'sc-los' tool and is a numpy pickle file. mask: str Name of mask to use while calculating depolarisation ratio output: str Name of output depolarisation ratio map
Returns
Maps of depolarization ratio and its error
Source code in src/rmsynthesis/rmmap_x2.py
342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 |
|