|
From: Davide C. <dc...@sm...> - 2001-11-19 15:01:00
|
Dear Marcus, I regularly compile grib2v5d (you can get the sources at http://grib2v5d.sf.net) with pgf90 Portland compiler and it correctly generates variable names on Linux (actually I don't use a DATA statement but I read variable names from a NAMELIST file); maybe your problem is that the strings composing the vector passed to v5dcreate are not 10 characters long but less (I guess 7)? I think this is a requirement for v5dcreate, the example in the manual reads: character*10 varname(MAXVARS) If the problem is not there, maybe some lines of code would be useful to understand better what's going on. best wishes, Davide On Mon, 19 Nov 2001, Marcus Koehler wrote: > Dear group members, > > I attempt to create v5d files using Portland Group Fortran on a Linux > machine. I use v5dcreatesimple for a regular spaced grid. > > However, the variable names seem to be not properly identified. They > are given as a character field in a data statement. But instead of > recognising the variables, P, U, V, T, Theta, PV, and SpecH, > it appears that the strings are being "glued" together. > > See here the output from v5dinfo: > > File format: v5d version: 4.3 > Compression: 1 byte per gridpoint. > header size=11804 > sizeof(v5dstruct)=169068 > > NumVars = 7 > Var Name Units Rows Cols Levels LowLev MinVal > 1 P U Pa 36 72 30 0 1000 > 2 V m/s 36 72 30 0 -40.8064 > 3 T T m/s 36 72 30 0 -57.8602 > 4 eta PV K 36 72 30 0 185.118 > 5 SpecH K 36 72 30 0 239.123 > 6 a PVU 36 72 30 0 -207.815 > 7 m/s g/g 36 72 30 0 0.000458169 > > etc... > -- __________________________________________________________ Davide Cesari Servizio Meteorologico Regionale __ tel. (39) 051/284541 ||\ fax (39) 051/284664 |||\ e-mail DC...@sm... |||/ Address: ARPA-SMR, Viale Silvani 6, 40122 Bologna, Italy __________________________________________________________ |