Ignore:
Timestamp:
Mar 1, 2019 8:56:57 AM (6 years ago)
Author:
maronga
Message:

added output of theta_2m_av and minor revisions in palm_csd

Location:
palm/trunk/SCRIPTS/palm_csd_files
Files:
2 edited

Legend:

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

    r3668 r3773  
    2525# -----------------
    2626# $Id$
     27# Bugfix: conversion to integer required for indexing
     28#
     29# 3668 2019-01-14 12:49:24Z maronga
    2730# Various improvements and bugfixes
    2831#
     
    302305
    303306#  Define center of the tree position inside the local LAD domain
    304    tree_location_x = x[nx/2]
    305    tree_location_y = y[nx/2]
     307   tree_location_x = x[int(nx/2)]
     308   tree_location_y = y[int(nx/2)]
    306309
    307310
  • palm/trunk/SCRIPTS/palm_csd_files/palm_csd_tools.py

    r3726 r3773  
    2525# -----------------
    2626# $Id$
     27# Unspecificed changes
     28#
     29# 3726 2019-02-07 18:22:49Z maronga
    2730# Index bound bugfix
    2831#
     
    9598            for k in range(1,len(k_tmp+1)):
    9699               if k_tmp[k] > array[m,l]:
    97                   array[m,l] = k_tmp[k-1]
     100                  array[m,l] = k_tmp[k-1] + dz * 0.5
    98101                  break
    99102
Note: See TracChangeset for help on using the changeset viewer.