Opened 16 years ago
Closed 15 years ago
#369 closed defect (fixed)
r.mapcalc not correctly determining null space around r.external data set
Reported by: | dickeya | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 6.4.0 |
Component: | Raster | Version: | 6.4.0 RCs |
Keywords: | r.external | Cc: | |
CPU: | x86-64 | Platform: | Linux |
Description
Here's what I'm seeing:
I have a geotiff file that I link to using r.external (output=test_ras). I set the region to have 1px of null space around the input raster, and then run:
r.mapcalc "out_ras = if(isnull(test_ras),0,null())"
I expect out_rast to have all nulls set to 0, including the 1px buffer. The north and south borders are correctly detected as null and set to 0, but the east and west borders are still null in the output.
If I import the same geotiff using r.in.gdal and run the same routine, everything works as expected and I have a ring of 0s around my new data set.
Attachments (1)
Change History (6)
by , 15 years ago
Attachment: | N61E043_small_nd.tif added |
---|
comment:1 by , 15 years ago
Version: | svn-develbranch6 → 6.4.0 RCs |
---|
Still seeing this problem - here is my exact workflow:
r.external in=N61E043_small_nd.tif out=N61E043_small_nd g.region -a n=62.0087569444 s=60.9912430556 w=42.9912430556 e=44.0087569444 r.mapcalc "temp_null=if(isnull(N61E043_small_nd),1,null())"
I should be seeing a continuous ring of nodata around the raster. Instead I get the first and last row, and none of the first and last column (except those pixels in the first and last row).
If I run r.in.gdal, the routine works as expected.
comment:2 by , 15 years ago
Keywords: | r.external added |
---|
comment:3 by , 15 years ago
follow-up: 5 comment:4 by , 15 years ago
I see that r39890 updates develbranch_6 - can this be added to 6.4?
comment:5 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
test raster