def generate_empty_tile(colormap, output, width, height):
    """
    Generate an empty tile from nodata value in GIBS color map.
    Arguments:
        colormap -- the color map file name
        output -- the output file name
        width -- the width of the empty tile
        height -- the height of the empty tile
    """
    
    print "Generating empty tile"
    print "Empty Tile Location: " + output
    print "Color Map: " + colormap
    print "Width: " + str(width)
    print "Height: " + str(height)
    
    try:
        cmd = 'oe_generate_empty_tile.py -c '+colormap+' -o ' + output + ' -x ' + str(width) + ' -y ' + str(height)
        run_command(cmd, sigevent_url)
    except Exception, e:
        log_sig_err("Error generating empty tile: " + str(e), sigevent_url)

    # check file
    try:
        # Get file size
        empty_size = os.path.getsize(output)
        print "Empty tile size: " + str(empty_size)
    except:
        mssg=str().join(['Cannot read generated empty tile:  ', output])
        log_sig_err(mssg, sigevent_url)
    
    return empty_size
dataset/ETHPy150Open nasa-gibs/onearth/src/layer_config/bin/oe_configure_layer.py/generate_empty_tile/original