Exemplo n.º 1
0
    def open_input_files(self):
        # this function will work only if filename is not empty

        self.T_air_file = self.in_directory + self.T_air_file
        self.A_air_file = self.in_directory + self.A_air_file
        self.h_snow_file = self.in_directory + self.h_snow_file
        self.rho_snow_file = self.in_directory + self.rho_snow_file
        self.vwc_H2O_file = self.in_directory + self.vwc_H2O_file
        self.Hvgf_file = self.in_directory + self.Hvgf_file
        self.Hvgt_file = self.in_directory + self.Hvgt_file
        self.Dvf_file = self.in_directory + self.Dvf_file
        self.Dvt_file = self.in_directory + self.Dvt_file
        #        self.lat_file         = self.in_directory + self.lat_file
        #        self.lon_file         = self.in_directory + self.lon_file

        self.T_air_unit = model_input.open_file(self.T_air_type,
                                                self.T_air_file)
        self.A_air_unit = model_input.open_file(self.A_air_type,
                                                self.A_air_file)
        self.h_snow_unit = model_input.open_file(self.h_snow_type,
                                                 self.h_snow_file)
        self.rho_snow_unit = model_input.open_file(self.rho_snow_type,
                                                   self.rho_snow_file)
        self.vwc_H2O_unit = model_input.open_file(self.vwc_H2O_type,
                                                  self.vwc_H2O_file)
        self.Hvgf_unit = model_input.open_file(self.Hvgf_type, self.Hvgf_file)
        self.Hvgt_unit = model_input.open_file(self.Hvgt_type, self.Hvgt_file)
        self.Dvf_unit = model_input.open_file(self.Dvf_type, self.Dvf_file)
        self.Dvt_unit = model_input.open_file(self.Dvt_type, self.Dvt_file)
Exemplo n.º 2
0
    def open_input_files(self):
        # this function will work only if filename is not empty
        # I am temporarily comment T_air since in this case it is T_air_minmax
        self.T_air_file       = self.permafrost_dir + self.in_directory + self.T_air_file
        self.A_air_file       = self.permafrost_dir + self.in_directory + self.A_air_file
        self.h_snow_file      = self.permafrost_dir + self.in_directory + self.h_snow_file
        self.rho_snow_file    = self.permafrost_dir + self.in_directory + self.rho_snow_file
        self.vwc_H2O_file     = self.permafrost_dir + self.in_directory + self.vwc_H2O_file
        self.Hvgf_file        = self.permafrost_dir + self.in_directory + self.Hvgf_file
        self.Hvgt_file        = self.permafrost_dir + self.in_directory + self.Hvgt_file
        self.Dvf_file         = self.permafrost_dir + self.in_directory + self.Dvf_file
        self.Dvt_file         = self.permafrost_dir + self.in_directory + self.Dvt_file

        self.T_air_unit       = model_input.open_file(self.T_air_type,  self.T_air_file)
        self.A_air_unit       = model_input.open_file(self.A_air_type,  self.A_air_file)
        self.h_snow_unit      = model_input.open_file(self.h_snow_type,  self.h_snow_file)
        self.rho_snow_unit    = model_input.open_file(self.rho_snow_type,  self.rho_snow_file)
        self.vwc_H2O_unit     = model_input.open_file(self.vwc_H2O_type,  self.vwc_H2O_file)
        self.Hvgf_unit        = model_input.open_file(self.Hvgf_type,  self.Hvgf_file)
        self.Hvgt_unit        = model_input.open_file(self.Hvgt_type,  self.Hvgt_file)
        self.Dvf_unit         = model_input.open_file(self.Dvf_type,  self.Dvf_file)
        self.Dvt_unit         = model_input.open_file(self.Dvt_type,  self.Dvt_file)

        # This isn't exactly "opening an input file", but it is an init
        self.year = self.start_year
Exemplo n.º 3
0
    def open_input_files(self):
        # this function will work only if filename is not empty
        # I am temporarily comment T_air since in this case it is T_air_minmax
        self.T_air_file = self.permafrost_dir + self.in_directory + self.T_air_file
        self.A_air_file = self.permafrost_dir + self.in_directory + self.A_air_file
        self.h_snow_file = self.permafrost_dir + self.in_directory + self.h_snow_file
        self.rho_snow_file = self.permafrost_dir + self.in_directory + self.rho_snow_file
        self.vwc_H2O_file = self.permafrost_dir + self.in_directory + self.vwc_H2O_file
        self.Hvgf_file = self.permafrost_dir + self.in_directory + self.Hvgf_file
        self.Hvgt_file = self.permafrost_dir + self.in_directory + self.Hvgt_file
        self.Dvf_file = self.permafrost_dir + self.in_directory + self.Dvf_file
        self.Dvt_file = self.permafrost_dir + self.in_directory + self.Dvt_file

        self.T_air_unit = model_input.open_file(self.T_air_type,
                                                self.T_air_file)
        self.A_air_unit = model_input.open_file(self.A_air_type,
                                                self.A_air_file)
        self.h_snow_unit = model_input.open_file(self.h_snow_type,
                                                 self.h_snow_file)
        self.rho_snow_unit = model_input.open_file(self.rho_snow_type,
                                                   self.rho_snow_file)
        self.vwc_H2O_unit = model_input.open_file(self.vwc_H2O_type,
                                                  self.vwc_H2O_file)
        self.Hvgf_unit = model_input.open_file(self.Hvgf_type, self.Hvgf_file)
        self.Hvgt_unit = model_input.open_file(self.Hvgt_type, self.Hvgt_file)
        self.Dvf_unit = model_input.open_file(self.Dvf_type, self.Dvf_file)
        self.Dvt_unit = model_input.open_file(self.Dvt_type, self.Dvt_file)

        # This isn't exactly "opening an input file", but it is an init
        self.year = self.start_year
