Re: [Qgis-user] QGIS won't open Martian .img files
Le dimanche 10 juillet 2016 20:33:12, Adam Neather a écrit : > Thanks to Even Rouault and Nicolas Cadieux for the replies. I think we > can say that I need the GDAL driver to open the Mars data .img files > with QGIS. > > Next question - how do I install the driver? Thanks to Even and Nicolas > I've found the download page and have the software, but I'm not sure how > to use it with QGIS. Do I have to load it as a custom plug in? If so, > how? If I follow Even correctly, then I can load it at the same time as > the .img; is that simply a matter of opening both files (the .img and > the GDAL driver) at the same time, when loading a raster? You don't have to download anything. The driver is built in base GDAL. Just open the .lbl file in QGIS with "Add raster layer" or drag&drop the .lbl and that should work. -- Spatialys - Geospatial professional services http://www.spatialys.com ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS won't open Martian .img files
Thanks to Even Rouault and Nicolas Cadieux for the replies. I think we can say that I need the GDAL driver to open the Mars data .img files with QGIS. Next question - how do I install the driver? Thanks to Even and Nicolas I've found the download page and have the software, but I'm not sure how to use it with QGIS. Do I have to load it as a custom plug in? If so, how? If I follow Even correctly, then I can load it at the same time as the .img; is that simply a matter of opening both files (the .img and the GDAL driver) at the same time, when loading a raster? Thanks again for all the help so far, it's very much appreciated. -- - Adam Neather -- - ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS won't open Martian .img files
Le vendredi 08 juillet 2016 14:32:55, Adam Neather a écrit : > Hello everyone, > > I'm trying to use QGIS to get topographic profiles from Mars Global > Surveyor data. (Example link below.) While QGIS will open the .lbl files > as a raster with no problem, I always get the error "Unsupported Data > Source: /Users/username/Desktop/megr00n180hb.img is not a supported > raster data source" when trying to open the .img. (In fact, this is only > under Windows 10; QGIS on Mac OS X refuses to open the .lbl files, too, > with the same error message.) > > The .img files included with the sample data for the tutorials loads > fine, so I'm not sure what it is I'm doing wrong. Adam, It is expected that you cannot use directly the .img. The GDAL PDS driver needs to be provided with the .lbl file and it will then automatically load the .img. I've tried opening http://pds-geosciences.wustl.edu/mgs/mgs-m-mola-5-megdr-l3- v1/mgsl_300x/meg004/mega90n000cb.lbl with QGIS 2.14.3 / GDAL 2.1 on Windows and it works fine for me. Works fine on Linux too with at least all GDAL versions >= 1.11. Even > > A colleague has suggested it may be because I need a plug-in to be able > to read NASA's Planetary Data System file format, but I can't find > anything about that in the official plug-in repository or when searching > online. > > Weird thing is, I'm returning to a project from a few years ago, and we > used QGIS back then to work with this data set, so I'm as confused as > it's possible to get! > > Any help greatly appreciated, > > http://pds-geosciences.wustl.edu/mgs/mgs-m-mola-5-megdr-l3-v1/mgsl_300x/meg > 004/ -- Spatialys - Geospatial professional services http://www.spatialys.com ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS won't open Martian .img files
On 8 July 2016 at 14:13, Nicolas Cadieux wrote: > Hi, > > Qgis uses gdal library to deal with rasters. I found some information in > the link below. Perhaps the gdal user group could help. It is possible > that you need an extra driver to read the files. (Perhaps installable via > the osgeo4w Qgis installer). You can also try the semi automatic > classification plugin that is use for remote sensing imagery. Perhaps there > is something in that plugin that could help. > > http://www.gdal.org/frmt_pds.html > > Nicolas > > On Jul 8, 2016 08:25, "Adam Neather [via OSGeo.org]" <[hidden email]> wrote: > > Hello everyone, > > I'm trying to use QGIS to get topographic profiles from Mars Global > Surveyor data. (Example link below.) While QGIS will open the .lbl files > as a raster with no problem, I always get the error "Unsupported Data > Source: /Users/username/Desktop/megr00n180hb.img is not a supported > raster data source" when trying to open the .img. (In fact, this is only > under Windows 10; QGIS on Mac OS X refuses to open the .lbl files, too, > with the same error message.) > > The .img files included with the sample data for the tutorials loads > fine, so I'm not sure what it is I'm doing wrong. > > A colleague has suggested it may be because I need a plug-in to be able > to read NASA's Planetary Data System file format, but I can't find > anything about that in the official plug-in repository or when searching > online. > > Weird thing is, I'm returning to a project from a few years ago, and we > used QGIS back then to work with this data set, so I'm as confused as > it's possible to get! > > Any help greatly appreciated, > > http://pds-geosciences.wustl.edu/mgs/mgs-m-mola-5-megdr-l3-v1/mgsl_300x/meg004/ > > -- > - > > Adam Neather If you have access to GMT it is fairly straightforward. So if you had say the gravity anomaly data, the GMT command (windows commad window): GMT parameters to grid 2016 Mars gravity grids: http://pds-geosciences.wustl.edu/mro/mro-m-rss-5-sdp-v1/mrors_1xxx/data/rsdmap/ xyz2grd ggmro_120_anom_100.img -GGGM-3_anom.grd -R0/360/-90/90 -I5760+/2880+ -ZTLd -V Note: the Increment -I setting is set to use the exact node dimensions (with the +) I think the data gives you the exact size of the raster and the coordinates. To get this into QGIS you could convert (from GMT) to .asc or Surfer .grd eg grdconvert grav.grd grav.asc=ef or grdconvert grav.grd grav_surfer.grd=sf These data formats are the ones I use most for rasters in QGIS. Hope this helps. Lester ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] QGIS won't open Martian .img files
Hi, Qgis uses gdal library to deal with rasters. I found some information in the link below. Perhaps the gdal user group could help. It is possible that you need an extra driver to read the files. (Perhaps installable via the osgeo4w Qgis installer). You can also try the semi automatic classification plugin that is use for remote sensing imagery. Perhaps there is something in that plugin that could help. http://www.gdal.org/frmt_pds.html Nicolas On Jul 8, 2016 08:25, "Adam Neather [via OSGeo.org]"wrote: Hello everyone, I'm trying to use QGIS to get topographic profiles from Mars Global Surveyor data. (Example link below.) While QGIS will open the .lbl files as a raster with no problem, I always get the error "Unsupported Data Source: /Users/username/Desktop/megr00n180hb.img is not a supported raster data source" when trying to open the .img. (In fact, this is only under Windows 10; QGIS on Mac OS X refuses to open the .lbl files, too, with the same error message.) The .img files included with the sample data for the tutorials loads fine, so I'm not sure what it is I'm doing wrong. A colleague has suggested it may be because I need a plug-in to be able to read NASA's Planetary Data System file format, but I can't find anything about that in the official plug-in repository or when searching online. Weird thing is, I'm returning to a project from a few years ago, and we used QGIS back then to work with this data set, so I'm as confused as it's possible to get! Any help greatly appreciated, http://pds-geosciences.wustl.edu/mgs/mgs-m-mola-5-megdr-l3-v1/mgsl_300x/meg004/ -- - Adam Neather -- - ___ Qgis-user mailing list [hidden email] List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user If you reply to this email, your message will be added to the discussion below: http://osgeo-org.1560.x6.nabble.com/QGIS-won-t-open-Martian-img-files-tp5275411.html To start a new topic under Quantum GIS - User, email ml-node+s1560n4125267h38@n6.nabble.com To unsubscribe from Quantum GIS - User, click here . NAML -- View this message in context: http://osgeo-org.1560.x6.nabble.com/QGIS-won-t-open-Martian-img-files-tp5275411p5275423.html Sent from the Quantum GIS - User mailing list archive at Nabble.com.___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QGIS won't open Martian .img files
Hello everyone, I'm trying to use QGIS to get topographic profiles from Mars Global Surveyor data. (Example link below.) While QGIS will open the .lbl files as a raster with no problem, I always get the error "Unsupported Data Source: /Users/username/Desktop/megr00n180hb.img is not a supported raster data source" when trying to open the .img. (In fact, this is only under Windows 10; QGIS on Mac OS X refuses to open the .lbl files, too, with the same error message.) The .img files included with the sample data for the tutorials loads fine, so I'm not sure what it is I'm doing wrong. A colleague has suggested it may be because I need a plug-in to be able to read NASA's Planetary Data System file format, but I can't find anything about that in the official plug-in repository or when searching online. Weird thing is, I'm returning to a project from a few years ago, and we used QGIS back then to work with this data set, so I'm as confused as it's possible to get! Any help greatly appreciated, http://pds-geosciences.wustl.edu/mgs/mgs-m-mola-5-megdr-l3-v1/mgsl_300x/meg004/ -- - Adam Neather -- - ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user