Hi coworkers
I have received an answer to my question from Glynn, but I erased it and
I haven't realized. I ask send me the answer again please.
Thanks
Juan
--
********************************
Juan Diego Giraldo Osorio
Tel. 968 327 047
Departamento de Ingeniería Térmica y de Fluidos
Universidad Politécnica de Cartagena
España
********************************
---------- Mensaje reenviado ----------
Para: grass-dev@grass.itc.it
Asunto: [GRASS-dev] Change the resolution in the output map
De: "Juan Diego Giraldo Osorio"<Juan.Giraldo@upct.es>
Fecha: Fri, 30 Nov 2007 17:22:18 +0100 (CET)
Hi coworkers
I'm working with grass62. I'm triying to create a raster map with finer
resolution from another with coarse resolution. The problem is the next:
- My coarse resolution map (input map) have 500 m of resolution, with
1000x1000 rows*cols. This information is the same as the current region.
- I want to create a finer resolution map (output map) with 100 m of
resolution, with 5000x5000 rows*cols.
- I have been trying with the next code:
/* Adjust the region to new resolution */
region.rows = nsubpixel*nrows;
region.cols = nsubpixel*ncols;
region.format = 0;
region.compressed = 1;
G_adjust_Cell_head( ®ion , 1 , 1 );
G_set_window(®ion);
nsubpixel is 5 (500/100), and I'm writing a new header file with this
new information (region.rows=5000, region.cols=5000, region.ew_res=100,
region.ns_res=100) but when I read the new map, the next message error
is shows:
WARNING: error reading null row 115
... a lot of times.
Thanks for your help.
Juan Diego Giraldo
--
********************************
Juan Diego Giraldo Osorio
Tel. 968 327 047
Departamento de Ingeniería Térmica y de Fluidos
Universidad Politécnica de Cartagena
España
********************************
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev