[gradsusr] Negative Longitude of -360 in xdef of ctl file

Davide Sacchetti davide.sacchetti at arpal.liguria.it
Fri Aug 14 06:21:03 EDT 2020


have you tried to modify the ctl replacing -360 with 0?
davide





 From:   Raphael Ranieri <raphaelcr93 at hotmail.com> 
 To:   "gradsusr at gradsusr.org" <gradsusr at gradsusr.org> 
 Sent:   8/11/2020 11:07 PM 
 Subject:   [gradsusr] Negative Longitude of -360 in xdef of ctl file 


 
 
 Hello All, 

 
I'm trying to use some files of a Brazillian institute of meteorology and I'm facing a problem with the longitude values. 

 
They used grads to create a ctl file that can be accessed in this FTP from the institution: 
http://ftp.cptec.inpe.br/modelos/tempo/BAM/TQ0666L064/recortes/regioes/2020/07/29/00/BAM_CO_2020072900.ctl 

 

 

 
Here we can see that they are using a linear mapping for xdef with a 0.18 step starting from a longitude of -360 degrees according to GrADs docs: 
http://cola.gmu.edu/grads/gadoc/descriptorfile.html#XDEF 

 

 
Since in our case we need the actual longitude and latitude of a point, when we try to read this file we receive longitudes of 360 for example, which do not correspond to any existing longitude. 

 
We are not using Grads to open the file, we are using pygrib ... to use it in a python program. 

 
Since this ctl file is generated by grads we tought you guys could help. 

 
Do you know why the longitude is starting at -360? 

 
Thanks in advance! 

 
Raphael Ranieri 
 
 
 
 
 

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


Attenzione ARPAL ha cambiato indirizzi digitali, i nuovi indirizzi di e-mail sono composti dall'attuale nome.cognome seguito da @arpal.liguria.it, quindi nome.cognome at arpal.liguria.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200814/eef36724/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Captura de Tela 2020-07-29 a?s 8.38.13 PM.png
Type: image/png
Size: 180037 bytes
Desc: Captura de Tela 2020-07-29 a?s 8.38.13 PM.png
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20200814/eef36724/attachment-0001.png>


More information about the gradsusr mailing list