[ncl-talk] Daily anomaly from monthly climatology

Nabeela Sadaf nh16 at mails.tsinghua.edu.cn
Thu May 31 11:09:42 MDT 2018




-----Original Messages-----
From:"Nabeela Sadaf" <nh16 at mails.tsinghua.edu.cn>
Sent Time:2018-06-01 01:01:07 (Friday)
To: ncl-talk-request at ucar.edu
Cc:
Subject: Daily anomaly from monthly climatology



Hi

 

I am using Aphrodite daily data to calculate anomaly of an event i.e. 13July1988 to 18July1988 with respect to climatology of JJA during 1988.

 

In first step, I selected JJA i.e. 92 time-steps from 1st june till 31st August 1988.

Print(ddd)

 

Variable: ddd

Type: integer

Total Size: 368 bytes

            92 values

Number of Dimensions: 1

Dimensions and sizes:  [92]

Coordinates:

(0)            153

 

(91)     244

 

In the second step, I defined event days.

 

Print(sddd)

 

Variable: sddd

Type: integer

Total Size: 24 bytes

            6 values

Number of Dimensions: 1

Dimensions and sizes:  [6]

Coordinates:

(0)            195

(5)   200

 

while printVarSummary(pre) gives

Variable: pre

Type: float

Total Size: 37094400 bytes

            9273600 values

Number of Dimensions: 3

Dimensions and sizes:  [time | 92] x [latitude | 280] x [longitude | 360]

Coordinates:

            time: [ 153.. 244]

            latitude: [-14.875..54.875]

            longitude: [60.125..149.875]

 

 

PrintVarSummary(xClmDay)

Variable: xClmDay

Type: float

Total Size: 147571200 bytes

            36892800 values

Number of Dimensions: 3

Dimensions and sizes:  [year_day | 366] x [latitude | 280] x [longitude | 360]

Coordinates:

            year_day: [1..366]

            latitude: [-14.875..54.875]

            longitude: [60.125..149.875]

 

so when I try calcDayAnomTLL it gives following error

 

fatal: Subscript out of range, error in subscript #0

fatal: An error occurred reading days

fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4562 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl

 

fatal:["Execute.c":8575]:Execute: Error occurred at or near line 87 in file P2.ncl

 

Although time format is same in all variables but it gives error in subscript number 0.

 

Can anyone help me? Thanks in advance.
Attached herewith is the script.




Nabeela

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180601/a7e390f4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: P2.ncl
Type: application/octet-stream
Size: 2071 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180601/a7e390f4/attachment.obj>


More information about the ncl-talk mailing list