Ignore:
Timestamp:
Jun 12, 2019 6:33:33 AM (2 years ago)
Author:
maronga
Message:

minor changes in palm_csd

File:
1 edited

Legend:

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

    r3944 r4021  
    2020# Current revisions:
    2121# -----------------
    22 #
     22# Bugfix: missing conversion to integer
     23#
    2324#
    2425# Former revisions:
    2526# -----------------
    2627# $Id: palm_csd_tools.py 3773 2019-03-01 08:56:57Z maronga $
    27 # Unspecificed changes
     28# Unspecified changes
    2829#
    2930# 3726 2019-02-07 18:22:49Z maronga
     
    125126         for m in range(0,len(y)-1):
    126127            if array_2d[m,l] != fill:
    127                k_min = max( int(array_2d[m,l] - width)/dz, 0 )
     128               k_min = max( int((array_2d[m,l] - width)/dz), 0 )
    128129               k_max = int(round(array_2d[m,l]/dz))
    129130               array_3d[k_min:k_max+1,m,l] = 1
Note: See TracChangeset for help on using the changeset viewer.