[RegCNET] Conversion

Moetasim mashfaq at purdue.edu
Thu Jun 15 12:05:44 CEST 2006


According to your CTL file, you have 4x1 grid box, in contrary to your 
informtion that data has 23 rows and 4 columns ( i assume that it is either 
23x4 or 4x23 grid). Apart from that, first, you should be able to visualize 
binary file in grads (using predictand.ctl), if you want its convrsion using 
lats4d.  

Othrwise, if you  have 4x1 grid then lats4d can not deal with it. It is in 
fact, not a 2d grid. 

Moet 

Quoting Afzaal Karori <afzaalkarori at yahoo.com>:

> Dear All
> 
> I converted realtime precipitation data from text
> format, containing 23 rows and 4 columns, into binary.
> Now I want to convert it into NetCDF, for comparison
> study. For this purpose I am using Lats4d script, but
> when I use the command it does not work and gives
> following error;
> 
> [root at localhost abc]# gradsnc
> 
> Grid Analysis and Display System (GrADS) Version
> 1.8SL11
> Copyright (c) 1988-2001 by Brian Doty
> Center for Ocean-Land-Atmosphere Studies
> Institute for Global Environment and Society
> All Rights Reserved
> 
> Config: v1.8SL11 32-bit little-endian readline sdf/xdf
> netcdf lats printim
> 
> Issue 'q config' command for more information.
> 
> Landscape mode? (no for portrait):
> GX Package Initialization: Size = 11 8.5
> ga-> lats4d -v -q -i predictand.ctl -o predictand
> lats4d: Version 1.4 of 19 Dec 2002
> No hardcopy metafile open
> All files closed; all defined objects released
> All GrADS attributes have been reinitialized
> lats4d: Data file is
> File 1 : SEASONAL FORECAST OF DCD/NCC
>   Descriptor: predictand.ctl
>   Binary: fou
>   Type = Gridded
>   Xsize = 4  Ysize = 1  Zsize = 1  Tsize = 33
>   Number of Variables = 1
>     p 0 99 predictand
> 
> lats4d: Dimension environment file same as data file
> lats4d: creating LATS PARAMETER TABLE file
> .grads.lats.table
> lats4d: time range: 00Z01MAR1983 00Z01MAR1983 by 1,
> delta t: 1 yearly
> lats4d: vertical levels:  100000
> lats4d: using PRESSURE for vertical coordinate
> lats4d: latitudinal  range: 87.975 87.975
> lats4d: longitudinal range: 0 5.625
> GrADS-LATS Error:  the grid must be lon/lat
> lats4d: error creating coards file predictand.nc
> lats4d: exiting from GrADS...
> No hardcopy metafile open
> GX package terminated
> 
>                           ***************************
>   MUHAMMAD AFZAAL KARORI
>   Meteorologist,
>   Research and Development Division,
>   Pakistan Meteorological Department,
>   Sector H-8/2, P O Box 1214,
>   Islamabad - Pakistan
>   Phone: + 92 - 51 - 9250360,61,62,63
>   Cell: +923345081048 
>   ***************************
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> RegCNET mailing list
> RegCNET at lists.ictp.it
> https://lists.ictp.it/mailman/listinfo/regcnet
> 



More information about the RegCNET mailing list