def get_raster_from_json(scenario, raster_code):
    """return raster json object from scenario"""
    for result in scenario['result_set']:
        if result['result_type']['code'] == raster_code:
            return result['raster']
