[gradsusr] reverting zlev on lat4ds

Henrique M. J. Barbosa - IFUSP hbarbosa at if.usp.br
Wed Apr 18 16:23:06 EDT 2012


Dear All,

I want to convert a simple binary file to grads_grib. However, the vertical
levels are meters above sea level and range between 20m to 20000m.

I am trying lats4d. It works and I get a grib and ctl that I can open in
grads. However, the vertical levels are reversed. I mean, z=1 is associated
with 20km and not with 20m. I already tried the -zrev option, but that only
reverts the levels written to the grib file (I checked that), and not the
levels written to the CTL file.

Hence, using or nor using zrev makes no difference to how grads plots the
fields. For instance, a vertical crossection starts "at ground" at 20000m
and goes "up to" 20m on the top of the plot. If I try something like:

set lat -20
set lev 20 20000
plot rh
Data Request Error: Invalid grid coordinates
  Varying dimension 2 decreases: 36 to 1

It gives an error. How do I get lats4d writing the CTL following -zrev??
Is this a bug in LATS.c code? Or is there an option that I am not using?

By the way, I am using opengrads 2.0.a9.oga.1 and the lats4d that comes
with it.

Thanks,
Henrique

-- 
----------------------------------------------------------------
Prof. Henrique M.J. Barbosa          Phone:+[55] (11) 3091 6647
Ed. Basilio Jafet, Sala 100           Cell:+[55] (11) 8380 8001
Dep. de Fisica Aplicada                FAX:+[55] (11) 3091 6749
Instituto de Fisica - USP
Rua do Matao, Travessa R, 187        Skype: hmjbarbosa
05508-900, Sao Paulo, SP, Brazil       msn: hmjbarbosa at yahoo.com
http://www.fap.if.usp.br/~hbarbosa   e-mail: hbarbosa at if.usp.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120418/4d49051e/attachment-0003.html 


More information about the gradsusr mailing list