<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1258">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div class="gE iv gt" 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" contenttype="image/png" unselectable="on" tabindex="-1" style="max-width: 100%; user-select: none;" data-outlook-trace="F:1|T:1" 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="ii gt" style="font-size: 0.875rem; margin: 8px 0px 0px">
<div class="a3s aXjCH " style="overflow: hidden; font: small / 1.5 Arial, Helvetica, sans-serif">
<div dir="ltr">
<div></div>
</div>
</div>
</div>
</div>
</body>
</html>