0

following this guide http://www.gdal.org/frmt_msg.html I want to convert my MSG3 HRIT format files in TIFF but I get this error

gdal_translate H-00 0-MSG3__-MSG3________-IR_097___-000008___-201410281200-C_ gg.tif
ERROR 4: `H-000-MSG3__-MSG3________-IR_097___-000008___-201410281200-C_' not recognised as a supported file format.
GDALOpen failed - 4
`H-000-MSG3__-MSG3________-IR_097___-000008___-201410281200-C_' not recognised as a supported file format.

The same error I have on windows.

Can you help me?

2
  • 1
    Perhaps your GDAL is not built with MSG driver. Try ´gdalinfo --format MSG´ and read the response.
    – user30184
    Commented May 29, 2015 at 10:47
  • At least OSGEO4W and gisinternals builds of GDAL do not include the MSG driver.
    – AndreJ
    Commented May 29, 2015 at 11:03

1 Answer 1

1

The problem is that the filename has a space in it, and the two parts of the filename are being intepreted as two arguments. This isn't really a GDAL problem, but rather how shells work.

Try adding a quote around the filename, or just rename the file.

4
  • May be, but space in `H-00 0´ gives a different error message for me on Windows: FAILURE: Too many command options.
    – user30184
    Commented May 29, 2015 at 10:45
  • OK, exactly what do you think the input filename is? What does gdalinfo for that filename (in quotes) show?
    – BradHards
    Commented May 29, 2015 at 10:54
  • 1
    My test was rename test.tif "H-00 0-MSG3__-MSG3________-IR_097___-000 008___-201410281200-C_" and gdalinfo "H-00 0-MSG3__-MSG3________-IR_097___-000008___-2014102 81200-C_". Gdalinfo gives normal report from the renamed tiff. But by reading gdal.org/frmt_msg.html there should not be any space in H-00 0 Obviously this format has a fixed pattern for filenames.
    – user30184
    Commented May 29, 2015 at 10:57
  • Sorry, I mixed your comment with the OP.
    – BradHards
    Commented May 29, 2015 at 11:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.