def writeParamFile(self, nodes=3, time_step=24, save_state="", init_state=False, state_file="", save_state_to_db=False):
        db = dbio.connect(self.dbname)
        cur = db.cursor()
        cur.execute(
            'select rootzones from vic.input where resolution=%f;' % self.res)
        root_zones = cur.fetchone()[0]
        cur.close()
        db.close()
        # self.nlayers = nlayer
        fout = open(self.model_path + '/global.txt', 'w')
        fout.write("NLAYER\t{0:d}\n".format(self.nlayers))
        fout.write("NODES\t{0:d}\n".format(nodes))
        if time_step < 24:
            fout.write("TIME_STEP\t{0:d}\nSNOW_STEP\t{1:d}\n".format(
                time_step, time_step))
            fout.write("FULL_ENERGY\tTRUE\nFROZEN_SOIL\tTRUE\n")
        else:
            fout.write("TIME_STEP\t24\nSNOW_STEP\t3\n")
            fout.write("FULL_ENERGY\tFALSE\nFROZEN_SOIL\tFALSE\n")
        fout.write("STARTYEAR\t{0:04d}\n".format(self.startyear))
        fout.write("STARTMONTH\t{0:02d}\n".format(self.startmonth))
        fout.write("STARTDAY\t{0:02d}\n".format(self.startday))
        fout.write("ENDYEAR\t{0:04d}\n".format(self.endyear))
        fout.write("ENDMONTH\t{0:02d}\n".format(self.endmonth))
        fout.write("ENDDAY\t{0:02d}\n".format(self.endday))
        fout.write("IMPLICIT\tFALSE\nTFALLBACK\tTRUE\n")
        fout.write("SNOW_ALBEDO\tUSACE\nSNOW_DENSITY\tDENS_SNTHRM\n")
        fout.write("BLOWING\tFALSE\nCOMPUTE_TREELINE\tFALSE\n")
        fout.write("DIST_PRCP\tFALSE\nPREC_EXPT\t0.6\nCORRPREC\tFALSE\n")
        fout.write("MAX_SNOW_TEMP\t0.5\nMIN_RAIN_TEMP\t-0.5\n")
        fout.write("MIN_WIND_SPEED\t0.1\nAERO_RESIST_CANSNOW\tAR_406_FULL\n")
        if bool(state_file):
            statefile = state_file
        elif init_state:
            statefile = self.stateFile()
        else:
            statefile = None
        if statefile:
            fout.write("INIT_STATE\t{0:s}\n".format(statefile))
        if bool(save_state):
            if isinstance(save_state, str):
                if not os.path.isdir(save_state):
                    os.mkdir(save_state)
                fout.write("STATENAME\t{0}/vic.state\n".format(save_state))
            else:
                fout.write(
                    "STATENAME\t{0}/vic.state\n".format(self.model_path))
            fout.write("STATEYEAR\t{0:04d}\n".format(self.endyear))
            fout.write("STATEMONTH\t{0:02d}\n".format(self.endmonth))
            fout.write("STATEDAY\t{0:02d}\n".format(self.endday))
            self.statefile = "vic.state_{0:04d}{1:02d}{2:02d}".format(
                self.endyear, self.endmonth, self.endday)
            if save_state_to_db:
                self._stateToDb(save_state)
        fout.write("BINARY_STATE_FILE\tFALSE\n")
        fout.write(
            "FORCING1\t{0:s}/data_\n".format(self.model_path + "/forcings"))
        fout.write("FORCE_FORMAT\tASCII\nFORCE_ENDIAN\tLITTLE\nN_TYPES\t4\n")
        fout.write("FORCE_TYPE\tPREC\n")
        fout.write("FORCE_TYPE\tTMAX\n")
        fout.write("FORCE_TYPE\tTMIN\n")
        fout.write("FORCE_TYPE\tWIND\n")
        fout.write("FORCE_DT\t24\n")
        fout.write("FORCEYEAR\t{0:04d}\n".format(self.startyear))
        fout.write("FORCEMONTH\t{0:02d}\n".format(self.startmonth))
        fout.write("FORCEDAY\t{0:02d}\n".format(self.startday))
        fout.write("FORCEHOUR\t0\n")
        fout.write("GRID_DECIMAL\t{0:d}\n".format(self.grid_decimal))
        fout.write("WIND_H\t10.0\nMEASURE_H\t2.0\nALMA_INPUT\tFALSE\n")
        fout.write("SOIL\t{0:s}\n".format(self.model_path + "/soil.txt"))
        veglib, vegparam, snowbands = self.paramFromDB()
        fout.write("VEGLIB\t{0}/{1}\n".format(rpath.data, veglib))
        fout.write("VEGPARAM\t{0}/{1}\n".format(rpath.data, vegparam))
        fout.write("VEGPARAM_LAI\tTRUE\n")
        fout.write("ROOT_ZONES\t{0:d}\n".format(root_zones))
        fout.write("LAI_SRC\tLAI_FROM_VEGPARAM\n")
        nbands = self._getSnowbands(snowbands)
        fout.write(
            "SNOW_BAND\t{0:d}\t{1}/{2}\n".format(nbands, rpath.data, snowbands))
        fout.write("RESULT_DIR\t{0}/output\n".format(self.model_path))
        fout.write("OUT_STEP\t24\n")
        fout.write("BINARY_OUTPUT\tFALSE\n")
        fout.write("MOISTFRACT\tFALSE\n")
        fout.write(
            "COMPRESS\tFALSE\nALMA_OUTPUT\tFALSE\nPTR_HEADER\tFALSE\nPRT_SNOW_BAND\tFALSE\n")
        fout.write(vicoutput.template(["eb", "wb", "sub", "sur", "csp"]))
        fout.close()
The bitness of python running inside Maya as an int.
dataset/ETHPy150Open nasa/RHEAS/src/vic/vic.py/VIC.writeParamFile--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/versions.py/bitness