forked from CosmoStat/shapepipe
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from martinkilbinger/p3
P3
- Loading branch information
Showing
17 changed files
with
1,123 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
## Retrieve files from VOspace | ||
|
||
This page describes how ShapePipe output files can be retrieved via the Virtual Observatory Space | ||
on canfar. This system was used for the CFIS v0 and v1 runs, and is now obsolete. | ||
|
||
1. Retrieve ShapePipe result files | ||
|
||
For a local run on the same machine as for post-processing, nothing needs to be done. In some cases, the run was carried out on a remote machine or cluster, and the resulting ShapePipe output files | ||
need to be retrieved. | ||
|
||
In the specific case of canfar_avail_results.py, this is done as follows. | ||
|
||
1. Check availability of results | ||
|
||
A canfar job can submit a large number of tiles, whose processing time can vary a lot. We assume that the submitted tile ID list is available locally via the ascii file tile_numbers.txt. To check | ||
which tiles have finished running, and whose results have been uploaded, use | ||
```bash | ||
canfar_avail_results -i tile_numbers.txt -v -p PSF --input_path INPUT_PATH | ||
``` | ||
where PSF is one in [`psfex`|`mccd`], and INPUT_PATH the input path on vos, default `vos:cfis/cosmostat/kilbinger/results`. | ||
See `-h` for all options. | ||
|
||
2. Download results | ||
|
||
All results files will be downloaded with | ||
```bash | ||
canfar_download_results -i tile_numbers.txt -v -p PSF --input_vos INPUT_VOS | ||
``` | ||
Use the same options as for same as for `canfar_avail_results`. | ||
|
||
This command can be run in the same directory at subsequent times, to complete an ongoing run: Only newer files will be downloaded | ||
from the `vos` directory. This also assures that partially downloaded or corrupt files will be replaced. | ||
|
||
Checking the `vos` directorty can be slow for large patches. | ||
To only download files that are not yet present locally (in `.`), first write the missing ones to an ascii file, using again the | ||
script `canfar_avail_results`, but this time with `.` as input path: | ||
```bash | ||
canfar_avail_results -i tile_numbers.txt --input_path . -p PSF -v -o missing.txt | ||
``` | ||
Then, download only the missing files with | ||
```bash | ||
canfar_download_results -i missing.txt --input_vos cosmostat/kilbinger/results_mccd_oc2 -p mccd -v | ||
``` | ||
|
||
3. Un-tar results | ||
```bash | ||
untar_results -p PSF | ||
``` | ||
On success, `ShapePipe` output `fits` and `log` files will be now in various subdirs of the `output` directory. | ||
|
||
At this step all required `ShapePipe` resulting output files are available in the current working directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# ShapePipe configuration file for post-processing. | ||
# merge star cat. | ||
|
||
|
||
## Default ShapePipe options | ||
[DEFAULT] | ||
|
||
# verbose mode (optional), default: True, print messages on terminal | ||
VERBOSE = True | ||
|
||
# Name of run (optional) default: shapepipe_run | ||
RUN_NAME = run_sp_Ms | ||
|
||
# Add date and time to RUN_NAME, optional, default: False | ||
RUN_DATETIME = False | ||
|
||
|
||
## ShapePipe execution options | ||
[EXECUTION] | ||
|
||
# Module name, single string or comma-separated list of valid module runner names | ||
MODULE = merge_starcat_runner | ||
|
||
# Parallel processing mode, SMP or MPI | ||
MODE = SMP | ||
|
||
|
||
## ShapePipe file handling options | ||
[FILE] | ||
|
||
# Log file master name, optional, default: shapepipe | ||
LOG_NAME = log_sp | ||
|
||
# Runner log file name, optional, default: shapepipe_runs | ||
RUN_LOG_NAME = log_run_sp | ||
|
||
# Input directory, containing input files, single string or list of names | ||
INPUT_DIR = $SP_RUN/output | ||
|
||
# Output directory | ||
OUTPUT_DIR = $SP_RUN/output | ||
|
||
|
||
## ShapePipe job handling options | ||
[JOB] | ||
|
||
# Batch size of parallel processing (optional), default is 1, i.e. run all jobs in serial | ||
SMP_BATCH_SIZE = 4 | ||
|
||
# Timeout value (optional), default is None, i.e. no timeout limit applied | ||
TIMEOUT = 96:00:00 | ||
|
||
|
||
## Module options | ||
[MERGE_STARCAT_RUNNER] | ||
|
||
INPUT_DIR = last:psfex_interp_runner | ||
|
||
PSF_MODEL = psfex | ||
|
||
NUMBERING_SCHEME = -0000000-0 | ||
|
||
# Input file pattern(s), list of strings with length matching number of expected input file types | ||
# Cannot contain wild cards | ||
FILE_PATTERN = validation_psf | ||
|
||
# FILE_EXT (optional) list of string extensions to identify input files | ||
FILE_EXT = .fits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.