Commit 1a6d3642 authored by michitaro's avatar michitaro
Browse files

update for pdr3

parent 98942cb3
......@@ -24,7 +24,7 @@ python colorPostage.py --user YOUR_ACCOUNT --outDir pngs coords.txt
```
usage: colorPostage.py [-h] --outDir OUTDIR --user USER
[--filters FILTERS FILTERS FILTERS] [--fov FOV]
[--rerun {any,pdr2_dud,pdr2_wide}] [--color {hsc,sdss}]
[--rerun {any,pdr3_dud,pdr3_wide}] [--color {hsc,sdss}]
input
positional arguments:
......@@ -36,6 +36,6 @@ optional arguments:
--user USER, -u USER
--filters FILTERS FILTERS FILTERS, -f FILTERS FILTERS FILTERS
--fov FOV
--rerun {any,pdr2_dud,pdr2_wide}
--rerun {any,pdr3_dud,pdr3_wide}
--color {hsc,sdss}
```
\ No newline at end of file
......@@ -38,7 +38,7 @@ def main():
parser.add_argument('--user', '-u', required=True)
parser.add_argument('--filters', '-f', nargs=3, default=['HSC-I', 'HSC-R', 'HSC-G'])
parser.add_argument('--fov', default='30asec')
parser.add_argument('--rerun', default='any', choices='any pdr2_dud pdr2_wide'.split())
parser.add_argument('--rerun', default='any', choices='any pdr3_dud pdr3_wide'.split())
parser.add_argument('--color', choices='hsc sdss'.split(), default='hsc')
parser.add_argument('input', type=argparse.FileType('r'))
args = parser.parse_args()
......@@ -61,8 +61,8 @@ def main():
makeColorPng(rgb, outFile, args.color)
TOP_PAGE = 'https://hsc-release.mtk.nao.ac.jp/das_cutout/pdr2/'
API = 'https://hsc-release.mtk.nao.ac.jp/das_cutout/pdr2/cgi-bin/cutout'
TOP_PAGE = 'https://hsc-release.mtk.nao.ac.jp/das_cutout/pdr3/'
API = 'https://hsc-release.mtk.nao.ac.jp/das_cutout/pdr3/cgi-bin/cutout'
def loadCoords(input):
......
......@@ -38,7 +38,7 @@ def main():
parser.add_argument('--user', '-u', required=True)
parser.add_argument('--filters', '-f', nargs=3, default=['HSC-I', 'HSC-R', 'HSC-G'])
parser.add_argument('--fov', default='30asec')
parser.add_argument('--rerun', default='any', choices='any pdr2_dud pdr2_wide'.split())
parser.add_argument('--rerun', default='any', choices='any pdr3_dud pdr3_wide'.split())
parser.add_argument('--color', choices='hsc sdss'.split(), default='hsc')
parser.add_argument('input', type=argparse.FileType('r'))
args = parser.parse_args()
......@@ -61,8 +61,8 @@ def main():
makeColorPng(rgb, outFile, args.color)
TOP_PAGE = 'https://hsc-release.mtk.nao.ac.jp/das_cutout/pdr2/'
API = 'https://hsc-release.mtk.nao.ac.jp/das_cutout/pdr2/cgi-bin/cutout'
TOP_PAGE = 'https://hsc-release.mtk.nao.ac.jp/das_cutout/pdr3/'
API = 'https://hsc-release.mtk.nao.ac.jp/das_cutout/pdr3/cgi-bin/cutout'
def loadCoords(input):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment