Wrapper for wrf_vintrp. Located in wrf_vinterp.f90.
(field, pres, tk, qvp, ght, terrain, sfp, smsfp,
vcarray, interp_levels, icase, extrap, vcor, logp,
missing, outview=None)
| 897 | @cast_type(arg_idxs=(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)) |
| 898 | @extract_and_transpose() |
| 899 | def _vintrp(field, pres, tk, qvp, ght, terrain, sfp, smsfp, |
| 900 | vcarray, interp_levels, icase, extrap, vcor, logp, |
| 901 | missing, outview=None): |
| 902 | """Wrapper for wrf_vintrp. |
| 903 | |
| 904 | Located in wrf_vinterp.f90. |
| 905 | |
| 906 | """ |
| 907 | if outview is None: |
| 908 | outdims = field.shape[0:2] + interp_levels.shape |
| 909 | outview = np.empty(outdims, field.dtype, order="F") |
| 910 | |
| 911 | tempout = np.zeros(field.shape[0:2], np.float64, order="F") |
| 912 | |
| 913 | errstat = np.array(0) |
| 914 | errmsg = np.zeros(Constants.ERRLEN, "c") |
| 915 | |
| 916 | result = wrf_vintrp(field, |
| 917 | outview, |
| 918 | pres, |
| 919 | tk, |
| 920 | qvp, |
| 921 | ght, |
| 922 | terrain, |
| 923 | sfp, |
| 924 | smsfp, |
| 925 | vcarray, |
| 926 | interp_levels, |
| 927 | icase, |
| 928 | extrap, |
| 929 | vcor, |
| 930 | logp, |
| 931 | tempout, |
| 932 | missing, |
| 933 | errstat, |
| 934 | errmsg) |
| 935 | |
| 936 | if int(errstat) != 0: |
| 937 | raise DiagnosticError("".join(npbytes_to_str(errmsg)).strip()) |
| 938 | |
| 939 | return result |
| 940 | |
| 941 | |
| 942 | @check_args(0, 2, (2, 2)) |
no test coverage detected