Ejemplo n.º 1
0
def usage():
    print "Usage:"
    print "  ubv.py [params]"
    print "  -b <bands:shift>: string, default: U-B-V-R-I, for example U-B-V-R-I-u-g-i-r-z-UVW1-UVW2.\n" \
          "     shift: to move lc along y-axe (minus is '_', for example -b R:2-V-I:_4-B:5 "
    print "  -i <model name>.  Example: cat_R450_M15_Ni007_E7"
    print "  -p <model directory>, default: ./"
    print "  -e <extinction, E(B-V)> is used to define A_nu, default: 0 "
    print "  -c <callback> [plot_tolstov, popov[:R:M:E[FOE]:Mni]]. You can add parameters in format func:params"
    print "  -d <distance> [pc].  Default: 10 pc"
    print "  -m <magnification>.  Default: None, used for grav lens"
    print "  -q  turn off quiet mode: print info and additional plots"
    print "  -t  plot time points"
    print "  -s  <file-name> without extension. Save plot to pdf-file. Default: ubv_<file-name>.pdf"
    print "  -x  <xbeg:xend> - xlim, ex: 0:12. Default: None, used all days."
    print "  -y  <ybeg:yend> - ylim, ex: 26:21. Default: None, used top-magnitude+-5."
    print "  -v  plot model velocities."
    print "  -w  write magnitudes to file, default 'False'"
    print "  -z <redshift>.  Default: 0"
    print "  -l  write plot label"
    print "  -h  print usage"
    print "   --- "
    bands = band.band_get_names()
    band.Band.load_settings()
    alias = band.band_get_aliases()
    print "   Available bands: \n %s" % '-'.join(sorted(bands))
    print "   Available aliases: "
    if len(alias) > 0:
        for k, v in alias.items():
            print "     %s => %s " % (k, v)
    else:
        print "     No aliases."
Ejemplo n.º 2
0
def usage():
    bands = band.band_get_names().keys()
    print "Usage:"
    print "  dmdt.py [params]"
    print "  -b <set_bands>: delimiter '_'. Default: B-V-I_B-V_V-I.\n" "     Available: " + "-".join(sorted(bands))
    print "  -i <model name>.  Example: cat_R450_M15_Ni007_E7"
    print "  -p <model path(directory)>, default: ./"
    print "  -t  plot time points"
    print "  -w  write magnitudes to file, default 'False'"
    print "  -h  print usage"
Ejemplo n.º 3
0
def usage():
    bands = band.band_get_names().keys()
    print "\n Create hyd- abn-files from res-file."
    print "Usage:"
    print "  rezone.py [params]"
    print "  -i <model name>.  Example: cat_R450_M15_Ni007_E7"
    print "  -n  new zon number, default: 100"
    print "  -p <model path(directory)>, default: ./"
    print "  -s  silence mode: no info, no plot"
    print "  -t  time moment, default: 10"
    print "  -h  print usage"
Ejemplo n.º 4
0
def usage():
    bands = band.band_get_names()
    print "Usage:"
    print "  %s [params]" % __file__
    print "  -b <set_bands>: delimiter '_'. Default: B-V-I_B-V_V-I.\n" \
          "     Available: " + '-'.join(sorted(bands))
    print "  -i <model name>.  Example: cat_R450_M15_Ni007_E7"
    print "  -p <model path(directory)>, default: ./"
    print "  -f  force mode: rewrite zeta-files even if it exists"
    # print "  -a  plot the Eastman & Dessart fits"
    print "  -o  options: <fit:fitb:time:ubv:Tnu> - fit E&D: fit bakl:  show time points: plot UBV"
    # print "  -w  write magnitudes to file, default 'False'"
    print "  -s  save plot to file, default 'False'"
    print "  -h  print usage"
Ejemplo n.º 5
0
def usage():
    bands = band.band_get_names()
    print "Usage:"
    print "  zeta.py [params]"
    print "  -b <set_bands>: delimiter '_'. Default: B-V-I_B-V_V-I.\n" \
          "     Available: " + '-'.join(sorted(bands))
    print "  -d <distance> [pc].  Default: 10 pc"
    print "  -i <model name>.  Example: cat_R450_M15_Ni007_E7"
    print "  -p <model path(directory)>, default: ./"
    print "  -e <model extension> is used to define model name, default: tt "
    print "  -s  silence mode: no info, no plot"
    print "  -f  force mode: rewrite zeta-files even if it exists"
    # print "  -a  plot the Eastman & Dessart fits"
    print "  -o  options: <fit:fitb:time:ubv:Tnu> - fit E&D: fit bakl:  show time points: plot UBV"
    print "  -w  write magnitudes to file, default 'False'"
    print "  -z <redshift>.  Default: 0"
    print "  -h  print usage"