[gradsusr] GrADS is displaying only 1 variable

Eduardo Agosta Scarel eduardo.agosta at gmail.com
Thu Aug 2 09:44:33 EDT 2018


Variables within one file are hiddenly ordered from 1 to the last variable,
so to display them you must add the index.
In your case you should do:
'd u' (or 'd u.1', the first variable does not need to be indexed for
recognition)
'd v.2'
'd t.3'

Have you tried like this?


Edu.

El jue., 2 de ago. de 2018 a la(s) 13:16, Joseph Basconcillo (
jbasconcillo at pagasa.dost.gov.ph) escribió:

> 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
>


-- 
Eduardo Agosta Scarel

"The Carmelite NGO is a way to promote justice, peace and care for creation"
"La ONG Carmelita es una manera de promover la justicia, la paz y el
cuidado de la creación"
*http://carmelitengo.org/ <http://carmelitengo.org/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180802/36f0a111/attachment-0001.html>


More information about the gradsusr mailing list