Re: fatal from array_append_record

From: Abhik Santra <abhiksantra_at_nyahnyahspammersnyahnyah>
Date: Mon Feb 03 2014 - 12:11:59 MST

Mary,

Yes, it works. The time dimensions were different.
Thanks for your help.

Regards,
Abhik

----- Original Message -----
From: "Mary Haley" <haley@ucar.edu>
To: "Abhik Santra" <abhiksantra@tropmet.res.in>
Cc: "ncl-talk" <ncl-talk@ucar.edu>
Sent: Tuesday, February 4, 2014 12:40:54 AM
Subject: Re: fatal from array_append_record

Abhik,

You didn't say which version of NCL this occurred under, but my guess is that the problem is your "time" coordinate array is not the same type for both variables.

What does the following report:

printVarSummary(x&time)
printVarSummary(y&time)

--Mary

On Feb 3, 2014, at 5:53 AM, Abhik Santra wrote:

>
> Dear NCL-users,
>
> I want to append 2 variables, x and y, having same rightmost dimensions but different time dimensions at the left.
>
> Variable: x
> Type: float
> Total Size: 2369765376 bytes
> 592441344 values
> Number of Dimensions: 3
> Dimensions and sizes: [time | 2922] x [lat | 176] x [lon | 1152]
> Coordinates:
> time: [ 0..2921]
> lat: [-19.863..34.912]
> lon: [ 0..360.263]
>
>
> Variable: y
> Type: float
> Total Size: 2073747456 bytes
> 518436864 values
> Number of Dimensions: 3
> Dimensions and sizes: [time | 2557] x [lat | 176] x [lon | 1152]
> Coordinates:
> time: [2922..5478]
> lat: [-19.863..34.912]
> lon: [ 0..360.263]
>
> But the line
> a = array_append_record (x, y, 0) gives the following error:
>
> fatal:Assignment type mismatch, right hand side can't be coerced to type of left hand side
> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 10381 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
> Did I miss something?
>
> Regards,
> Abhik
>
> ___________________________________________
>
> Abhik Santra
> CSIR Research Fellow,
> Indian Institute of Tropical Meteorology,
> Pune - 411008.
> India
> ___________________________________________
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 3 12:32:13 2014

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