Re: simple daily anomalies

From: Alan Brammer <abrammer_at_nyahnyahspammersnyahnyah>
Date: Mon Jan 27 2014 - 09:57:39 MST

The developers will know more about this, but at least in version 6.1.2, the functions you mentioned make no actual use of the names (anymore).  You should be able to freely use the TLL version and the function will not know whether its calculating over level*lat or lat*lon as it doesn’t matter. 

If you take a look in $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl  at the clmDayTLL function you should see that the main lines are now using dim_avg_n thus the dimensions names are irrelevant. 

Alan.

##############################
Alan Brammer
PhD Student,

Department of Atmospheric and Environmental Sciences,
University at Albany, 
State University of New York
Albany, NY, 12222

abrammer@albany.edu

##############################

On January 27, 2014 at 11:46:15 AM, Xi Chang (xi.chang01@gmail.com) wrote:

I followed the thread here http://www.ncl.ucar.edu/Support/talk_archives/2013/3227.html and do the same thing as follow:

x [time,level,lat]

dimx = dimsizes(x) 
ntim = dimx(0)
klev = dimx(1)
nlat = dimx(2)
mlon=1

xnew = conform_dims( (/ntim,klev,nlat,mlon/), x, 3)

then ERROR:
fatal:conform_dims: The array to be conformed must have the same number of dimensions as indicated by the length of the last argument

Variable: x
Type: float
Total Size: 854976 bytes
            213744 values
Number of Dimensions: 3
Dimensions and sizes:   [time | 366] x [level | 8] x [lat | 73]
Coordinates:
            time: [17067072..17075832]
            level: [1000..300]
            lat: [90..-90]
Number Of Attributes: 19
  long_name :   mean Daily relative humidity
  unpacked_valid_range :        ( -25, 125 )
  actual_range :        (  0, 100 )
  units :       %
  missing_value_original :      32766
  precision :   2
  least_significant_digit :     0
  GRIB_id :     52
  GRIB_name :   RH
  var_desc :    Relative humidity

I have no idea I always get this error,
Thank you

Chang

On Mon, Jan 27, 2014 at 5:12 PM, Xi Chang <xi.chang01@gmail.com> wrote:
Hallo NCL folks,

I was searching through all NCL functions, a function that can produce daily anomalies from 3D data without 'longitude' i.e. X [time, level, lat]. since clmDayTLL and clmDayTLLL still consider the longitude within the dataset.

Thanks.

_______________________________________________
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 Mon Jan 27 09:59:18 2014

This archive was generated by hypermail 2.1.8 : Fri Feb 07 2014 - 16:39:11 MST