Re: problem with rmMonAnnCycLLLT

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri, 17 Feb 2006 22:10:30 -0700 (MST)

Hi Will

It is my speculation that "uwnd" is of type "short" [16-bit integer]

Please try the short2flt function located in contributed.ncl:

     $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl

     x = short2flt( f0->uwnd )

[Also, you do not need to read lat, lon or level]

Regards
D

On Fri, 17 Feb 2006, Will Hobbs wrote:

> I get the following error when I try and use rmMonAnnCycLLLT from a
> monthly mean u-wind datasetand I'm afraid I can't see why. The data is
> NCEP reanalysis monthly mean zonal wind data for 540 months
>
> fatal:Assignment type mismatch, right hand side can't be coerced to type
> of left hand side
> fatal:Execute: Error occurred at or near line 2462 in file
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
> fatal:Execute: Error occurred at or near line 2614 in file
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
>
> The code I'm using is here:
>
> begin
>
> FIL0 = "ncep_u_1960_2004.nc"
>
> diri0 = "/u/whobbs/ncep/"
>
> ;************************************************
> ; Read in test data
> ;*********************************************
>
> f0 = addfile(diri0+FIL0, "r")
>
> x = f0->uwnd
>
> lat = f0->lat
> lon = f0->lon
> level= f0->level
>
> ;remove annual cycle
>
> y = rmMonAnnCycLLLT(x(level|:,lat|:,lon|:,time|:))
> delete(x)
>
> end
>
> Many thanks
>
> Will Hobbs
>
> ============================
> Room 3221C
> UCLA Department of Geography
> 1255 Bunche Hall
> Los Angeles CA 90095-1524
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Feb 17 2006 - 22:10:30 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 21 2006 - 14:23:40 MST