예제 #1
0
    def open_output_files(self):

        model_output.check_netcdf()
        self.update_outfile_names()

        #--------------------------------------
        # Open new files to write grid stacks
        #--------------------------------------
        if (self.SAVE_ER_GRIDS):
            model_output.open_new_gs_file(self,
                                          self.ET_gs_file,
                                          self.rti,
                                          var_name='ET',
                                          long_name='evaporation_rate',
                                          units_name='mm/hr')
            ### units_name='m/s')

        #--------------------------------------
        # Open new files to write time series
        #--------------------------------------
        IDs = self.outlet_IDs
        if (self.SAVE_ER_PIXELS):
            model_output.open_new_ts_file(self,
                                          self.ER_ts_file,
                                          IDs,
                                          var_name='ET',
                                          long_name='evaporation_rate',
                                          units_name='mm/hr')
    def open_output_files(self):

        #---------------------------------------------------------
        # Note:  Qc (conduction heat flux), from Priestly-Taylor
        #        component, could also be saved.
        #---------------------------------------------------------
        model_output.check_netcdf()
        self.update_outfile_names()

        #--------------------------------------
        # Open new files to write grid stacks
        #--------------------------------------
        if (self.SAVE_ER_GRIDS):
            model_output.open_new_gs_file(self,
                                          self.ET_gs_file,
                                          self.rti,
                                          var_name='ET',
                                          long_name='evaporation_rate',
                                          units_name='mm/hr')
            ### units_name='m/s')

        #--------------------------------------
        # Open new files to write time series
        #--------------------------------------
        IDs = self.outlet_IDs
        if (self.SAVE_ER_PIXELS):
            model_output.open_new_ts_file(self,
                                          self.ER_ts_file,
                                          IDs,
                                          var_name='ET',
                                          long_name='evaporation_rate',
                                          units_name='mm/hr')
예제 #3
0
    def open_output_files(self):

        model_output.check_netcdf()
        self.update_outfile_names()

        #--------------------------------------
        # Open new files to write grid stacks
        #--------------------------------------
        if (self.SAVE_ER_GRIDS):
            model_output.open_new_gs_file( self, self.ET_gs_file, self.rti,
                                           var_name='ET',
                                           long_name='evaporation_rate',
                                           units_name='mm/hr')
                                           ### units_name='m/s')
            
        #--------------------------------------
        # Open new files to write time series
        #--------------------------------------
        IDs = self.outlet_IDs
        if (self.SAVE_ER_PIXELS):
            model_output.open_new_ts_file( self, self.ER_ts_file, IDs,
                                           var_name='ET',
                                           long_name='evaporation_rate',
                                           units_name='mm/hr')
예제 #4
0
    def open_output_files(self):

        model_output.check_netcdf()
        self.update_outfile_names()
        
        #----------------------------------
        # Open files to write grid stacks
        #----------------------------------
        if (self.SAVE_HI_GRIDS):
            model_output.open_new_gs_file( self, self.hi_gs_file, self.rti,
                                           var_name='hi',
                                           long_name='ice_depth',
                                           units_name='m')
            
        if (self.SAVE_ZI_GRIDS):
            model_output.open_new_gs_file( self, self.zi_gs_file, self.rti,
                                           var_name='zi',
                                           long_name='ice_free_surface',
                                           units_name='m')
            
        if (self.SAVE_MR_GRIDS):
            model_output.open_new_gs_file( self, self.mr_gs_file, self.rti,
                                           var_name='mr',
                                           long_name='ice_meltrate',
                                           units_name='mm/hr')
                                               #####  units_name='m/s')
            
        #---------------------------------------
        # Open text files to write time series
        #---------------------------------------
        IDs = self.outlet_IDs
        if (self.SAVE_HI_PIXELS):
            model_output.open_new_ts_file( self, self.hi_ts_file, IDs,
                                           var_name='hi',
                                           long_name='ice_depth',
                                           units_name='m',
                                           time_units='years')
            
        if (self.SAVE_ZI_PIXELS):
            model_output.open_new_ts_file( self, self.zi_ts_file, IDs,
                                           var_name='zi',
                                           long_name='ice_free_surface',
                                           units_name='m',
                                           time_units='years')
            
        if (self.SAVE_MR_PIXELS):
            model_output.open_new_ts_file( self, self.mr_ts_file, IDs,
                                           var_name='mr',
                                           long_name='ice_meltrate',
                                           units_name='mm/hr',
                                           time_units='years')
