Re: Error in reading variables

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Apr 18 2014 - 07:19:09 MDT

Oops!

   ebu_in_co = new ((/4,1,109,99/) , float) ; create array

   ebu_in_co(0,:,:,:) = a1->ebu_in_co(0,:,:,:) ; assigns values &
   meta data
   ebu_in_co(1,:,:,:) = (/ a2->ebu_in_co(0,:,:,:) /) ; values only
   ebu_in_co(2,:,:,:) = (/ a3->ebu_in_co(0,:,:,:) /)
   ebu_in_co(3,:,:,:) = (/ a4->ebu_in_co(0,:,:,:) /)

   printVarSummary(ebu_in_co)

   a0->ebu_in_co = ebu_in_co

On 4/18/14, 7:13 AM, Dennis Shea wrote:
> a0->ebu_in_co = new ((/4,1,109,99/) , float)

> a0->ebu_in_co(0,:,:,:) = a1->ebu_in_co(0,:,:,:) ; assigns values &
> meta data
> a0->ebu_in_co(1,:,:,:) = (/ a2->ebu_in_co(0,:,:,:) /) ; values only
> a0->ebu_in_co(2,:,:,:) = (/ a3->ebu_in_co(0,:,:,:) /)
> a0->ebu_in_co(3,:,:,:) = (/ a4->ebu_in_co(0,:,:,:) /)
>
> On 4/18/14, 6:44 AM, Tabish Ansari wrote:
>> Hello
>>
>> I am trying to merge 4 3d arrays from corresponding 4 files into a single
>> 4d array in a new file.
>>
>> My script is:
>>
>> begin
>>
>> a0 = addfile("./dummy.nc","c")
>> a1 = addfile("./wrffirechemi_d01_2012-06-30_01:00:00.nc","r")
>> a2 = addfile("./wrffirechemi_d01_2012-06-30_02:00:00.nc","r")
>> a3 = addfile("./wrffirechemi_d01_2012-06-30_03:00:00.nc","r")
>> a4 = addfile("./wrffirechemi_d01_2012-06-30_04:00:00.nc","r")
>>
>> a0->ebu_in_co = new ((/4,1,109,99/) , float)
>> a0->ebu_in_co(0,:,:,:) = a1->ebu_in_co(0,:,:,:)
>> a0->ebu_in_co(1,:,:,:) = a2->ebu_in_co(0,:,:,:)
>> a0->ebu_in_co(2,:,:,:) = a3->ebu_in_co(0,:,:,:)
>> a0->ebu_in_co(3,:,:,:) = a4->ebu_in_co(0,:,:,:)
>>
>> end
>>
>>
>> Though the file is getting created, the variable indices names (attributes)
>> are not being copied and I am getting the following error:
>>
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl1), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (1) to (ncl1) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl2), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (2) to (ncl2) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl3), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (3) to (ncl3) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl1), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (1) to (ncl1) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl2), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (2) to (ncl2) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl3), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (3) to (ncl3) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl1), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (1) to (ncl1) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl2), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (2) to (ncl2) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl3), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (3) to (ncl3) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl1), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (1) to (ncl1) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl2), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (2) to (ncl2) for file (dummy)
>> warning:Dimension names of left hand side and right hand side do not match,
>> overwriting dimension (ncl3), use (/ .. /) if this is not the desired result
>> ncdimrename: ncid 65536: NetCDF: String match to name in use
>> fatal:Could not change dimension (3) to (ncl3) for file (dummy)
>>
>>
>>
>>
>> _______________________________________________
>> 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
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Apr 18 07:19:15 2014

This archive was generated by hypermail 2.1.8 : Fri Apr 18 2014 - 17:37:58 MDT