CASA Documentation
Advanced Search…
  • Log in

Navigation

  • Home
  • Latest
  • CASA 6.1
  • CASA 5.6
  • CASA 5.5
  • CASA 5.4.1
  • CASA 5.4.0
  • CASA 5.3.0
  • CASA 5.1.2
  • CASA 5.1.1
  • CASA 5.1.0
  • CASA 5.0.0
Navigation
  • Release Information
  • Hardware Requirements
  • Using CASA
  • Visibility Data Import Export
  • Visibility Data Selection
  • Data Examination and Editing
  • UV Manipulation
  • Synthesis Calibration
  • Ephemeris Data
  • Synthesis Imaging
  • Single Dish Calibration
  • Single-Dish Imaging
  • Image Combination
  • Image Cube Visualization
  • Image Analysis
  • Simulation
  • Parallel Processing
  • Reference Material
  • Global Task List
    • applycal
    • bandpass
    • blcal
    • calstat
    • clean
    • concat
    • exportasdm
    • exportfits
    • exportuvfits
    • flagdata
    • fluxscale
    • gaincal
    • gencal
    • hanningsmooth
    • imfit
    • imhistory
    • immath
    • immoments
    • impbcor
    • importasap
    • importasdm
    • importfits
    • importnro
    • importuvfits
    • impv
    • imrebin
    • imregrid
    • imsmooth
    • imstat
    • imsubimage
      • Description
      • Parameters
      • Changelog
      • Examples
      • Developer (developer)
    • imtrans
    • imval
    • listobs
    • mstransform
    • plotcal
    • plotms
    • plotprofilemap
    • polcal
    • sdbaseline
    • sdcal
    • sdfit
    • sdfixscan
    • sdgaincal
    • sdimaging
    • sdsmooth
    • setjy
    • simalma
    • simanalyze
    • simobserve
    • specfit
    • specsmooth
    • split
    • spxfit
    • tclean
  • Global Tool List
  • Documentation (developer)
  • CASA on Amazon Web Services
  • CASA Processes (developer)


Description

imsubimage task: Create a (sub)image from a region of the image

This task copies all or part of the image to a new image specified by outfile. Both float and complex valued images are supported.

Sometimes it is useful to drop axes of length one (degenerate axes). Set dropdeg equal to True if you want to do this.

The output mask is the combination (logical OR) of the default input pixel mask (if any) and the OTF mask. Any other input pixel masks will not be copied. Use function ia.maskhandler if you need to copy other masks too.

If the mask has fewer dimensions than the image and if the shape of the dimensions the mask and image have in common are the same, the mask will automatically have the missing dimensions added so it conforms to the image.

If stretch=true and if the number of mask dimensions is less than or equal to the number of image dimensions and some axes in the mask are degenerate while the corresponding axes in the image are not, the mask will be stretched in the degenerate dimensions. For example, if the input image has shape [100, 200, 10] and the input mask has shape [100, 200, 1] and stretch=true, the mask will be stretched along the third dimension to shape [100, 200, 10]. However if the mask has shape [100, 200, 2], stretching is not possible and an error will result.

 

The Plone® Open Source CMS/WCM is © 2000-2022 by the Plone Foundation and friends. Distributed under the GNU GPL license.
  • Site Map
  • Accessibility
  • Contact
Powered by Plone & Python