def extract_ppty(filename, meter_name):
    """
        This function parses out the given filename as a string to determine the meter name and the measurement
        channel/type contained in the file

        Parameters
        ----------
        filename :
            `filename` is the NetCDF format meter channel file whose name contains information such as location, date,
            meter type, measurement channel/type and sampling frequency. An example filename is:
            'PokerFlatResearchRange-PokerFlat-PkFltM1AntEaDel@2018-07-02T081007Z@PT23H@PT146F.nc'
        meter_name :
            `meter_name` is a list containing the names of each of the meters at pokerflats

        Returns
        -------
        meter : string
            `meter` is the meter name of the NetCDF format file given.
        channel : string
            `channel` is the measurement type contained in the NetCDF format file given
        """
    filename_split_1 = filename.split('@')
    filename_split_2 = filename_split_1[0].split('-')
    meter_channel = filename_split_2[-1]
    for name in meter_name:
        if meter_channel.startswith(name):
            n_name = len(name)
            meter = meter_channel[:n_name]
            channel = meter_channel[n_name:]
    return meter, channel
