Changeset 4695 for palm/trunk
- Timestamp:
- Sep 24, 2020 11:30:03 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/virtual_measurement_mod.f90
r4671 r4695 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Introduce additional namelist parameters to further customize sampling in the horizontal and 28 ! vertical surroundings of the original observation coordinates 29 ! 30 ! 4671 2020-09-09 20:27:58Z pavelkrc 27 31 ! Implementation of downward facing USM and LSM surfaces 28 32 ! … … 369 373 INTEGER(iwp) :: maximum_name_length = 32 !< maximum name length of station names 370 374 INTEGER(iwp) :: ntimesteps !< number of timesteps defined in NetCDF output file 371 INTEGER(iwp) :: off_pr = 1 !< number of neighboring grid points (in eachdirection) where virtual profile375 INTEGER(iwp) :: off_pr = 1 !< number of neighboring grid points (in horizontal direction) where virtual profile 372 376 !< measurements shall be taken, in addition to the given coordinates in the driver 373 INTEGER(iwp) :: off_ts = 1 !< number of neighboring grid points (in each direction) where virtual timeseries 377 INTEGER(iwp) :: off_pr_z = 0 !< number of additional grid points (in each upwardd and downward direction) where 378 !< virtual profile measurements shall be taken, in addition to the given z coordinates in the driver 379 INTEGER(iwp) :: off_ts = 1 !< number of neighboring grid points (in horizontal direction) where virtual profile 374 380 !< measurements shall be taken, in addition to the given coordinates in the driver 375 INTEGER(iwp) :: off_tr = 1 !< number of neighboring grid points (in each direction) where virtual trajectory 381 INTEGER(iwp) :: off_ts_z = 50 !< number of additional grid points (in each upwardd and downward direction) where 382 !< virtual profile measurements shall be taken, in addition to the given z coordinates in the driver 383 INTEGER(iwp) :: off_tr = 1 !< number of neighboring grid points (in horizontal direction) where virtual profile 376 384 !< measurements shall be taken, in addition to the given coordinates in the driver 385 INTEGER(iwp) :: off_tr_z = 1 !< number of additional grid points (in each upwardd and downward direction) where 386 !< virtual profile measurements shall be taken, in addition to the given z coordinates in the driver 377 387 LOGICAL :: global_attribute = .TRUE. !< flag indicating a global attribute 378 388 LOGICAL :: initial_write_coordinates = .FALSE. !< flag indicating a global attribute … … 875 885 INTEGER(iwp) :: nofill !< dummy for nofill return value (not used) 876 886 INTEGER(iwp) :: ns !< counter variable for number of observation points on subdomain 877 INTEGER(iwp) :: off !< number of surrounding grid points to be sampled 887 INTEGER(iwp) :: off !< number of horizontally surrounding grid points to be sampled 888 INTEGER(iwp) :: off_z !< number of vertically surrounding grid points to be sampled 878 889 INTEGER(iwp) :: t !< running index over number of trajectories 879 890 … … 1118 1129 !-- according to the featureType. 1119 1130 IF ( vmea(l)%timseries_profile ) THEN 1120 off = off_pr 1131 off = off_pr 1132 off_z = off_pr_z 1121 1133 ELSEIF ( vmea(l)%timseries ) THEN 1122 off = off_ts 1134 off = off_ts 1135 off_z = off_ts_z 1123 1136 ELSEIF ( vmea(l)%trajectory ) THEN 1124 off = off_tr 1137 off = off_tr 1138 off_z = off_tr_z 1125 1139 ENDIF 1126 1140 … … 1142 1156 !-- coordinate points, but first check whether the surrounding coordinate points are 1143 1157 !-- on the subdomain. 1144 kl = MERGE( ks-off , ksurf, ks-off >= nzb .AND. ks-off>= ksurf )1145 ku = MERGE( ks+off , nzt, ks+off< nzt+1 )1158 kl = MERGE( ks-off_z, ksurf, ks-off_z >= nzb .AND. ks-off_z >= ksurf ) 1159 ku = MERGE( ks+off_z, nzt, ks+off_z < nzt+1 ) 1146 1160 1147 1161 DO i = is-off, is+off
Note: See TracChangeset
for help on using the changeset viewer.