Re: mall bug in linint2_wrap?? p.s.

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 29 2011 - 14:59:21 MST

Yes ... there is.

[1] Under the hood, I wrote the code to switch the case.
     There was/is a reason for this. Basically, early-on people
     were getting confused when an interpolated variable returned
     with the same name as the input variable. So, it
     was done to avoid user confusion.

[2] The simplest solution: upon return from linint2_Wrap
          varNEW = linibt2_Wrap(...)
          varNEW!0 = var!0 ; force original dimension names
          varNEW!1 = var!1

There are other approaches. Let me know if this is not acceptable.

On 11/29/2011 02:02 PM, Cathy Smith wrote:
> Small correction. I am running my code on 5.1.1 on redhat 32bit.....
>
> NCL users:
> I've been using linint2_wrap successfully to regrid. My issue is that
> the name of the coordinate variables change slightly. Unfortunately, I
> need them to stay exactly the same. Is there a way to rename coordinate
> variables in NCL easily?
>
> I call
>
> VARnew =
> linint2_Wrap(lat,uselevels(::-1),VAR(::-1,:),True,lat2nd,uselevels(::-1),0)
>
>
> and this is what I get for printVarSummary for VARnew and VAR
>
> Variable: VAR Type: float Total Size: 6336 bytes 1584 values Number of
> Dimensions: 2 Dimensions and sizes: [lev | 11] x [lat | 144]
> Coordinates: lev: [1000.. 100] lat: [-89.375..89.375] Number Of
> Attributes: 7 units : m s-1 var_desc : Zonal Wind time : 731948
> _FillValue : -9.99e+08 missing_value : -9.99e+08 long_name :
> eastward wind component average_op_ncl : dim_avg over dimension: lon
> (0)
>
> Variable: VARnew Type: float Total Size: 3212 bytes 803 values Number of
> Dimensions: 2 Dimensions and sizes: [LEV | 11] x [LAT | 73]
> Coordinates: LEV: [100..1000] LAT: [-90..90] Number Of Attributes: 7
> average_op_ncl : dim_avg over dimension: lon long_name : eastward
> wind component missing_value : -9.99e+08 _FillValue : -9.99e+08
> time : 731948 var_desc : Zonal Wind units : m s-1 (0)
>
> I'm using 5.2.1 on linux redhat 64 bit machine.
>
> Cathy Smith
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Nov 29 14:59:30 2011

This archive was generated by hypermail 2.1.8 : Wed Nov 30 2011 - 19:52:47 MST