def save(self, saveto, args, initialize=True, skipsave=0):
        if saveto == "db":
            output = self.readOutput(args)
            for var in output:
                if var != "date":
                    self.writeToDB(output[var], output[
                                   "date"], "{0}".format(var), initialize, skipsave=skipsave)
        else:
            if initialize:
                if os.path.isdir(saveto):
                    shutil.rmtree(saveto)
            #     elif os.path.isfile(saveto):
            #         os.remove(saveto)
            # os.makedirs(saveto)
            # shutil.move(self.model_path+"/output", saveto)
            # shutil.move(self.model_path+"/forcings", saveto)
            shutil.copytree(self.model_path, saveto,
                            ignore=shutil.ignore_patterns("*.txt"))
Reads and saves selected output data variables into the database or a user-defined directory.
dataset/ETHPy150Open nasa/RHEAS/src/vic/vic.py/VIC.save