Re: [GRASS-user] r.in.gdal and .raw files
Mistery SOLVED.. the file got damaged during copy. The proper file is read by gdal and obviously by grass. sorry for noise madi On Wed, Feb 4, 2015 at 11:54 AM, Margherita Di Leo wrote: > > > On Wed, Feb 4, 2015 at 11:24 AM, Markus Neteler wrote: > >> >> - copy-paste the command here >> > > $ gdalinfo mosaic_RGB.raw > ERROR 4: `mosaic_RGB.raw' not recognised as a supported file format. > > gdalinfo failed - unable to open 'mosaic_RGB.raw'. > > >> - run "file thefilename" and post the output? >> > > $ file mosaic_RGB.raw > mosaic_RGB.raw: empty > > >> >> And which OS, > > > Lubuntu Osgeo-Live 8.0 > > >> which GRASS version? >> > > GRASS GIS 7.1.svn (r64388) > > ciao madi > -- Best regards, Dr. Margherita DI LEO Scientific / technical project officer European Commission - DG JRC Institute for Environment and Sustainability (IES) Via Fermi, 2749 I-21027 Ispra (VA) - Italy - TP 261 Tel. +39 0332 78 3600 margherita.di-...@jrc.ec.europa.eu Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.in.gdal and .raw files
On Wed, Feb 4, 2015 at 11:24 AM, Markus Neteler wrote: > > - copy-paste the command here > $ gdalinfo mosaic_RGB.raw ERROR 4: `mosaic_RGB.raw' not recognised as a supported file format. gdalinfo failed - unable to open 'mosaic_RGB.raw'. > - run "file thefilename" and post the output? > $ file mosaic_RGB.raw mosaic_RGB.raw: empty > > And which OS, Lubuntu Osgeo-Live 8.0 > which GRASS version? > GRASS GIS 7.1.svn (r64388) ciao madi ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.in.gdal and .raw files
On Wed, Feb 4, 2015 at 10:59 AM, Margherita Di Leo wrote: > On Wed, Feb 4, 2015 at 10:51 AM, Markus Neteler wrote: ... >> What does gdalinfo report on the file? If that works, r.in.gdal will work, >> too. > > Says that it is not recognised as a supported file format. Do you mind to - copy-paste the command here - run "file thefilename" and post the output? And which OS, which GRASS version? ciao Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.in.gdal and .raw files
Markus, On Wed, Feb 4, 2015 at 10:51 AM, Markus Neteler wrote: > On Wed, Feb 4, 2015 at 10:45 AM, Margherita Di Leo > wrote: > > On Wed, Feb 4, 2015 at 10:30 AM, Markus Neteler > wrote: > ... > >> ... are you using the same GDAL version in QGIS and GRASS GIS? > > > > 1.10.1 (2013/08/26) > > Not that new :-) > So am I :-P (You're right) > > >> But if it is a mosaic, the camera file got already postprocessed? > > > > Yes, sorry if I was unclear on this. It comes with its .hdr, in which I > read > > it's been postprocessed with ENVI. > > Aha, so it is an ENVI file. > > > However my curiosity was about qgis > > handling it and grass not, using the same version of gdal.. > > What does gdalinfo report on the file? If that works, r.in.gdal will work, > too. > Says that it is not recognised as a supported file format. > Important: > > http://www.gdal.org/frmt_various.html#ENVI > "To select an existing ENVI raster file select the binary file > containing the data..." > > Maybe you specified the hdr file? > Nope. I'm sure I specified the raw file. > > Markus > -- Best regards, Dr. Margherita DI LEO Scientific / technical project officer European Commission - DG JRC Institute for Environment and Sustainability (IES) Via Fermi, 2749 I-21027 Ispra (VA) - Italy - TP 261 Tel. +39 0332 78 3600 margherita.di-...@jrc.ec.europa.eu Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.in.gdal and .raw files
On Wed, Feb 4, 2015 at 10:45 AM, Margherita Di Leo wrote: > On Wed, Feb 4, 2015 at 10:30 AM, Markus Neteler wrote: ... >> ... are you using the same GDAL version in QGIS and GRASS GIS? > > 1.10.1 (2013/08/26) Not that new :-) >> But if it is a mosaic, the camera file got already postprocessed? > > Yes, sorry if I was unclear on this. It comes with its .hdr, in which I read > it's been postprocessed with ENVI. Aha, so it is an ENVI file. > However my curiosity was about qgis > handling it and grass not, using the same version of gdal.. What does gdalinfo report on the file? If that works, r.in.gdal will work, too. Important: http://www.gdal.org/frmt_various.html#ENVI "To select an existing ENVI raster file select the binary file containing the data..." Maybe you specified the hdr file? Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.in.gdal and .raw files
Markus, On Wed, Feb 4, 2015 at 10:30 AM, Markus Neteler wrote: > On Wed, Feb 4, 2015 at 9:46 AM, Margherita Di Leo > wrote: > > On Tue, Feb 3, 2015 at 9:22 PM, Markus Metz > >> On Tue, Feb 3, 2015 at 2:41 PM, Margherita Di Leo > >> wrote: > >> > anyone has experience with .raw files? I happen to have one to analyze > >> > (quite large indeed) and r.in.gdal doesn't seem to support it. > However, > >> > for some magics, qgis is able to open it and I'm now converting it to > tif. > > ... are you using the same GDAL version in QGIS and GRASS GIS? > 1.10.1 (2013/08/26) > > >> > But it's taking kinda forever. Any better idea? > >> > >> A .raw file could be a raw data file from a digital camera, but it can > >> also be anything else. Can QGIS tell you what kind of file this is? > > > > It is mosaic from digital camera (RGB). > > But if it is a mosaic, the camera file got already postprocessed? > Yes, sorry if I was unclear on this. It comes with its .hdr, in which I read it's been postprocessed with ENVI. However my curiosity was about qgis handling it and grass not, using the same version of gdal.. > If not, there are various formats: > https://en.wikipedia.org/wiki/Raw_image_format#File_contents > > ciao > markusN > -- Best regards, Dr. Margherita DI LEO Scientific / technical project officer European Commission - DG JRC Institute for Environment and Sustainability (IES) Via Fermi, 2749 I-21027 Ispra (VA) - Italy - TP 261 Tel. +39 0332 78 3600 margherita.di-...@jrc.ec.europa.eu Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.in.gdal and .raw files
On Wed, Feb 4, 2015 at 9:46 AM, Margherita Di Leo wrote: > On Tue, Feb 3, 2015 at 9:22 PM, Markus Metz >> On Tue, Feb 3, 2015 at 2:41 PM, Margherita Di Leo >> wrote: >> > anyone has experience with .raw files? I happen to have one to analyze >> > (quite large indeed) and r.in.gdal doesn't seem to support it. However, >> > for some magics, qgis is able to open it and I'm now converting it to tif. ... are you using the same GDAL version in QGIS and GRASS GIS? >> > But it's taking kinda forever. Any better idea? >> >> A .raw file could be a raw data file from a digital camera, but it can >> also be anything else. Can QGIS tell you what kind of file this is? > > It is mosaic from digital camera (RGB). But if it is a mosaic, the camera file got already postprocessed? If not, there are various formats: https://en.wikipedia.org/wiki/Raw_image_format#File_contents ciao markusN ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.in.gdal and .raw files
Hi Markus, On Tue, Feb 3, 2015 at 9:22 PM, Markus Metz wrote: > On Tue, Feb 3, 2015 at 2:41 PM, Margherita Di Leo > wrote: > > Hi, > > > > anyone has experience with .raw files? I happen to have one to analyze > > (quite large indeed) and r.in.gdal doesn't seem to support it. However, > for > > some magics, qgis is able to open it and I'm now converting it to tif. > But > > it's taking kinda forever. Any better idea? > > A .raw file could be a raw data file from a digital camera, but it can > also be anything else. Can QGIS tell you what kind of file this is? > It is mosaic from digital camera (RGB). Thanks, madi > > Markus M > > -- Best regards, Dr. Margherita DI LEO Scientific / technical project officer European Commission - DG JRC Institute for Environment and Sustainability (IES) Via Fermi, 2749 I-21027 Ispra (VA) - Italy - TP 261 Tel. +39 0332 78 3600 margherita.di-...@jrc.ec.europa.eu Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.in.gdal and .raw files
On Tue, Feb 3, 2015 at 2:41 PM, Margherita Di Leo wrote: > Hi, > > anyone has experience with .raw files? I happen to have one to analyze > (quite large indeed) and r.in.gdal doesn't seem to support it. However, for > some magics, qgis is able to open it and I'm now converting it to tif. But > it's taking kinda forever. Any better idea? A .raw file could be a raw data file from a digital camera, but it can also be anything else. Can QGIS tell you what kind of file this is? Markus M > > Thank you in advance > > -- > Best regards, > > Dr. Margherita DI LEO > Scientific / technical project officer > > European Commission - DG JRC > Institute for Environment and Sustainability (IES) > Via Fermi, 2749 > I-21027 Ispra (VA) - Italy - TP 261 > > Tel. +39 0332 78 3600 > margherita.di-...@jrc.ec.europa.eu > > Disclaimer: The views expressed are purely those of the writer and may not > in any circumstance be regarded as stating an official position of the > European Commission. > > ___ > 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