Re: Problem with addfiles?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sat Jan 23 2010 - 08:04:19 MST

concatenation is the default. do you do not need
     ListSetType(...,"cat")

the 1st set of files you did:
     day_data_20c = fall20c[:]->$var$(d::365,:,:)

the 2nd set of files you did
     sortobs = fallobs[:]->$var$(d,:,:)

I think the (d,:,:) should be (d::365,:,:)

     sortobs = fallobs[:]->$var$(d::365,:,:)

Good luck

Bridget Thrasher wrote:
> I am finding some peculiar behavior when getting data from a set
> resulting from a call to addfiles. Both arrays should be the same size
> (50x180x360), but the second is not concatenating. Am I doing something
> wrong?
>
> Code snippets:
>
> fall20c = addfiles(files20c,"r") ; files20c contains 5 files, each with
> 10 years of daily data
> ListSetType(fall20c,"cat")
>
> fallobs = addfiles(filesobs,"r") ; filesobs contains 50 files, each
> with 1 year of daily data
> ListSetType(fallobs,"cat")
>
> day_data_20c = fall20c[:]->$var$(d::365,:,:)
> printVarSummary(day_data_20c)
>
> sortobs = fallobs[:]->$var$(d,:,:)
> printVarSummary(sortobs)
>
>
> Output to screen:
>
> Variable: day_data_20c
> Type: float
> Total Size: 12960000 bytes
> 3240000 values
> Number of Dimensions: 3
> Dimensions and sizes: [time | 50] x [latitude | 180] x [longitude | 360]
> Coordinates:
> time: [711751.5..729636.5]
> latitude: [-89.5..89.5]
> longitude: [ 0.5..359.5]
>
>
> Variable: sortobs
> Type: float
> Total Size: 259200 bytes
> 64800 values
> Number of Dimensions: 2
> Dimensions and sizes: [lat | 180] x [lon | 360]
> Coordinates:
> lat: [-89.5..89.5]
> lon: [ 0.5..359.5]
>
>
>
> --
> Bridget Thrasher, PhD
> Postdoctoral Researcher
> Climate Central
> www.climatecentral.org <http://www.climatecentral.org>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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 Sat Jan 23 08:04:24 2010

This archive was generated by hypermail 2.1.8 : Mon Feb 01 2010 - 08:05:34 MST