def get_stn_meta(cls):
    """ Returns a dict of station meta data using historic or realtime file. """
    result = {}
    if cls.meta is None:
        return result
    cls.meta.set_request_info(vrs=cls.meta_vars)
    result = cls.meta.get_request()
    for attr_name in cls.meta_attributes:
        if hasattr(cls.meta.nc, attr_name):
            result[attr_name] = getattr(cls.meta.nc, attr_name)
    return result
