Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[NEW FEATURE]Dummy masked images

未关闭
#605 7 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@fabianhervaspeters 已经在做这个了。

开始于 2023年1月16日。

评估

这个 Issue 还没有评估数据。

描述

enhancement

The masking step, run_sp_MaMa, takes an external star catalog and then places masks over known bright stars that will saturate the CCDs, leave a halo, etc. Our simulated images dont contain saturated stars, and will not match to real bright stars anyway, since they are not images of the real sky, so we need to skip this step. We also need to create dummy mask files where every pixel is 0 for each exposure. We need to create dummy flags for both exposures AND tiles. Here are the steps to do this:
For exposures: I would add a step to the image splitting module

  1. Create an option in the config file that says whether or not you are running simulations. If you are running simulations, then do the following
  2. Create a single blank image that is the size of 1 ccd. All pixels should be integers and be set to 0. For every image in the individual exposures, create a link from this dummy image that takes on the corresponding name of the flag image: eg flag-2106087-9.fits would correspond to image-2106087-9.fits. The flags should be in the same directory as the split images.

For tiles, I would add the step to the uncompress module where the weight image is uncompressed.

  1. Create an option in the config file that says whether or not you are running simulations. If you are running simulations, then o the following
  2. Create a single blank image that is the size of 1 tile. All pixels should be itegers and be set to 0. Create a link from this dummy image for every tile with a name that replaces image.......fits to flag......fits

Now that you created the dummy flags, you need to set up the sextractor step of the pipeline. The config file currently looks for the flags created by the masking step that we skip with the name pipeline_flag.... . We need the pipeline to look for the regular flags that were created in the previous steps, so the config needs to be modified accordingly.

主要语言
Python
星标
18
派生
14
平均合并
1 天 3 小时
30 天内合并 PR
19

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CosmoStat/shapepipe 的其他 Issue

查看 CosmoStat/shapepipe 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。