识别需要方向相关校准的源。

pyddi的Python项目详细描述


Pyddi

说明

此工具用于识别图像中需要方向相关校准的区域。

安装

从源安装,签出源的工作目录

pip install .

此软件包在pypi上提供,允许

pip install pyddi

技术:

此工具执行以下步骤:

  1. 它在高信噪比的天空模型中搜索图像/源中的像素。

  2. 为了便于计算,将由几个光束分隔的像素分组。为每组返回最亮像素的位置和强度。

  3. 计算2个像素或1个源的像素周围的局部方差,并选择具有高局部方差的像素。

  4. 如果用户提供psf图像,则psf与每个源/区域相关。选择相关系数高的。

  5. 最后,该工具写出一个tigger模型,其中包含完成步骤3或4的源/像素位置。

    5.1但是,用户可以提供一个实际的天空模型,该工具将与上述模型交叉匹配,并将前一个模型中的源标记为“de”。

    5.2或者,或者,用户可以指定是否希望将其实际天空模型用于标识,而不是图像中的像素,在这种情况下,天空模型中的源将使用标记“de”更新。

    5.3如果未提供天空模型,将返回带有位置的源模型。此模型不应用于除位置以外的任何其他用途。

实施

如需帮助:pyddi-h

Finds the direction subject to direction-dependent effects.  

optional arguments:      
   -h, --help            show this help message and exit
   -i IMAGE, --img IMAGE    
             Image of interest. Required.
   -p PSF_IMAGE, --psf PSF_IMAGE   
             The psf image. Default=None.
   -c CATALOG, --cat CATALOG   
              Sky model as LSM/txt. Default=None. Must be in Tigger  
              format: "#format:name, ra_d, dec_d, i"   
   -fth FLUX_THRESHOLD, --flux-thresh FLUX_THRESHOLD   
              Flux threshold. Regions in an image with flux > fth *
              noise are considered. Default=10
   -vth VARIANCE_THRESHOLD, --variance-thresh VARIANCE_THRESHOLD   
              Local variance threshold. Sources with varinace > vth   
              * noise are considered. Defautl=5.   
   -vsize VARIANCE_SIZE, --variance-size VARIANCE_SIZE   
              The size of the region to compute the local variance.  
              E.g vsize=10, gives a region of size = 10 *   
              resolution. The resolution is in pixels. Default=10   
   -cth CORRELATION_THRESHOLD, --correlation-thresh CORRELATION_THRESHOLD   
              Correlation threshold. Sources with correlation factor   
              > cth are considered. Default=0.5    
   -csize CORRELATION_SIZE, --correlation-size CORRELATION_SIZE   
              The size of the region to compute correlation. see   
              vsize. Default=5   
   -gpix GROUP_PIXELS, --group-pixels GROUP_PIXELS   
              The size of the region to group the pixels, in terms   
              of psf-size. The psf is in degrees. e.g gpix=20, gives   
              20xpsf. Default=20   
   -rexcl, RADIUS_EXCLUDE, --exclude-radius RADIUS_EXCLUDE
            The radius to exclude in arcseconds. default=0.
   -usec USE_CATALOG, --use-catalog USE_CATALOG   
              Use -cat for the identification and not only -i.    
   -o OUTPUT_PREFIX, -prefix OUTPUT_PREFIX    
              The prefix for the output file containing directions   
              in RA, DEC both in degrees, and peak flux of the   
              pixels. Default=None  

示例运行:

pyddi -i examples/kat7restored.fits -c examples/kat7restored.gaul -p examples/kat7psf.fits -vth 10 -cth 0.7 -gpix 50  -usec -o test-output

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java与Groovy正则表达式匹配混淆   java控制台未定义为JSNI   主目录中的java指针异常   java如何获取hashmap中的arrayList的大小   ApachePOI用于文本,Java代码中的word doc(.docx)中没有进行追加   Ruby对象到Java对象   JavaSpringJPA哈希集只返回一个值   Java在执行由配置了精确类路径参数的mavenjarpluin生成的可执行jar时无法找到依赖项   java我试图在画布上写一个文本,但什么也没发生   java HTTP 404源服务器找不到目标资源的当前表示形式,或者不愿意透露存在该表示形式。不起作用   java提取小数点后的最后一个数字   oop Java:无法访问对象的元素   PHP URL中RecyclerView中的java句柄空异常   不调用OnCreateViewHolder的java Update RecyclerView适配器项