Пример #1
0
def check_angles():
    inventory = scan_assets()
    inventory, missing = compare_to_index(inventory)
        
    iter = inventory.values()
    for i in range(20):
        row = iter.pop().red_record
        print "%f, %f" % (row.spacecraft_altitude, row.emission_angle)
Пример #2
0
def scan_and_output_metadata(meta_filename=DEFAULT_OUTPUT_CENTERPOINT_FILE, theme_filename=DEFAULT_OUTPUT_THEME_FILE):
    inventory = scan_assets()
    inventory, missing = compare_to_index(inventory)
    spotlit_ids = read_spotlight_ids(SPOTLIGHT_ID_FILE)
    output_metadata(meta_filename, inventory, spotlit_products=spotlit_ids)
    output_themes(theme_filename, inventory=inventory)