Esempio n. 1
0
    def save_grids(self):

        #-----------------------------------
        # Save grid stack to a netCDF file
        #---------------------------------------------
        # Note that add_grid() methods will convert
        # var from scalar to grid now, if necessary.
        #---------------------------------------------
        if (self.SAVE_ER_GRIDS):
            ET_mmph = self.ET * self.mps_to_mmph  # (Bolton 28 Aug)
            model_output.add_grid(self, ET_mmph, 'ET', self.time_min)
Esempio n. 2
0
 def save_grids(self):
     
     #-----------------------------------
     # Save grid stack to a netCDF file
     #---------------------------------------------
     # Note that add_grid() methods will convert
     # var from scalar to grid now, if necessary.
     #--------------------------------------------- 
     if (self.SAVE_ER_GRIDS):
         ET_mmph = self.ET * self.mps_to_mmph    # (Bolton 28 Aug)
         model_output.add_grid( self, ET_mmph, 'ET', self.time_min )
Esempio n. 3
0
    def save_grids(self):
     
        if (self.SAVE_MR_GRIDS):
            model_output.add_grid( self, self.SM, 'mr', self.time_min )
            
        if (self.SAVE_HS_GRIDS):
            model_output.add_grid( self, self.h_snow, 'hs', self.time_min )
            
        if (self.SAVE_SW_GRIDS):
            model_output.add_grid( self, self.h_swe, 'sw', self.time_min )

        if (self.SAVE_CC_GRIDS):
            model_output.add_grid( self, self.Ecc, 'cc', self.time_min )
Esempio n. 4
0
    def save_grids(self):
     
        if (self.SAVE_MR_GRIDS):
            model_output.add_grid( self, self.SM, 'mr', self.time_min )
            
        if (self.SAVE_HS_GRIDS):
            model_output.add_grid( self, self.h_snow, 'hs', self.time_min )
            
        if (self.SAVE_SW_GRIDS):
            model_output.add_grid( self, self.h_swe, 'sw', self.time_min )

        if (self.SAVE_CC_GRIDS):
            model_output.add_grid( self, self.Ecc, 'cc', self.time_min )
Esempio n. 5
0
    def save_grids(self):

        #------------------------------------------------------
        # Notes:  The RTG function will work whether argument
        #         is a scalar or already a 2D grid.
        #------------------------------------------------------
        if (self.SAVE_HI_GRIDS):
            model_output.add_grid(self, self.H, 'hi', self.time_min)
            ## model_output.add_grid( self, self.H, 'H' )

        if (self.SAVE_ZI_GRIDS):
            model_output.add_grid(self, self.Zi, 'zi', self.time_min)
            ## model_output.add_grid( self, self.Zi, 'Z' )

        if (self.SAVE_MR_GRIDS):
            MR_mmph = self.MR * self.mps_to_mmph
            model_output.add_grid(self, MR_mmph, 'mr', self.time_min)
Esempio n. 6
0
    def save_grids(self):
        
        #------------------------------------------------------
        # Notes:  The RTG function will work whether argument
        #         is a scalar or already a 2D grid.
        #------------------------------------------------------
        if (self.SAVE_HI_GRIDS):
            model_output.add_grid( self, self.H, 'hi', self.time_min )
            ## model_output.add_grid( self, self.H, 'H' )

        if (self.SAVE_ZI_GRIDS):
            model_output.add_grid( self, self.Zi, 'zi', self.time_min )
            ## model_output.add_grid( self, self.Zi, 'Z' )

        if (self.SAVE_MR_GRIDS):
            MR_mmph = self.MR * self.mps_to_mmph
            model_output.add_grid( self, MR_mmph, 'mr', self.time_min )