I have downloaded an modis hdf file.it is l1 and its name is MOD021KM ..I want to convert it to radiance.so I performed this steps in envi

Open>EOS>MODIS selected modis hdf file.then I tried to run Radiometric Calibration but when I select the image it says image must have gain and offset for each band.I tried to opent image from open>generic format>hdf but there is not any hdf format there.

Anyway.I think envi does not recognize gains and offsets.I have checked metadata of opened file and the table of gains and offsets is empty.

I am using Envi 5.1

Can you please help me to fix this problem?

  • Majid, you can use the 'read_sds_attributes' that comes with the MODAT tool suite to pick up this values. I think it is easier if you can script your process. Check here: scientiaplusconscientia.wordpress.com/2014/08/06/…
    – user21313
    Nov 20, 2014 at 13:15
  • Slam.mn software installed, but I do not know envi mckt How do I install? Version 5.1 of our software is .... thanks
    – user76793
    Jun 24, 2016 at 18:13
  • This isn't an answer. Please ask a new question. Jun 24, 2016 at 18:16

1 Answer 1


You should use MCTK to convert MOD021KM data to radiance. MCTK is a plugin in ENVI and can also be used in IDL. This tool can be downloaded from MCTK

  • Thank you for your help.I tried to register to that site in case of downloading it but it has internal error..Is there any mirrors or sth like that to download?After converting to radiance Can I use it in ENVI?
    – Majid
    Oct 18, 2014 at 13:51
  • I downloaded it but it is used to subset data..Where I can calculate radiance?
    – Majid
    Oct 18, 2014 at 14:20
  • I am sorry. I made a mistake. Now I have revise it. You can use MCTK.
    – JZH
    Oct 19, 2014 at 13:05

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.