[gradsusr] GrADS is displaying only 1 variable

Joseph Basconcillo jbasconcillo at pagasa.dost.gov.ph
Thu Aug 2 21:30:12 EDT 2018


Can I open them the file with different descriptor file? 

Joseph 

----- 원래 메시지 -----

From: "James T. Potemra" <jimp at hawaii.edu> 
received: "the Users Forum grads" <gradsusr at gradsusr.org>, "Eduardo Agosta Scarel" <eduardo.agosta at gmail.com> 
Sent: 2018 August 3, Friday 3:48:19 AM 
subject: Re: [gradsusr] Displaying grads is only 1 variable 



This is not exactly correct. If you have variables in different files you can specify them with a numeric suffix. for example open one file with a variable called "temp" and a second file with another variable with the same name. You can access temp from the first file as temp. 

In this case I think the problem is your variables have different dimension sizes (1152 lats and v has 1153). I think this is the first variable is showing. 

Jim 

On 8/2/18 6:44 AM, Eduardo Agosta Scarel wrote: 



Variables within one file are hiddenly ordered from 1 to the last variable, so you must add the index. 
In your case you should do: 
'du' (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 days ago. de 2018 a la (s) 13:16, Joseph Basconcillo ( jbasconcillo at pagasa.dost.gov.ph ) escribió: 

<blockquote>
Hi, 

Below is my header file for the file, " gdaps_anal_768_2018050100.nc ". 

I opened them successfully in other platforms including all variables (eg u, v, theta, temp). 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 = & quot; Unified Model Output (Vn10.2): & quot ;; 
: name = "u"; 
: title = & quot; Westerly component of wind u & quot ;; 
: date = "01/05/18"; 
: time = "00:00"; 
: long_name = & quot; Westerly component of wind u & quot ;; 
: units = & quot; m s-1 & quot ;; 
: 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 = & quot; Unified Model Output (Vn10.2): & quot ;; 
: name = "v"; 
: title = & quot; Southerly component of wind v & quot ;; 
: date = "01/05/18"; 
: time = "00:00"; 
: long_name = "Southerly component of wind v"; 
: units = & quot; m s-1 & quot ;; 
: 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 = & quot; Unified Model Output (Vn10.2): & quot ;; 
: name = "theta"; 
: title = "Potential temperature"; 
: date = "01/05/18"; 
: time = "00:00"; 
: long_name = "Potential temperature"; 
: units = & quot; K & quot ;; 
: 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 = & quot; Unified Model Output (Vn10.2): & quot ;; 
: name = "temp"; 
: title = "Temperature T"; 
: date = "01/05/18"; 
: time = "00:00"; 
: long_name = "Temperature T"; 
: units = & quot; K & quot ;; 
: 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"; 
: 
: 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: 

: _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, z, y, x Easterly component of wind v 
t 1, 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/ 


_______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr 

</blockquote>


_______________________________________________ 
gradsusr mailing list 
gradsusr at gradsusr.org 
http://gradsusr.org/mailman/listinfo/gradsusr 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180803/50d33b11/attachment-0001.html>


More information about the gradsusr mailing list