reading a single section of HCAST does not get valid time metadata
GeoffC is having trouble getting time information from the libHimawari metadata structure for the segmented HCAST files.
The first segment file (IMG_DK01B05_201508290810_001.bz2
, say) has the correct time information in the metadata attribute...
2016-10-13 21:50:49.206 (INFO) : IMG_DK01B05_201508290810_001.bz2 : year = 2015
2016-10-13 21:50:49.207 (INFO) : IMG_DK01B05_201508290810_001.bz2 : month = 8
2016-10-13 21:50:49.207 (INFO) : IMG_DK01B05_201508290810_001.bz2 : day = 29
2016-10-13 21:50:49.207 (INFO) : IMG_DK01B05_201508290810_001.bz2 : hour = 8
2016-10-13 21:50:49.207 (INFO) : IMG_DK01B05_201508290810_001.bz2 : minute = 10
2016-10-13 21:50:49.207 (INFO) : IMG_DK01B05_201508290810_001.bz2 : second = 21
2016-10-13 21:50:49.207 (INFO) : IMG_DK01B05_201508290810_001.bz2 : microsecond = 360000
But looking at any other segment file (IMG_DK01B05_201508290810_003.bz2
, say)...
2016-10-13 21:51:54.207 (INFO) : IMG_DK01B05_201508290810_003.bz2 : year = 0
2016-10-13 21:51:54.208 (INFO) : IMG_DK01B05_201508290810_003.bz2 : month = 0
2016-10-13 21:51:54.208 (INFO) : IMG_DK01B05_201508290810_003.bz2 : day = 0
2016-10-13 21:51:54.208 (INFO) : IMG_DK01B05_201508290810_003.bz2 : hour = 0
2016-10-13 21:51:54.208 (INFO) : IMG_DK01B05_201508290810_003.bz2 : minute = 0
2016-10-13 21:51:54.208 (INFO) : IMG_DK01B05_201508290810_003.bz2 : second = 0
2016-10-13 21:51:54.208 (INFO) : IMG_DK01B05_201508290810_003.bz2 : microsecond = 0
Test sequence:
import HimawariScene as hsd
fn='espresso/fjord/awg/ait/dc/jma/himawari08/ahi/2016/2016_10_12_286/0040/HS_H08_20161012_0040_B01_FLDK_R10_S0610.DAT'
hc = hsd.HimawariScene(fn)
[getattr(hc.metadata.start_time,x) for x in ('year', 'month', 'day', 'hour', 'minute', 'second')]
Out[6]: [2016, 10, 12, 0, 45, 4]
Goal is that partial scenes (sections missing or deliberately omitted) should still be valid scenes.