Changeset 4311


Ignore:
Timestamp:
Nov 27, 2019 11:51:43 AM (5 years ago)
Author:
maronga
Message:

bugfix in palm_csd regarding green roofs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palm_csd

    r4149 r4311  
    2525# -----------------
    2626# $Id$
     27# Bugfix: green roofs were assigned to all available roofs when switched on
     28#
     29# 4149 2019-08-08 14:02:18Z suehring
    2730# Bugfix, nbuilding_pars was 1 element to small
    2831#
     
    899902
    900903#     assign leaf area index for vegetation on roofs
    901       building_pars[4,:,:] = np.where( ( buildings_2d != fillvalues["buildings_2d"] ) & ( green_roofs >= 0.5 ),settings_lai_roof_intensive,fillvalues["building_pars"])
    902       building_pars[4,:,:] = np.where( ( buildings_2d != fillvalues["buildings_2d"] ) & ( green_roofs < 0.5 ),settings_lai_roof_extensive,building_pars[4,:,:])
     904      building_pars[4,:,:] = np.where( ( building_pars[3,:,:] != fillvalues["building_pars"] ) & ( green_roofs >= 0.5 ),settings_lai_roof_intensive,fillvalues["building_pars"])
     905      building_pars[4,:,:] = np.where( ( building_pars[3,:,:] != fillvalues["building_pars"] ) & ( green_roofs < 0.5 ),settings_lai_roof_extensive,building_pars[4,:,:])
    903906   
    904907   
Note: See TracChangeset for help on using the changeset viewer.