예제 #5
0
    def open_output_files(self):

        model_output.check_netcdf()
        self.update_outfile_names()
        
        #----------------------------------
        # Open files to write grid stacks
        #----------------------------------
        if (self.SAVE_MR_GRIDS):
            model_output.open_new_gs_file( self, self.mr_gs_file, self.rti,
                                           ## var_name='MR',
                                           var_name='mr',
                                           long_name='snow_meltrate',
                                           units_name='m/s')
            
        if (self.SAVE_HS_GRIDS):
            model_output.open_new_gs_file( self, self.hs_gs_file, self.rti,
                                           ## var_name='h_snow',
                                           var_name='hs',
                                           long_name='snow_depth',
                                           units_name='m')
            
        if (self.SAVE_SW_GRIDS):
            model_output.open_new_gs_file( self, self.sw_gs_file, self.rti,
                                           ## var_name='SWE',
                                           var_name='sw',
                                           long_name='snow_water_equivalent',
                                           units_name='m')
            
        if (self.SAVE_CC_GRIDS):
            model_output.open_new_gs_file( self, self.cc_gs_file, self.rti,
                                           ## var_name='SCC',
                                           var_name='cc',
                                           long_name='snow_cold_content',
                                           units_name='J/m^2')

        #---------------------------------------
        # Open text files to write time series
        #---------------------------------------
        IDs = self.outlet_IDs
        if (self.SAVE_MR_PIXELS):
            model_output.open_new_ts_file( self, self.mr_ts_file, IDs,
                                           ## var_name='MR',
                                           var_name='mr',
                                           long_name='snow_meltrate',
                                           units_name='m/s')

        if (self.SAVE_HS_PIXELS):
            model_output.open_new_ts_file( self, self.hs_ts_file, IDs,
                                           ## var_name='h_snow',
                                           var_name='hs',
                                           long_name='snow_depth',
                                           units_name='m')

        if (self.SAVE_SW_PIXELS):
            model_output.open_new_ts_file( self, self.sw_ts_file, IDs,
                                           ## var_name='SWE',
                                           var_name='sw',
                                           long_name='snow_water_equivalent',
                                           units_name='m')
            
        if (self.SAVE_CC_PIXELS):
            model_output.open_new_ts_file( self, self.cc_ts_file, IDs,
                                           ## var_name='SCC',
                                           var_name='cc',
                                           long_name='snow_cold_content',
                                           units_name='J/m^2')
예제 #6
0
    def open_output_files(self):

        model_output.check_netcdf()
        self.update_outfile_names()
        
        #----------------------------------
        # Open files to write grid stacks
        #----------------------------------
        if (self.SAVE_MR_GRIDS):
            model_output.open_new_gs_file( self, self.mr_gs_file, self.rti,
                                           ## var_name='MR',
                                           var_name='mr',
                                           long_name='snow_meltrate',
                                           units_name='m/s')
            
        if (self.SAVE_HS_GRIDS):
            model_output.open_new_gs_file( self, self.hs_gs_file, self.rti,
                                           ## var_name='h_snow',
                                           var_name='hs',
                                           long_name='snow_depth',
                                           units_name='m')
            
        if (self.SAVE_SW_GRIDS):
            model_output.open_new_gs_file( self, self.sw_gs_file, self.rti,
                                           ## var_name='SWE',
                                           var_name='sw',
                                           long_name='snow_water_equivalent',
                                           units_name='m')
            
        if (self.SAVE_CC_GRIDS):
            model_output.open_new_gs_file( self, self.cc_gs_file, self.rti,
                                           ## var_name='SCC',
                                           var_name='cc',
                                           long_name='snow_cold_content',
                                           units_name='J/m^2')

        #---------------------------------------
        # Open text files to write time series
        #---------------------------------------
        IDs = self.outlet_IDs
        if (self.SAVE_MR_PIXELS):
            model_output.open_new_ts_file( self, self.mr_ts_file, IDs,
                                           ## var_name='MR',
                                           var_name='mr',
                                           long_name='snow_meltrate',
                                           units_name='m/s')

        if (self.SAVE_HS_PIXELS):
            model_output.open_new_ts_file( self, self.hs_ts_file, IDs,
                                           ## var_name='h_snow',
                                           var_name='hs',
                                           long_name='snow_depth',
                                           units_name='m')

        if (self.SAVE_SW_PIXELS):
            model_output.open_new_ts_file( self, self.sw_ts_file, IDs,
                                           ## var_name='SWE',
                                           var_name='sw',
                                           long_name='snow_water_equivalent',
                                           units_name='m')
            
        if (self.SAVE_CC_PIXELS):
            model_output.open_new_ts_file( self, self.cc_ts_file, IDs,
                                           ## var_name='SCC',
                                           var_name='cc',
                                           long_name='snow_cold_content',
                                           units_name='J/m^2')
예제 #7
0
    def open_output_files(self):

        model_output.check_netcdf()
        self.update_outfile_names()

        #----------------------------------
        # Open files to write grid stacks
        #----------------------------------
        if (self.SAVE_HI_GRIDS):
            model_output.open_new_gs_file(self,
                                          self.hi_gs_file,
                                          self.rti,
                                          var_name='hi',
                                          long_name='ice_depth',
                                          units_name='m')

        if (self.SAVE_ZI_GRIDS):
            model_output.open_new_gs_file(self,
                                          self.zi_gs_file,
                                          self.rti,
                                          var_name='zi',
                                          long_name='ice_free_surface',
                                          units_name='m')

        if (self.SAVE_MR_GRIDS):
            model_output.open_new_gs_file(self,
                                          self.mr_gs_file,
                                          self.rti,
                                          var_name='mr',
                                          long_name='ice_meltrate',
                                          units_name='mm/hr')
            #####  units_name='m/s')

        #---------------------------------------
        # Open text files to write time series
        #---------------------------------------
        IDs = self.outlet_IDs
        if (self.SAVE_HI_PIXELS):
            model_output.open_new_ts_file(self,
                                          self.hi_ts_file,
                                          IDs,
                                          var_name='hi',
                                          long_name='ice_depth',
                                          units_name='m',
                                          time_units='years')

        if (self.SAVE_ZI_PIXELS):
            model_output.open_new_ts_file(self,
                                          self.zi_ts_file,
                                          IDs,
                                          var_name='zi',
                                          long_name='ice_free_surface',
                                          units_name='m',
                                          time_units='years')

        if (self.SAVE_MR_PIXELS):
            model_output.open_new_ts_file(self,
                                          self.mr_ts_file,
                                          IDs,
                                          var_name='mr',
                                          long_name='ice_meltrate',
                                          units_name='mm/hr',
                                          time_units='years')