Changeset 4749 for palm


Ignore:
Timestamp:
Oct 16, 2020 11:21:27 AM (4 years ago)
Author:
maronga
Message:

bugfix in palm_csd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palm_csd

    r4746 r4749  
    2525# -----------------
    2626# $Id$
     27# Bugfix: processing of patch height faulty for multiple domains
     28#
     29# 4746 2020-10-15 17:16:30Z maronga
    2730# Add support for backyard high vegetation, which is commonly classified as
    2831# short grass
     
    11021105
    11031106#        2D loop in order to avoid memory problems with large arrays
    1104          for ii in range(0,domain_nx[i]):
     1107         for iii in range(0,domain_nx[i]):
    11051108            for jj in range(0,domain_ny[i]):           
    11061109
    1107                lad[0:patch_nz+1,jj,ii] = np.where( (lad[0:patch_nz+1,jj,ii] == fillvalues["tree_data"]),lad_patch[0:patch_nz+1,jj,ii], lad[0:patch_nz+1,jj,ii] )
     1110               lad[0:patch_nz+1,jj,iii] = np.where( (lad[0:patch_nz+1,jj,iii] == fillvalues["tree_data"]),lad_patch[0:patch_nz+1,jj,iii], lad[0:patch_nz+1,jj,iii] )
    11081111
    11091112#     Remove high vegetation wherever it is replaced by a leaf area density. This should effectively remove all high vegetation pixels
Note: See TracChangeset for help on using the changeset viewer.