Hi,
There’s not enough information here. I have your script, but I have no idea what the variables being passed to “int2p_n_Wrap” look like. It’s important to look at your data when you get errors like this.
You need to add the following lines before you call int2p_n_Wrap:
printVarSummary(pin)
printVarSummary(tin)
You are passing n=1, tells int2p_n_Wrap to expect that the second leftmost dimension of pin is the level dimension. Is that the case? Also, the error indicates that tin and pin are multi-dimensional, and the erreor message (and documentation of int2p_n_Wrap) states that these two arrays must have the same dimensionality in this case.
Use the printVarSummary output to debug your code and determine if you are calling int2p_n_Wrap correctly.
—Mary
On Jun 4, 2014, at 6:13 AM, jagan TNAU <jagan@tnau.ac.in> wrote:
> Dear Users,
>
> I am trying to interpolate the HadGEM2-ES outputs form model level to pressure level. I have used code (pl see attachment) provided by friends and I got the following error in using int2p_n_Wrap.
>
> -------------------------------------------
> fatal:int2p_n: If xin and pin have the same number of dimensions, then they must be the same dimension sizes
> fatal:Execute: Error occurred at or near line 11617 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
> fatal:Execute: Error occurred at or near line 66 in file interp.ncl
> -------------------------------------------
>
> Kindly suggest corrections.
>
>
> --
> With regards
>
> Dr.R.Jagannathan
> Professor of Agronomy
> Agro Climate Research Centre
> Tamil Nadu Agricultural University
> Coimbatore - 641 003 India
>
> PHONE: Mob: +91 94438 89891
>
> DO NOT PRINT THIS E-MAIL UNLESS NECESSARY. THE ENVIRONMENT CONCERNS US ALL.
> <interp.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jun 04 21:06:35 2014
This archive was generated by hypermail 2.1.8 : Sat Jun 07 2014 - 11:03:12 MDT