Exemple #1
0
def process_frames(frames, color, name, model, feature): 
    '''
    Processes WAC frames (uv or vis) into regionally constrained images
    LROWACCAL calibrates pixels to DN
    '''
    subname = name+'.'+color
    mapname = feature+'.map'

    for frame in frames:
        isis.spiceinit(from_='+frame+', 
                       spksmithed='true', 
                       shape='user', 
                       model=model
                       )
        isis.lrowaccal(from_='+frame+',
                       to='+frame+'.cal,
                       RADIOMETRIC=FALSE
                       )
        isis.cam2map(from_='+frame+'.cal,
                     to='+frame+'.proj,
                     map=mapname,
                     matchmap=true
                     )

    create_mosaic(subname)
Exemple #2
0
def calibrate_wac(image, model, units):
    spice(image, model)

    if units=='calibrated_dn':
        isis.lrowaccal(
            from_       = image.cub,
            to          = image.dn.cub,
            RADIOMETRIC = 'FALSE'
        )
        apply_exposure_time(image, get_exposure_time(image))
    elif units=='reflectance':
        isis.lrowaccal(
            from_       = image.cub,
            to          = image.cal.cub,
            RADIOMETRIC = 'TRUE'
        )
    else: print "Improper image units!"