I'm using very MODIS Swath products and need to import some bands to TIF. I'm working with MOD06_L2, MOD07_L2 and MOD11_L2 products and the MRT Swath isn't work as well. I'm using the following code:

gdalwarp -of GTIFF -tps -t_srs EPSG:4674 HDF4_EOS:EOS_SWATH:"MOD11_L2.A2014001.1305.006.2016179220648.hdf":MOD_Swath_LST:LST LST.tif

Unfortunately, the output image is blank. I need to convert 3 years of data for the products listed above.

Can anyone help me?

1 Answer 1


Are you sure that the image is blank? I used the same input image and the same code using GDAL 2.1.3 and OS X 10.12.6:

enter image description here

The resulting output opened in QGIS:

enter image description here

Check you GDAL version or compute histogram of the output .tif to be sure if the image has only blank or NULL pixels.

  • My GDAL version is 2.1.0 e and the error can be observed in line: Creating output file that is 5793P x 12L. I'm trying to install another version of GDAL to test again. Commented Sep 13, 2017 at 22:37
  • 1
    Problem solved when I has intalled GDAL 2.2.1. If you have the same problem just upgrade your GDAL for this version. See ya. Commented Sep 14, 2017 at 5:11
  • @ArgemiroLucenaAraujo great! You're welcome
    – aldo_tapia
    Commented Sep 14, 2017 at 9:25

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.