<div dir="ltr"><div><div><div><div><div><div><div>Hi devs, <br><br></div>I just found something odd. I have a CHIRPS tif for Africa [0], but I would only need to import Ghana, so I used r.in.gdal -r. However when I visualize the data, most of it is nodata, while the full map of Africa has data all over the continent. Then, I tried also with r.import extent=region. Same result. The only thing providing what I expected to be the right result (a subset from the full map) is importing the whole map and then using r.mapcalc to clip (i need the space in my hard disk)<br><br></div></div>These are the commands and r.univar output and I attach a screenshot with the visual results: <br><br></div><div># import ghana boundaries from GADM<br></div><div>v.import input=GHA_adm0.shp output=GHA_adm0<br>g.region vector=GHA_adm0<br><br># import full map<br>r.in.gdal in=Desktop/chirps-v2.0.2003.01.01.tif out=chirps_full<br><br># import subsets<br>r.in.gdal -r in=chirps-v2.0.2003.01.01.tif out=chirps_ghana1<br>r.import in=chirps-v2.0.2003.01.01.tif out=chirps_ghana2 extent=region<br><br># subset imported full map<br>r.mapcalc expression="chirps_ghana3 = chirps_full"<br><br></div><div>### r.univar outputs<br><br>r.univar chirps_ghana1<br><br>n: 12052<br>minimum: -9999<br>maximum: 0<br>range: 9999<br>mean: -9984.07<br>mean of absolute values: 9984.07<br>standard deviation: 386.135<br>variance: 149100<br>variation coefficient: -3.86751 %<br>sum: -120327966<br><br>r.univar chirps_ghana2<br><br>n: 12052<br>minimum: -9999<br>maximum: 0<br>range: 9999<br>mean: -9984.07<br>mean of absolute values: 9984.07<br>standard deviation: 386.135<br>variance: 149100<br>variation coefficient: -3.86751 %<br>sum: -120327966<br><br></div><div>## full map (region set to ghana)<br></div><div>r.univar chirps_full<br><br>n: 12052<br>minimum: -9999<br>maximum: 0<br>range: 9999<br>mean: -979.822<br>mean of absolute values: 979.822<br>standard deviation: 2972.74<br>variance: 8.83719e+06<br>variation coefficient: -303.396 %<br>sum: -11808819<br><br></div><div>## subset obtained with r.mapcalc<br></div><div>r.univar chirps_ghana3<br><br>n: 12052<br>minimum: -9999<br>maximum: 0<br>range: 9999<br>mean: -979.822<br>mean of absolute values: 979.822<br>standard deviation: 2972.74<br>variance: 8.83719e+06<br>variation coefficient: -303.396 %<br>sum: -11808819<br><br>What am I doing wrong here? I appreciate any hint :)<br><br>I use grass trunk r72618<br></div></div><br></div>Cheers, <br></div>Vero<br><br>[0] <a href="ftp://ftp.chg.ucsb.edu/pub/org/chg/products/CHIRPS-2.0/africa_daily/tifs/p05/" target="_blank" shape="rect">ftp://ftp.chg.ucsb.edu/pub/org/chg/products/CHIRPS-2.0/africa_daily/tifs/p05/</a><br></div>