You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.[Process single exposure images](#process-single-exposure-images)
17
17
1.[Split images](#split-images)
@@ -67,10 +67,10 @@ Naming and numbering of the input files can closely follow the original image na
67
67
The pixel data can contain the observed image, a weight map, or a flag map. Tile images and weights are created in the
68
68
case of CFIS by Stephen Gwyn using a combination of `swarp` and his own software. Examples of file names are
69
69
`CFIS.316.246.r.fits`, `CFIS.205.267.r.weight.fits.fz`, the latter is a compressed FITS file, see below. Tile flag files
70
-
are created the mask module of `ShapePipe` (see [Mask images](#mask-images)). The tile ID needs to be modified such that the `.` between the two tile numbers (RA and DEC indicator) is not mistaken for a file extension delimiter. In addition, for
70
+
are created the mask module of `ShapePipe` (see [Mask images](#mask-images)). The tile ID needs to be modified such that the `.` between the two tile numbers (RA and DEC indicator) is not mistaken for a file extension delimiter. For the same reason, the extension `.fits.fz` is changed to `.fitzfz`. In addition, for
71
71
clarity, we include the string `image` for a tile image type.
For very large files that combine information from multiple tiles or single exposures, `ShapePipe` creates `sqlite`
@@ -89,6 +89,9 @@ Naming and numbering of the input files can closely follow the original image na
89
89
The `SETools` module that creates samples of objects according to some user-defined selection criteria (see [Select stars](#select-stars)) also outputs ASCII files with user-defined summary statistics for each CCD, for example the number of selected stars, or mean and standard deviation of their FWHM.
90
90
Example: `star_stat-2366993-18.txt`
91
91
92
+
- tile numbers list
93
+
ASCII file with a tile number on each line. Used for the `get_image_runner` module to download CFIS images (see [Download tiles](#download-tiles)).
94
+
92
95
- Plots
93
96
The `SETools` module can also produce plots of the objects properties that were selected for a given CCD.
94
97
The type of plot (histogram, scatter plot, ...) and quantities to plot as well as plot decorations can be specified in the
@@ -134,8 +137,7 @@ In `$SP_RUN` the following subdirectories need to be created by the user:
-`output_headers`: Single-exposure headers with WCS information`.
140
+
diagnostics, statistics, output images, catalogues, Ssingle-exposure headers with WCS information).
139
141
-*Optional*: `output_star_cat`: Star catalogues, only necessary if the pipeline is run on a cluster without internet connection to access star catalogues. In that case, the star catalogues need to be retrieved outside the pipeline, for example on a login node, and copied to `output_star_cat`.
140
142
141
143
In general, a call to the pipeline is done as follows, after activating the `shapepipe` conda environment (indicated by `(shapepipe)` at the beginning of the shell prompt.
@@ -154,41 +156,61 @@ Before running `ShapePipe` we need to select and identify tiles and single expos
154
156
The selection of images on input can be done in the config files of the relevant modules, by specifying input
155
157
path(s) and input file name patterns. Either all, or a sub-selection of images in a given input directory can be selected in that way. One might want to pre-select a specific set of images, for example all available images in a given sky area. The resulting files can then be copied to a new, dedicated directory (or alternatively linked using symbolic links), or downloaded to a local machine.
156
158
157
-
Images can be selected to cover a given sky area, with the script `cfis_field_select`.
159
+
Images can be selected to cover a given sky area, with the script `cfis_field_select`. The tile numbers is all we need here.
158
160
Once we have selected the tiles, we can identify the single exposure images that were used to create those tiles, see [Fine exposures](#find-exposures).
159
161
160
-
For example, find the tile for a Planck cluster at R.A.=255.66 deg, dec= 34.05 deg can be found with the `--coord` option:
162
+
For example, find the tile number for a Planck cluster at R.A.=255.66 deg, dec= 34.05 deg can be found with the `--coord` option:
The tile images and weights selected in the previous section need to be findable by `ShapePipe` in the tiles input directory `input_tiles`. Either download the images and weights there, or, if they are already stored locally on a hard disk, create symbolic links in `input_tiles`. Now is a good time to make a necessary small change to the file names. As mentioned above, any dot (`.`) that does not indicate a file extension needs to be replaced. In addition, file type specifiers need to appear before the tile number. Therefore, images and weights need to be renamed, for example according to the following scheme:
The tile images and weights selected in the previous section are made available for `ShapePipe` now, by running the module `get_image_runner`. This module either downloads the images or, if they already exist on a local hard disk, creates symbolic links. Downloading uses the Virtual Observatory VOSpace (vos) software (http://www.ivoa.net/documents/VOSpace). The downloaded files (or link names) are automatically modified to be parsable by the pipeline.
177
+
178
+
An example config file is `SP_CONFIG/config_get_image.ini`. In the module section, we need to specify
179
+
input path (for example a VOS url), input file pattern and their extension. The input file pattern includes the number(s) as dummy template, similarly to the `NUMBERING_SCHEME` in the `[FILE]` section (see `File options` in the [general pipeline readme](README.rst)). In addition, the input numbering scheme as python `regexp` needs to be specified, which matches the tile number in the tile number list.
180
+
181
+
Next, the output file pattern without the tile number is given.
182
+
183
+
After that we indicate the copy or download method, for example `vos`. Additional command options can be indicated with the key `COPY_OPTIONS`. Here is the example:
The compressed stack weights (.fits.fz/.fitsfz files) need to be uncompressed before further processing. An example config file is `$SP_CONFIG/config_unfz_w.ini`. Except from the input file pattern and extension (see `File Options` in the [general pipeline readme](README.rst)), we need to specify the output file patern (can be the same as the input), and the HDU number of the weight image data:
204
+
```ini
205
+
[UNCOMPRESS_FITS_IMAGE_RUNNER]
206
+
207
+
FILE_PATTERN = CFIS_weight
208
+
FILE_EXT = .fitsfz
209
+
OUTPUT_PATTERN = CFIS_weight
210
+
HDU_DATA = 1
190
211
```
191
212
213
+
On success, the uncompressed weight image with the correct (only) HDU is written.
192
214
193
215
### Find exposures
194
216
@@ -255,7 +277,7 @@ The example config file is `$SP_CONFIG/config_merge_headers.ini`.
255
277
Specify the output path:
256
278
```ini
257
279
[MERGE_HEADER_RUNNER]
258
-
OUTPUT_PATH = $SP_RUN/output_headers
280
+
OUTPUT_PATH = $SP_RUN/output
259
281
```
260
282
Since this produces a single output file instead of a file per input image, it is more convenient to have this file in
0 commit comments