Landsat Missions
Question:
How are the number of lines and samples (rows, columns) determined for a scene?
Answer:
Level 0R HDF (Hierarchical Data Format) products will contain an MTP file, which will include a Number_of_Scans field. To obtain the number of lines in the image, the value reported in the Number_of_Scans must be multiplied by 16 for bands 1- 5 and 7. In the case of bands 6L/6H, the number of lines would be the number of scans multiplied by 8; band 8 would be the same number multiplied by 32. The number of samples will always be 6600 for bands 1-5 and 7; 3300 for the bands 6L and 6H; and 13,200 for band 8.
For Level 1R and Level 1G HDF products, the MTL contains the number of lines and samples in the fields Product_Lines_bandgroup and Product_Samples_bandgroup respectively. The .hpn, .htm, and .hrf files of the Level 1G Fast L7A products contain the field's pixel_per_line and lines_per_band. For Level 1G NDF, the .H1, .H2, and .H3 files have the lines and samples in Lines_Per_Data_File and Pixels_Per_Line fields.