<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);">
Hello Clay,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you for the answer.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Actually if I subtract 360 from the long I will get -360 longitude as well<br>
<br>
Opening the file and asking to print the max and min longitude, I checked that it is from 0 to 360.0000000000111</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
See:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<img size="33238" contenttype="image/png" unselectable="on" tabindex="-1" style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; max-width: 100%; user-select: none;" data-outlook-trace="F:1|T:1" src="cid:3f98e46c-b2ec-4f10-b591-db55e78b775f"><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If I print point by point values with respective Lat and Long I also get longitude of 360 in the end:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<img size="114749" contenttype="image/png" unselectable="on" tabindex="-1" style="max-width: 100%; user-select: none;" data-outlook-trace="F:1|T:1" src="cid:e27cf20c-bda9-40f2-a9d0-c57f07f58938"><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I thought it could be a custom projection or something like that, but in ctl it is not specifying anything.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I sent a message to the institute also, but didn't get an answer.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm very confused.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If anyone have any other hint I appreciate a lot.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Raphael Ranieri</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> gradsusr <gradsusr-bounces@gradsusr.org> em nome de Raphael Ranieri <raphaelcr93@hotmail.com><br>
<b>Enviado:</b> terça-feira, 11 de agosto de 2020 18:07<br>
<b>Para:</b> gradsusr@gradsusr.org <gradsusr@gradsusr.org><br>
<b>Assunto:</b> [gradsusr] Negative Longitude of -360 in xdef of ctl file</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<div class="x_gE x_iv x_gt" style="padding:20px 0px 0px; 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" tabindex="-1" style="max-width:100%" data-outlook-trace="F:2|T:2" 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="x_ii x_gt" style="font-size:0.875rem; margin:8px 0px 0px">
<div class="x_a3s x_aXjCH" style="overflow:hidden; font:small /1.5 Arial,Helvetica,sans-serif">
<div dir="ltr">
<div></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>