Exemplo n.º 4
0
    def open_input_files(self):
		# this function will work only if filename is not empty
        # I am temporarily comment T_air since in this case it is T_air_minmax
        self.T_air_file       = self.in_directory + self.T_air_file
      	self.A_air_file       = self.in_directory + self.A_air_file
        self.sn_depth_file 	  = self.in_directory + self.sn_depth_file
       	self.rho_snow_file    = self.in_directory + self.rho_snow_file
        self.Wvol_file     	  = self.in_directory + self.Wvol_file


        self.T_air_unit       = model_input.open_file(self.T_air_type,  self.T_air_file)
        self.A_air_unit       = model_input.open_file(self.A_air_type,  self.A_air_file)
        self.sn_depth_unit    = model_input.open_file(self.sn_depth_type,  self.sn_depth_file)
        self.rho_snow_unit    = model_input.open_file(self.rho_snow_type,  self.rho_snow_file)
        self.Wvol_unit        = model_input.open_file(self.Wvol_type,  self.Wvol_file)
Exemplo n.º 5
0
    def open_input_files(self):
        # this function will work only if filename is not empty
        # I am temporarily comment T_air since in this case it is T_air_minmax
        self.T_air_file = self.in_directory + self.T_air_file
        self.A_air_file = self.in_directory + self.A_air_file
        self.sn_depth_file = self.in_directory + self.sn_depth_file
        self.rho_snow_file = self.in_directory + self.rho_snow_file
        self.Wvol_file = self.in_directory + self.Wvol_file

        self.T_air_unit = model_input.open_file(self.T_air_type,
                                                self.T_air_file)
        self.A_air_unit = model_input.open_file(self.A_air_type,
                                                self.A_air_file)
        self.sn_depth_unit = model_input.open_file(self.sn_depth_type,
                                                   self.sn_depth_file)
        self.rho_snow_unit = model_input.open_file(self.rho_snow_type,
                                                   self.rho_snow_file)
        self.Wvol_unit = model_input.open_file(self.Wvol_type, self.Wvol_file)
Exemplo n.º 6
0
    def open_input_files(self):
        # this function will work only if filename is not empty
    
        self.T_air_file       = self.in_directory + self.T_air_file
        self.A_air_file       = self.in_directory + self.A_air_file
        self.h_snow_file      = self.in_directory + self.h_snow_file
        self.rho_snow_file    = self.in_directory + self.rho_snow_file
        self.vwc_H2O_file     = self.in_directory + self.vwc_H2O_file
        self.Hvgf_file        = self.in_directory + self.Hvgf_file
        self.Hvgt_file        = self.in_directory + self.Hvgt_file
        self.Dvf_file         = self.in_directory + self.Dvf_file
        self.Dvt_file         = self.in_directory + self.Dvt_file
#        self.lat_file         = self.in_directory + self.lat_file
#        self.lon_file         = self.in_directory + self.lon_file

        self.T_air_unit       = model_input.open_file(self.T_air_type,  self.T_air_file)
        self.A_air_unit       = model_input.open_file(self.A_air_type,  self.A_air_file)
        self.h_snow_unit      = model_input.open_file(self.h_snow_type,  self.h_snow_file)
        self.rho_snow_unit    = model_input.open_file(self.rho_snow_type,  self.rho_snow_file)
        self.vwc_H2O_unit     = model_input.open_file(self.vwc_H2O_type,  self.vwc_H2O_file)
        self.Hvgf_unit        = model_input.open_file(self.Hvgf_type,  self.Hvgf_file)
        self.Hvgt_unit        = model_input.open_file(self.Hvgt_type,  self.Hvgt_file)
        self.Dvf_unit         = model_input.open_file(self.Dvf_type,  self.Dvf_file)
        self.Dvt_unit         = model_input.open_file(self.Dvt_type,  self.Dvt_file)