taps.apps.montage¶
MontageApp
¶
MontageApp(
img_folder: Path,
img_tbl: str = "Kimages.tbl",
img_hdr: str = "Kimages.hdr",
output_dir: str = "data/",
)
Montage application.
Parameters:
-
img_folder
(Path
) –Path to input image directory.
-
img_tbl
(str
, default:'Kimages.tbl'
) –Name of the image table file.
-
img_hdr
(str
, default:'Kimages.hdr'
) –Name of the image header file.
-
output_dir
(str
, default:'data/'
) –Output directory path for intermediate and result data.
Source code in taps/apps/montage.py
close
¶
run
¶
Run the application.
Parameters:
Source code in taps/apps/montage.py
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 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 |
|
configure_montage
¶
Montage Mosaic application setup.
This function generates a header file bounding a collection of data specified by the input image dir.
Parameters:
-
img_folder
(Path
) –Path to input image directory.
-
img_tbl
(Path
) –Name of the image table file.
-
img_hdr
(Path
) –Name of the image header file.
Source code in taps/apps/montage.py
mproject
¶
Wrapper to Montage mProject function.
The function reprojects a single image to the scale defined in a FITS header template file.
Parameters:
-
input_path
(Path
) –FITS file to reproject.
-
template_path
(Path
) –FITS header file used to define the desired output.
-
output_path
(Path
) –Output filepath.
Returns:
-
Path
–Output filepath for chaining task dependencies.
Source code in taps/apps/montage.py
mimgtbl
¶
Wrapper to Montage Imgtbl function.
The function extracts the FITS header geometry information from a set of files and creates an ASCII image metadata table.
Parameters:
Returns:
-
Path
–Path to table file for chaining task dependencies.
Source code in taps/apps/montage.py
moverlaps
¶
Wrapper to Montage Overlaps function.
The function takes a list of of images and generates a list of overlaps.
Parameters:
Returns:
-
Path
–Path to the difference table file for chaining task dependencies.
Source code in taps/apps/montage.py
mdiff
¶
Wrapper to Montage diff function.
The function subtracts one image from another (both in the same projection).
Parameters:
-
image_1
(Path
) –First input file for differencing.
-
image_2
(Path
) –Second input file for differencing.
-
template
(Path
) –FITS header file used to define the desired output.
-
output_path
(Path
) –Output filepath.
Returns:
-
Path
–Output filepath for chaining task dependencies.
Source code in taps/apps/montage.py
bgexec_prep
¶
Prep to call Montage bg function.
The function creates an image-to-image difference parameter table and then applies a set of corrections to achieve a best global fit.
Parameters:
-
img_table
(Path
) –Reprojected image metadata list.
-
diffs_table
(Path
) –Table file list of input difference images.
-
diff_dir
(Path
) –Directory for temporary difference files.
-
output_dir
(Path
) –Output directory path.
Returns:
-
Path
–corrections table path
Source code in taps/apps/montage.py
mbackground
¶
Wrapper to Montage Background function.
Function subtracts a planar background from a FITS image.
Parameters:
-
in_image
(Path
) –Input FITS file.
-
out_image
(Path
) –Output background-removed FITS file.
-
a
(float
) –A coefficient in (A*x + B*y + C) background level equation.
-
b
(float
) –B coefficient in (A*x + B*y + C) background level equation.
-
c
(float
) –C level in (A*x + B*y + C) background level equation.
Returns:
-
Path
–Output image path for chaining task dependencies.
Source code in taps/apps/montage.py
madd
¶
Coadd reprojected images to form a mosaic.
Parameters:
-
images_table
(Path
) –table file containing metadata for images to be coadded.
-
template_header
(Path
) –FITS header template to use in generation of output FITS.
-
out_image
(Path
) –Output FITS image.
-
corr_dir
(Path
) –Directory containing reprojected image.
Returns:
-
Path
–FITS output header file.