def METHOD_NAME(dir_path, platepar, mask=None, area_ht=100000, side_points=10, plot_station=True):
    """ Given a platepar file and a mask file, make a KML file outlining the camera FOV.
    Arguments:
        dir_path: [str] Path where the KML file will be saved.
        platepar: [Platepar object]
    Keyword arguments:
        mask: [Mask object] Mask object, None by default.
        area_ht: [float] Height in meters of the computed area.
        side_points: [int] How many points to use to evaluate the FOV on seach side of the image. Normalized
            to the longest side.
        plot_station: [bool] Plot the location of the station. True by default.
    Return:
        kml_path: [str] Path to the saved KML file.
    """
    # Find lat/lon/elev describing the view area
    polygon_sides = fovArea(platepar, mask, area_ht, side_points)
    # Make longitued in the same wrap region
    lon_list = []
    for side in polygon_sides:
        side = np.array(side)
        lat, lon, elev = side.T
        lon_list += lon.tolist()
    # Unwrap longitudes
    lon_list = np.degrees(np.unwrap(2*np.radians(lon_list))/2)
    # Assign longitudes back to the proper sides
    prev_len = 0
    polygon_sides_lon_wrapped = []
    for side in polygon_sides:
        side = np.array(side)
        lat, _, elev = side.T
        # Extract the wrapped longitude
        lon = lon_list[prev_len:prev_len + len(lat)]
        side = np.c_[lat, lon, elev]
        polygon_sides_lon_wrapped.append(side.tolist())
        prev_len += len(lat)
    polygon_sides = polygon_sides_lon_wrapped
    # List of polygons to plot
    polygon_list = []
    # Join points from all sides to create the collection area at the given height
    area_vertices = []
    for side in polygon_sides:
        for side_p in side:
            area_vertices.append(side_p)
    polygon_list.append(area_vertices)
    # If the station is plotted, connect every side to the station
    if plot_station:
        for side in polygon_sides:
            side_vertices = []
            # Add coordinates of the station (first point)
            side_vertices.append([platepar.lat, platepar.lon, platepar.elev])
            for side_p in side:
                side_vertices.append(side_p)        
            # Add coordinates of the station (last point)
            side_vertices.append([platepar.lat, platepar.lon, platepar.elev])
            polygon_list.append(list(side_vertices))
    ### MAKE A KML ###
    kml = "<?xml version='1.0' encoding='UTF-8'?><kml xmlns='http://earth.google.com/kml/2.1'><Folder><name>{:s}</name><open>1</open><Placemark id='{:s}'>".format(platepar.station_code, platepar.station_code) \
        + """
                 <Style id='camera'>
                  <LineStyle>
                <width>1.5</width>
                  </LineStyle>
                  <PolyStyle>
                <color>40000800</color>
                  </PolyStyle>
                </Style>
                <styleUrl>#camera</styleUrl>\n""" \
        + "<name>{:s}</name>\n".format(platepar.station_code) \
        + "                <description>Area height: {:d} km\n".format(int(area_ht/1000))
    # Only add station info if the station is plotted
    if plot_station:
        kml += "Longitude: {:10.6f} deg\n".format(platepar.lat) \
             + "Latitude:  {:11.6f} deg\n".format(platepar.lon) \
             + "Altitude: {:.2f} m\n".format(platepar.elev) \
    kml += """
    </description>
    <MultiGeometry>"""
    ### Plot all polygons ###
    for polygon_points in polygon_list:
        kml += \