[gradsusr] GrADS is displaying only 1 variable

Jeff Duda jeffduda319 at gmail.com
Thu Aug 2 12:40:50 EDT 2018


1) Add a zdef line to your control file
2) Your netcdf file does not have an array named "t". You can use the syntax
*netcdf_name=>new_name*
to create a custom name for any netCDF array in GrADS. The *netcdf_name* must
match the name of the array in the netCDF file (from ncdump).

Also, for future help, please include the commands leading up to the error
so we can better help you diagnose the problem.

Jeff Duda

On Thu, Aug 2, 2018 at 5:16 AM Joseph Basconcillo <
jbasconcillo at pagasa.dost.gov.ph> wrote:

> Hi,
>
> Below is my header file for the file, "gdaps_anal_768_2018050100.nc".
>
> I opened them successfully in other platforms including all variables
> (e.g. u, v, theta, temp) but in GrADS only u is being shown. The other
> variables are being left out.
>
> netcdf file:/G:/gdaps_anal_768_2018050100.nc {
>   dimensions:
>     longitude = 1536;
>     latitude = 1152;
>     hybrid_ht = 1;
>     t = UNLIMITED;   // (1 currently)
>     longitude_1 = 1536;
>     latitude_1 = 1153;
>     hybrid_ht_1 = 1;
>     surface = 1;
>   variables:
>     float u(t=1, hybrid_ht=1, latitude=1152, longitude=1536);
>       :source = "Unified Model Output (Vn10.2):";
>       :name = "u";
>       :title = "Westerly component of wind  u";
>       :date = "01/05/18";
>       :time = "00:00";
>       :long_name = "Westerly component of wind  u";
>       :units = "m s-1";
>       :missing_value = 2.0E20f; // float
>       :_FillValue = 2.0E20f; // float
>       :valid_min = -24.836214f; // float
>       :valid_max = 21.292374f; // float
>
>     float v(t=1, hybrid_ht=1, latitude_1=1153, longitude_1=1536);
>       :source = "Unified Model Output (Vn10.2):";
>       :name = "v";
>       :title = "Southerly component of wind v";
>       :date = "01/05/18";
>       :time = "00:00";
>       :long_name = "Southerly component of wind v";
>       :units = "m s-1";
>       :missing_value = 2.0E20f; // float
>       :_FillValue = 2.0E20f; // float
>       :valid_min = -19.5578f; // float
>       :valid_max = 26.530746f; // float
>
>     float theta(t=1, hybrid_ht_1=1, latitude=1152, longitude_1=1536);
>       :source = "Unified Model Output (Vn10.2):";
>       :name = "theta";
>       :title = "Potential temperature";
>       :date = "01/05/18";
>       :time = "00:00";
>       :long_name = "Potential temperature";
>       :units = "K";
>       :missing_value = 2.0E20f; // float
>       :_FillValue = 2.0E20f; // float
>       :valid_min = 227.68872f; // float
>       :valid_max = 328.4967f; // float
>
>     float temp(t=1, surface=1, latitude=1152, longitude_1=1536);
>       :source = "Unified Model Output (Vn10.2):";
>       :name = "temp";
>       :title = "Temperature T";
>       :date = "01/05/18";
>       :time = "00:00";
>       :long_name = "Temperature T";
>       :units = "K";
>       :missing_value = 2.0E20f; // float
>       :_FillValue = 2.0E20f; // float
>       :valid_min = 191.576f; // float
>       :valid_max = 329.6931f; // float
>
>     float longitude(longitude=1536);
>       :units = "degrees_east";
>       :point_spacing = "even";
>       :modulo = " ";
>       :_CoordinateAxisType = "Lon";
>
>     float latitude(latitude=1152);
>       :units = "degrees_north";
>       :point_spacing = "even";
>       :_CoordinateAxisType = "Lat";
>
>     float hybrid_ht(hybrid_ht=1);
>       :units = "level";
>       :positive = "up";
>       :_CoordinateAxisType = "GeoZ";
>       :_CoordinateZisPositive = "up";
>
>     float t(t=1);
>       :units = "days since 2018-05-01 00:00:00";
>       :time_origin = "01-MAY-2018:00:00:00";
>       :_CoordinateAxisType = "Time";
>
>     float longitude_1(longitude_1=1536);
>       :units = "degrees_east";
>       :point_spacing = "even";
>       :modulo = " ";
>       :_CoordinateAxisType = "Lon";
>
>     float latitude_1(latitude_1=1153);
>       :units = "degrees_north";
>       :point_spacing = "even";
>       :_CoordinateAxisType = "Lat";
>
>     float hybrid_ht_1(hybrid_ht_1=1);
>       :units = "level";
>       :positive = "up";
>       :_CoordinateAxisType = "GeoZ";
>       :_CoordinateZisPositive = "up";
>
>     float surface(surface=1);
>       :units = "level";
>       :positive = "up";
>       :_CoordinateAxisType = "GeoZ";
>       :_CoordinateZisPositive = "up";
>
>   // global attributes:
>   :history = "Wed Jul  4 06:45:35 UTC 2018 - CONVSH V1.91
> 16-February-2006";
>   :_CoordSysBuilder = "ucar.nc2.dataset.conv.DefaultConvention";
> }
>
>
> The descriptor file I used is the following:
>
> dset ^gdaps_anal_768_2018050100.nc
> dtype netcdf
> undef 2.0E20f_missing_value
> xdef 1536 linear 0 360
> ydef 1152 linear -90 90
> tdef 1 linear 00Z01MAY2018 1
> edef 1 linear 1 1
> vars 3
> u 1 t,z,y,x Westerly component of wind  u
> v 1 t,z,y,x Easterly component of wind  v
> t 1 t,z,y,x Temperature T
> endvars
>
> The error says gadxdf error: Missing or invalid dimension size. I am
> guessing the error is the xdef and ydef. Can you help me on this?
>
> Thanks.
>
> Yours,
> Joseph Basconcillo
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>


-- 
Jeff Duda, Research Scientist

University of Colorado Boulder

Cooperative Institute for Research in Environmental Sciences

NOAA/OAR/ESRL/Global Systems Division
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180802/f94aa0c5/attachment.html>


More information about the gradsusr mailing list