@classmethod<EOL><INDENT>def from_stat_file(cls, statfile, timestep=<NUM_LIT:1>, is_leap_year=False):<DEDENT>
stat = STAT(statfile)<EOL>def check_missing(opt_data, data_name):<EOL><INDENT>if opt_data == []:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>for i, x in enumerate(opt_data):<EOL><INDENT>if x is None:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'.format(<EOL>data_name, i)<EOL>)<EOL><DEDENT><DEDENT><DEDENT>check_missing(stat.monthly_tau_beam, '<STR_LIT>')<EOL>check_missing(stat.monthly_tau_diffuse, '<STR_LIT>')<EOL>return cls.from_ashrae_revised_clear_sky(stat.location, stat.monthly_tau_beam,<EOL>stat.monthly_tau_diffuse, timestep,<EOL>is_leap_year)<EOL>
Create an ASHRAE Revised Clear Sky wea object from the monthly sky
        optical depths in a .stat file.

        Args:
            statfile: Full path to the .stat file.
            timestep: An optional integer to set the number of time steps per
                hour. Default is 1 for one value per hour.
            is_leap_year: A boolean to indicate if values are representing a leap year.
                Default is False.