code: def getGridByCard(self, gssha_card_name):
          
          with tmp_chdir(self.project_directory):
              if gssha_card_name not in (self.INPUT_MAPS+self.WMS_DATASETS):
                  raise ValueError("Card {0} not found in valid grid cards ..."
                                   .format(gssha_card_name))
  
              gssha_grid_card = self.getCard(gssha_card_name)
              if gssha_grid_card is None:
                  raise ValueError("{0} card not found ...".format(gssha_card_name))
  
              gssha_pro_card = self.getCard("#PROJECTION_FILE")
              if gssha_pro_card is None:
                  raise ValueError("#PROJECTION_FILE card not found ...")
  
              # return gssha grid
              return GDALGrid(gssha_grid_card.value.strip('"').strip("'"),
                              gssha_pro_card.value.strip('"').strip("'"))
docs: Returns GDALGrid object of GSSHA grid
  
          Paramters:
              gssha_card_name(str): Name of GSSHA project card for grid.
  
          Returns:
              GDALGrid