<div dir="ltr"><br><br>On Mon, Jun 25, 2018 at 4:33 PM, Gabriel Cotlier <<a href="mailto:gabiklm01@gmail.com">gabiklm01@gmail.com</a>> wrote:<br>><br>> Dear Markus,<br>><br>> Thanks a lot for the explanation.<br>><br>> After importing the layer F101992 I did :<br>><br>> r.region -a map=F101992@PERMANENT<br>><br>> and I got the results as you indicated, with the new resolution message:<br>><br>> 360 degree EW extent is exceeded by 1 cells<br>><br>> Nonetheless, the message of the old resolution (360 degree EW extent is exceeded by 0.999827 cells) still appear but in the second line of the message bellow:   <br>><br><div>> Could be this indicating it changed from old to new resolution?</div><div><br></div><div>Have you adjusted the current region to match the adjusted raster with</div><div>g.region -p raster=F101992</div><div></div><div>?</div><div><br></div><div>After that, the first or last column could be ignored in further processing by setting the region as I suggested before.<br></div><div><br></div><div>Markus M<br></div>><br>> Thanks a lot again for your help.<br>><br>> Best regards,<br>><br>> Gabriel<br>><br>><br>><br>><br>> On Mon, Jun 25, 2018 at 3:29 AM, Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>> wrote:<br>>><br>>><br>>><br>>> On Mon, Jun 25, 2018 at 5:40 AM, Gabriel Cotlier <<a href="mailto:gabiklm01@gmail.com">gabiklm01@gmail.com</a>> wrote:<br>>> ><br>>> > Hello,<br>>> ><br>>> > I think I have found a similar situation solved for Linux version at:<br>>> ><br>>> > <a href="https://trac.osgeo.org/grass/ticket/2757#comment:21">https://trac.osgeo.org/grass/ticket/2757#comment:21</a><br>>> ><br>>> > In my case I'm using GRASS 7.4.0 in Windows 10, and when I called for metadata info of the layer I got the message bellow with the problem highlighted in yellow bellow.<br>>> ><br>>> > What could be happening? It would be very helpful to understand what is happening and how to solve importing many raster layers without this extent problems.<br>>><br>>> The resolution is a bit wrong, it is 0.008333333300000 but should be 0.008333333333333, i.e. exactly 30 arc-seconds. This can be solved with the -a flag of r.in.gdal, or after import with r.region -a.<br>>><br>>> The message<br>>><br>>> > 360 degree EW extent is exceeded by 0.999827 cells<br>>><br>>> will change to<br>>><br>>> > 360 degree EW extent is exceeded by 1 cells<br>>><br>>> but will not go away, because 360 degree EW extent is exceeded in the input data, the first and last column cover the same geographical area. You can change your current region to chop of e.g. the first column: set the region to the raster, then modify the current region with g.region w=179:59:45W -p and use this region for further processing.<br>>><br>>> Markus M<br>>><br>>> ><br>>> > 360 degree EW extent is exceeded by 1.99983 cells<br>>> ><br>>> > (Mon Jun 25 00:30:04 2018) Command finished (0 sec)<br>>> ><br>>> ><br>>> ><br>>> ><br>>> ><br>>> > Virus-free. <a href="http://www.avg.com">www.avg.com</a><br>>> ><br>>> > On Sun, Jun 24, 2018 at 5:09 PM, Gabriel Cotlier <<a href="mailto:gabiklm01@gmail.com">gabiklm01@gmail.com</a>> wrote:<br>>> >><br>>> >> Dear Vero and Markus,<br>>> >><br>>> >> Thanks a lot for the guidance and help.<br>>> >><br>>> >> If I understood correctly:<br>>> >><br>>> >> I first have to import one layer when I select a location setting the coordinate system of that layer to the mapset of GRASS (at the start).<br>>> >><br>>> >> Then I have to import all other layers to mapset using command "r.in.gdal -a"<br>>> >><br>>> >> r.in.gdal -a input=C:\Users\Gabriel\Documents\layers\F121995.tif output=F121995<br>>> >><br>>> >> Then I have to running "g.region" to set up the same extent to all layers as follows:<br>>> >><br>>> >> g.region raster=F121995<br>>> >><br>>> >> and I got the layer processed and finished but the error did not went way....<br>>> >><br>>> >> |i Inter-satellite calibration of DMSP-OLS Nighttime Stable Lights<br>>> >> WARNING: Operating on current region<br>>> >><br>>> >> |> Calibrating average visible Digital Number values<br>>> >> Regression coefficients: (-0.0515, 1.2293, -0.0038) | Associated R^2: 0.9178<br>>> >><br>>> >> 360 degree EW extent is exceeded by 0.999827 cells<br>>> >> 360 degree EW extent is exceeded by 1 cells<br>>> >><br>>> >> WARNING: As requested, timestamp transferring not attempted.<br>>> >> WARNING: No data base element files found<br>>> >><br>>> >> (Sun Jun 24 17:05:31 2018) Command finished (1 min 2 sec)                      <br>>> >><br>>> >> What could be doing wrong?<br>>> >> In addition I'm doing it for one layer here, is there a way to do it for many layers at onces with command line or GUI dialog box?<br>>> >><br>>> >> Thanks a lot again.<br>>> >><br>>> >> Gabriel<br>>> >><br>>> >> On Sat, Jun 23, 2018 at 6:31 AM, Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>> wrote:<br>>> >>><br>>> >>><br>>> >>><br>>> >>> On Sat, Jun 23, 2018 at 11:10 AM, Veronica Andreo <<a href="mailto:veroandreo@gmail.com">veroandreo@gmail.com</a>> wrote:<br>>> >>> ><br>>> >>> > Hi,<br>>> >>> ><br>>> >>> > El sáb., 23 jun. 2018 4:35, Markus Metz <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>> escribió:<br>>> >>> >><br>>> >>> >><br>>> >>> >><br>>> >>> >> On Fri, Jun 22, 2018 at 10:34 PM, Veronica Andreo <<a href="mailto:veroandreo@gmail.com">veroandreo@gmail.com</a>> wrote:<br>>> >>> >> ><br>>> >>> >> > Hi Gabriel,<br>>> >>> >> ><br>>> >>> >> > What you could do is import with r.in.gdal -a  that adjusts resolution for lat long maps [0]<br>>> >>> >><br>>> >>> >> that will help to fix the resolution from 0.008333333300000 to 0.008333333333333, i.e. exactly 30 arc-seconds. The software used to create the raster data has stored the resolution with limited precision.<br>>> >>> ><br>>> >>> ><br>>> >>> > Right, I overlooked this<br>>> >>> ><br>>> >>> >> > and then (before the intercalibration step), set the region to one of the imported maps with g.region raster=yourmap<br>>> >>> >><br>>> >>> >> you will then get a message like<br>>> >>> >> 360 degree EW extent is exceeded by 1 cells<br>>> >>> >><br>>> >>> >> which is correct because the first and last column are duplicates. The cell centers cover -180, 180, and the EW extents regarding cell borders are E: 180:00:15E, W: 180:00:15W, grown by half a cell, i.e. 15 arc-seconds.<br>>> >>> ><br>>> >>> ><br>>> >>> > So, solution is to just use the data with the extra 15 arc-seconds in each side?<br>>> >>><br>>> >>> yes, or chop off the first or last column: set the region to the raster, then modify the current region with g.region w=179:59:45W -p<br>>> >>> ><br>>> >>> > Of I want data to fit 180/-180, would r.region mymap e=180 w=180 help or will it change the data?<br>>> >>><br>>> >>> this would modify the data because<br>>> >>> 1) the raster will be shifted by half a cell to the east<br>>> >>> 2) the cell size (ew resolution) will be changed<br>>> >>><br>>> >>> Markus M<br>>> >>><br>>> >>> ><br>>> >>> > Vero<br>>> >>><br>>> >><br>>> ><br>><br>><br></div>