Changeset 2318 in lmdz_wrf
- Timestamp:
- Feb 5, 2019, 4:18:20 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/module_scientific.f90
r2317 r2318 5642 5642 END SUBROUTINE spaceweightstats 5643 5643 5644 SUBROUTINE multi_spaceweightstats_in1DRKno_slc3v3(varin, Ngridsin, gridsin, percentages, varout,&5645 di1, ds1, ds2, ds3, maxNgridsin)5644 SUBROUTINE multi_spaceweightstats_in1DRKno_slc3v3(varin, idv, Ngridsin, gridsin, percentages, & 5645 varout, di1, ds1, ds2, ds3, maxNgridsin) 5646 5646 ! Subroutine to compute an spatial statistics value from a 1D RK matrix without running one into a 5647 5647 ! matrix of 3-variables slices of rank 3 using spatial weights … … 5649 5649 IMPLICIT NONE 5650 5650 5651 INTEGER, INTENT(in) :: di1, ds1, ds2, ds35651 INTEGER, INTENT(in) :: di1, idv, ds1, ds2, ds3 5652 5652 INTEGER, INTENT(in) :: maxNgridsin 5653 5653 INTEGER, DIMENSION(ds1,ds2,ds3), INTENT(in) :: Ngridsin … … 5676 5676 ! maxNgridsin: maximum number of grid points from the 3D matrix in any slice 5677 5677 ! varin: 1D RK variable to be used 5678 ! idv: which dimension of the sliced grids coincide with the dimension of 1D varin 5678 5679 ! Ngridsin: number of grids from 3D RK matrix for each slice 5679 5680 ! gridsin: coordinates of grids of the 3D RK matrix B to matrix of slices … … 5720 5721 ! Getting the values 5721 5722 DO iv=1, Nin 5722 i1 = gin(iv, 1)5723 i1 = gin(iv,idv) 5723 5724 vin(iv) = varin(i1) 5724 5725 END DO … … 5747 5748 varout(s1,s2,s3,7) = Nin*1. 5748 5749 ELSE 5749 i1 = gridsin(s1,s2,s3,1, 1)5750 i1 = gridsin(s1,s2,s3,1,idv) 5750 5751 varout(s1,s2,s3,1) = varin(i1) 5751 5752 varout(s1,s2,s3,2) = varin(i1)
Note: See TracChangeset
for help on using the changeset viewer.