CDAT / cdat

Community Data Analysis Tools
Other
174 stars 68 forks source link

Unable to load Ensembles dimension from Grads Ctl file #1823

Open arulalant opened 8 years ago

arulalant commented 8 years ago

Dear UV-CDAT Developers,

Greetings!

When I am trying to access ensemble dimension (which has embedded within variable as another dimension / axis / coordinates) from grib2 file, cdms2 just suppressed to single ensemble dimension (i.e. no ensemble dimension at all) .

But when I am accessing the same ctl file in grads, I am able to set / select which ensemble need to be plotted. In grads, we can do "set E 5" to select 5th ensemble.

Attached zip file which contains sample grib2, ctl, idx files ensemble-example-grib2.zip

$ wgrib2 -v example.grib2 shows the ensembles.

If you point out me, which module do I need to look out, then I may give a try to fix it.

Thanks.

arulalant commented 8 years ago

@doutriaux1 @aashish24 any comments or suggestions on this !?

doutriaux1 commented 8 years ago

@dnadeau4 this one falls in your camp. Thanks!

dnadeau4 commented 8 years ago

It seems that CDMS is hard coded to 4 dimensions maximum for grads.

  file->ndims =  4 ;
  file->ngatts =  1 ;
  ngdims =  4 ;

I'll see if I can fix this easily.

Denis

doutriaux1 commented 8 years ago

@dnadeau4 just pinging, no rush