def run(id, outdir, repodir, csize=50000, radius=2.1, compress=True, cleanup=False):
    import lsst.sims.catalogs.generation.utils.runTrimCat as rtc
    try:
        rtc.runTrim(
          csize, id, radius, outdir, repodir, None, compress=compress,
          cleanup=cleanup, objtypes=['MYSTARS'])
    except Exception, e:
        print "An error occured: %s"%(e)
Пример #2
0
def run(id, outdir, repodir, csize=50000, radius=2.1, compress=True, cleanup=False):
    import lsst.sims.catalogs.generation.utils.runTrimCat as rtc
    from lsst.sims.catalogs.generation.db import jobDB
    je = jobDB.LogEvents("Test job number %i"%(id), jobid=id, ip="184.72.71.15")
    print "Job number is %i"%(je._jobid)
    try:
        rtc.runTrim(
          csize, id, radius, outdir, repodir, je, compress=compress,
          cleanup=cleanup)
        sys.exit(0)
    except Exception, e:
        rtc.writeJobEvent(je, "Exception", description=e.__str__())
        sys.exit(1)
Пример #3
0
def run(id,
        outdir,
        repodir,
        csize=50000,
        radius=2.1,
        compress=True,
        cleanup=False):
    import lsst.sims.catalogs.generation.utils.runTrimCat as rtc
    try:
        rtc.runTrim(csize,
                    id,
                    radius,
                    outdir,
                    repodir,
                    None,
                    compress=compress,
                    cleanup=cleanup,
                    objtypes=['MYSTARS'])
    except Exception, e:
        print "An error occured: %s" % (e)