<html><head><style type=text/css><!--
.email-body p { margin-top: 0px; margin-bottom: 0px; }
--></style></head><body>have you tried to modify the ctl replacing -360 with 0?<div>davide<br><div><br><br><br><div><strong>
From:
</strong>
 
Raphael Ranieri <raphaelcr93@hotmail.com>
<br>
<strong>
To:
</strong>
 
"gradsusr@gradsusr.org" <gradsusr@gradsusr.org>
<br>
<strong>
Sent:
 
</strong>
8/11/2020 11:07 PM
<br>
<strong>
Subject:
</strong>
 
[gradsusr] Negative Longitude of -360 in xdef of ctl file
<br><br><blockquote class="mcnt mori" style="margin:0 0 0 .8ex;border-left:1px solid #CCC;padding-left:1ex;"><div class="email-body">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div class="mcntgE mcntiv mcntgt" style="padding: 20px 0px 0px; cursor: pointer; font-size: 0.875rem">
</div>
Hello All,
<div><br>
</div>
<div>I'm trying to use some files of a Brazillian institute of meteorology and I'm facing a problem with the longitude values.</div>
<div><br>
</div>
<div>They used grads to create a ctl file that can be accessed in this FTP from the institution:</div>
<div>http://ftp.cptec.inpe.br/modelos/tempo/BAM/TQ0666L064/recortes/regioes/2020/07/29/00/BAM_CO_2020072900.ctl</div>
<div><br>
</div>
<div><img size="180037" style="max-width: 100%; user-select: none;" src="cid:78306f6d-96b0-45b9-b892-7fcc822a714b"><br>
</div>
<div><br>
</div>
<div>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:</div>
<div>http://cola.gmu.edu/grads/gadoc/descriptorfile.html#XDEF</div>
<div><br>
</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>We are not using Grads to open the file, we are using pygrib ... to use it in a python program.</div>
<div><br>
</div>
<div>Since this ctl file is generated by grads we tought you guys could help.</div>
<div><br>
</div>
<div>Do you know why the longitude is starting at -360?</div>
<div><br>
</div>
<div>Thanks in advance!</div>
<div><br>
</div>
<div>Raphael Ranieri</div>
<div>
<div class="mcntii mcntgt" style="font-size: 0.875rem; margin: 8px 0px 0px">
<div class="mcnta3s mcntaXjCH mcnt" style="overflow: hidden; font: small / 1.5 Arial, Helvetica, sans-serif">
<div>
<div></div>
</div>
</div>
</div>
</div>


</div><br><br>_______________________________________________
<br>gradsusr mailing list
<br>gradsusr@gradsusr.org
<br>http://gradsusr.org/mailman/listinfo/gradsusr
<br></blockquote></div></div></div><BR />
<BR />
<font face="Arial" color="#ff0000"><span style="font-size: 12px;">Attenzione ARPAL ha cambiato indirizzi digitali, i nuovi indirizzi di e-mail sono composti dall'attuale nome.cognome seguito da @arpal.liguria.it, quindi </span><b style>nome.cognome@arpal.liguria.it</b></font><BR />
</body></html>