[GRASS-user] Raster import into GRASS via shell - unwanted spatially masked
Hi I have been writing a shell script to import lots of data into my GRASS project. Since a while when importing new data, the data is imported as if I had used one of my masks, although I have not set a mask. First idea was to remove the mask with r.mask -r Output from the shell: WARNING: No existing MASK to remove Has anybody an idea how to get the full data into GRASS? Thanks ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Raster import into GRASS via shell - unwanted spatially masked
Hello, I have been writing a shell script to import lots of data into my GRASS project. Since a while when importing new data, the data is imported as if I had used one of my masks, although I have not set a mask. First idea was to remove the mask with r.mask -r Output from the shell: WARNING: No existing MASK to remove Has anybody an idea how to get the complete raster into GRASS? Thanks ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Raster import into GRASS via shell - unwanted spatially masked
Do you use r.in.gdal -e? Maybe you just need to change the color profile? Cheers Sab Hello, I have been writing a shell script to import lots of data into my GRASS project. Since a while when importing new data, the data is imported as if I had used one of my masks, although I have not set a mask. First idea was to remove the mask with r.mask -r Output from the shell: WARNING: No existing MASK to remove Has anybody an idea how to get the complete raster into GRASS? Thanks ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Raster import into GRASS via shell - unwanted spatially masked
Have you try to zoom on the extend of the imported raster ? the r.in.* modules ignore grass region during the import, but after your display use the mask and current region, so it can happend that you have imported the full raster, but see only a small part ... cheers, Sylvain 2011/2/8 razmjoo...@faunalia.co.uk: Do you use r.in.gdal -e? Maybe you just need to change the color profile? Cheers Sab Hello, I have been writing a shell script to import lots of data into my GRASS project. Since a while when importing new data, the data is imported as if I had used one of my masks, although I have not set a mask. First idea was to remove the mask with r.mask -r Output from the shell: WARNING: No existing MASK to remove Has anybody an idea how to get the complete raster into GRASS? Thanks ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Raster Import/ crop solution
Dear Micha and Hamish Thanks for your solution and explanation regarding to raster import. Still i am confusing with rgb file. There are three rgb files that created first then when using i.rectify, another three rgb come with given extension. That make in total 6 files. Then r.composite as another colored image. I wish to use this color contour map just for digitizing. So can i delete all 6 rgb files. I tried to delete three rgb files after compositing. but there is a problem for rectifying. So i had to import again those deleted rgb files. And for rectifying it took half an hour for completion. That's why i asked this question. Thanks very much. -- -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- U Kyaw Moe Aung, Staff Officer Planning Statistics Division, Forest Department, Director General's Office Nay Pyi Taw, Ph:095-67-405016, Fax: 095-67-405016 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Raster Import/ crop solution
On 06/14/2010 02:42 PM, Kyaw Moe Aung wrote: Dear Micha and Hamish Thanks for your solution and explanation regarding to raster import. Still i am confusing with rgb file. There are three rgb files that created first then when using i.rectify, another three rgb come with given extension. That make in total 6 files. Then r.composite as another colored image. I wish to use this color contour map just for digitizing. So can i delete all 6 rgb files. I tried to delete three rgb files after compositing. but there is a problem for rectifying. So i had to import again those deleted rgb files. And for rectifying it took half an hour for completion. That's why i asked this question. Thanks very much. I think your workflow should be: 1) import the tiff (r.in.gdal) creating the three *.red, *.green *.blue files 2) Add all three bands to an imagery group (i.group) 3) Set up points for the rectification (i.points) 4) Run i.rectify 5) Now you can do r.composite with the new, rectified triple of *.red, *.green, *.blue. (Review Hamish's comments about loss of information when using r.composite) 6) If you're satisfied with the result, remove all 6 separate band rasters. -- -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- U Kyaw Moe Aung, Staff Officer Planning Statistics Division, Forest Department, Director General's Office Nay Pyi Taw, Ph:095-67-405016, Fax: 095-67-405016 This mail was received via Mail-SeCure System. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user This mail was received via Mail-SeCure System. -- Micha Silver Arava Development Co. +972-52-3665918 http://surfaces.co.il ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Raster Import
On 06/12/2010 08:43 AM, Kyaw Moe Aung wrote: Dear List, I am new user for Grass GIS. I have some questions regarding Jpg or tiff import. When I use r.in.gdal which created 3 separate files as rgb. Then I use r.patch to combine rgb. After that i.point and What you probably want here is r.composite. It re-creates the colored raster. i.rectify. From this i have to digitize river, stream, road, etc. So my question is as follow: Can i remove unrectified former 3 seperate rgb files? Yes, after r.composite you can remove them. Is there any module to import without creating rgb because this increase the memory usage? I have to import more than hundreds of scanned Jpg, tiff. Imported three-band tiffs will always create three separate rasters. But you can script this to loop thru your 100's of tiff's to import, recreate the colored raster, then delete the *.red, *.green and *.blue at each loop. Can i crop the imported image without using other image software such as gimp or photoshop, etc? Yes. Just set the grass region to the area you want, and run: r.mapcalc cropped_raster=original_raster That creates a copy of the original, cropped to the current region. BTW, this can also be done in advance with gdal. Thanks for any hint -- -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- U Kyaw Moe Aung, Staff Officer Planning Statistics Division, Forest Department, Director General's Office Nay Pyi Taw, Ph:095-67-405016, Fax: 095-67-405016 This mail was received via Mail-SeCure System. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user This mail was received via Mail-SeCure System. -- Micha Silver Arava Development Co. +972-52-3665918 http://www.surfaces.co.il ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Raster Import
Can i remove unrectified former 3 seperate rgb files? Yes, after r.composite you can remove them. but note that you will lose information. the 3 bands will probably be stored with 256 bit precision, r.composite will reduce fidelity down to probably 32 bit. If you are doing any numerical analysis on satellite images, etc, this matters a lot and it's best to work with the raw bands, d.rgb, etc. If you are just using it for visual use maybe it doesn't matter. regards, Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Raster Import
Hamish wrote: Can i remove unrectified former 3 seperate rgb files? Yes, after r.composite you can remove them. but note that you will lose information. the 3 bands will probably be stored with 256 bit precision, That's 256 levels = 8 bits per component, 24 bits total. r.composite will reduce fidelity down to probably 32 bit. That's 32 levels = 5 bits per component, 15 bits total. r.composite can generate ouput with 256 levels (8 bits per component, 24 bits total), but the resulting colour tables are large, which creates a significant performance issue for any operation which needs to perform colour lookup (e.g. d.rast). If you are doing any numerical analysis on satellite images, etc, this matters a lot and it's best to work with the raw bands, d.rgb, etc. If you are just using it for visual use maybe it doesn't matter. Indeed. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Raster Import
Hamish wrote: If you are doing any numerical analysis on satellite images, etc, this matters a lot and it's best to work with the raw bands, d.rgb, etc. If you are just using it for visual use maybe it doesn't matter. Since it was not specifically mentioned: you can work with the created groups (one groups for each imported image that holds the RGB channels). In fact some imagery modules require the group(s). Later you can export as a GeoTIFF all three-channels using the group(s). Nikos ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Raster Import
Dear List, I am new user for Grass GIS. I have some questions regarding Jpg or tiff import. When I use r.in.gdal which created 3 separate files as rgb. Then I use r.patch to combine rgb. After that i.point and i.rectify. From this i have to digitize river, stream, road, etc. So my question is as follow: Can i remove unrectified former 3 seperate rgb files? Is there any module to import without creating rgb because this increase the memory usage? I have to import more than hundreds of scanned Jpg, tiff. Can i crop the imported image without using other image software such as gimp or photoshop, etc? Thanks for any hint -- -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- U Kyaw Moe Aung, Staff Officer Planning Statistics Division, Forest Department, Director General's Office Nay Pyi Taw, Ph:095-67-405016, Fax: 095-67-405016 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] raster import GRASS tools in Qgis
I'm not sure if this is the right place to post this... I have a jpg file with a world file that was created by the Georeferencer in Quantum GIS. I am trying to bring this into a mapset using the GRASS tools in Quantum GIS and I am confused. When I open the r.in.global tool I don't see any choices for the files. Am I supposed to move the jpg/wld files into a particular directory in the mapset or is there something else I am missing? Thanks, Tara ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] raster import GRASS tools in Qgis
Hi, open the raster 1st in Qgis (not through GRASS tools) Then use the GRASS tools, then you will find the file choices. Same is true for shape files too. You have another list for Qgis too. [EMAIL PROTECTED] Nice to find a fellow Indian on this list. Would you mind giving Institute: Present work with Open Source GIS: Interest in other Open source GIS. Namaste Ravi Kumar Tara Athan [EMAIL PROTECTED] wrote: I'm not sure if this is the right place to post this... I have a jpg file with a world file that was created by the Georeferencer in Quantum GIS. I am trying to bring this into a mapset using the GRASS tools in Quantum GIS and I am confused. When I open the r.in.global tool I don't see any choices for the files. Am I supposed to move the jpg/wld files into a particular directory in the mapset or is there something else I am missing? Thanks, Tara ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user