Hi;
I am trying to read several files with different time lengths and then select/do analysis for the same period. The relevant part of my code is included below:
; ==============================================================
; Define the period for analysis
; ==============================================================
yrStrt = 1950
yrLast = 1999
; ==============================================================
; Open the file: Read only the user specified period
; ==============================================================
f = addfile("/media/data/cmip3/20c3m/tos/bccr_bcm2_0/run1/tos_O1b_1850-1999.nc", "r")
f1 = addfile ("/media/data/cmip3/20c3m/uas/bccr_bcm2_0/run1/uas_A1_2.nc", "r")
....
.....
....
TIME = f->time
YYYY = cd_calendar(TIME,-1)/100 ; entire file
iYYYY = ind(YYYY.ge.yrStrt .and. YYYY.le.yrLast)
tos = f->tos(iYYYY,:,:)
printVarSummary(tos)
TIME = f1->time
YYYY = cd_calendar(TIME,-1)/100 ; entire file
iYYYY = ind(YYYY.ge.yrStrt .and. YYYY.le.yrLast)
uas = f1->uas(iYYYY,:,:)
printVarSummary(uas)
....
....
...
The code reads the first file/data and returns the error message below:
fatal:Dimension sizes of left hand side and right hand side of assignment do not match
fatal:Execute: Error occurred at or near line 43 in file regress_bccr.ncl
How do I fix this ?
Thanks,
Hyacinth
NCL Version 6.0.0
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Feb 17 10:32:01 2012
This archive was generated by hypermail 2.1.8 : Thu Feb 23 2012 - 10:01:53 MST