Changeset 4250


Ignore:
Timestamp:
Oct 2, 2019 6:26:38 AM (5 years ago)
Author:
maronga
Message:

bugfix in palm_csd (calculation of bridge objects)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palm_csd_files/palm_csd_tools.py

    r4023 r4250  
    2525# -----------------
    2626# $Id: palm_csd_tools.py 3773 2019-03-01 08:56:57Z maronga $
     27# Bugfix: no bridges were generated in buildings_3d at the east and north boundary
     28#
     29# 3773 2019-03-01 08:56:57Z maronga
    2730# Bugfix: missing conversion to integer
    2831#
     
    126129def make_3d_from_bridges_2d(array_3d,array_2d,x,y,dz,width,fill):
    127130     
    128       for l in range(0,len(x)-1):
    129          for m in range(0,len(y)-1):
     131      for l in range(0,len(x)):
     132         for m in range(0,len(y)):
    130133            if array_2d[m,l] != fill:
     134               print(str(l) + "/" + str(m) + "/")
    131135               k_min = max( int((array_2d[m,l] - width)/dz), 0 )
    132136               k_max = int(round(array_2d[m,l]/dz))
Note: See TracChangeset for help on using the changeset viewer.