Esempio n. 1
0
def stellarMfs():
    """
    :requires: io.sexutils
    :return: sexutils instance to MFs data file.
    """
    file = observation_path + 'stellarmf/sami.dat'
    tmp = su.se_catalog(file)
    return tmp, _getIDs(tmp)
Esempio n. 2
0
from matplotlib import cm
from matplotlib.patches import Circle

if __name__ == '__main__':
    #command line arguments
    fits = sys.argv[1]
    cat = sys.argv[2]

    rad = 5
    log = True

    #fits file data
    data = PF.getdata(fits)

    #sextractor catalogue data
    cat_data = su.se_catalog(cat)

    #min and max
    min = N.min(data)
    max = N.max(data)

    #make plot
    P.figure(figsize=(12, 12))
    ax = P.subplot(111)
    bb = P.gca()

    if log:
        ax.imshow(N.log10(data),
                  origin='lower',
                  interpolation=None,
                  vmin=min * 1.05,
Esempio n. 3
0
from matplotlib.patches import Circle


if __name__ == '__main__':
    #command line arguments
    fits = sys.argv[1]
    cat = sys.argv[2]

    rad = 5
    log = True

    #fits file data
    data = PF.getdata(fits)

    #sextractor catalogue data
    cat_data = su.se_catalog(cat)

    #min and max
    min = N.min(data)
    max = N.max(data)

    #make plot
    P.figure(figsize=(12, 12))
    ax = P.subplot(111)
    bb = P.gca()

    if log:
        ax.imshow(N.log10(data), origin='lower',
                  interpolation=None,
                  vmin=min * 1.05,
                  vmax=N.log10(max) * .9,