tes = dates
    os.chdir(self.workpath)
    for date in tqdm(self.dates):
        start_time = self.get_hydate(date)
        outfile = (
            self.outdir
            + self.met_type
            + &#34;.&#34;
            + str(self.height)
            + &#34;.&#34;
            + self.get_out_date(date)
        )
        if self.met_type == &#34;ncep_old&#34;:
            metfiles = self.get_old_ncep_metfiles(date)

        if self.met_type == &#34;ncep_new&#34;:
            metfiles = self.get_new_nce