@@ -530,6 +530,27 @@ public void testReadAcquisitionTime_MB_borderPixel() throws IOException {
530530 }
531531 }
532532
533+ @ Test
534+ public void testReadAcquisitionTime_MC_borderPixel () throws IOException {
535+ final File file = getAvhrrFRAC_MC_File ();
536+
537+ try {
538+ reader .open (file );
539+
540+ final Interval interval = new Interval (5 , 5 );
541+ final ArrayInt .D2 acquisitionTime = reader .readAcquisitionTime (1 , 18654 , interval );
542+ assertNotNull (acquisitionTime );
543+
544+ NCTestUtils .assertValueAt (-2147483647 , 0 , 0 , acquisitionTime );
545+ NCTestUtils .assertValueAt (1568829593 , 1 , 1 , acquisitionTime );
546+ NCTestUtils .assertValueAt (1568829593 , 2 , 2 , acquisitionTime );
547+ NCTestUtils .assertValueAt (1568829593 , 3 , 3 , acquisitionTime );
548+ NCTestUtils .assertValueAt (1568829593 , 4 , 4 , acquisitionTime );
549+ } finally {
550+ reader .close ();
551+ }
552+ }
553+
533554 @ Test
534555 public void testReadScaled_MA () throws IOException {
535556 final File file = getAvhrrFRAC_MA_File ();
@@ -651,6 +672,44 @@ public void testReadScaled_MB() throws IOException {
651672 }
652673 }
653674
675+ @ Test
676+ public void testReadScaled_MC () throws IOException {
677+ final File file = getAvhrrFRAC_MC_File ();
678+
679+ try {
680+ reader .open (file );
681+
682+ final Interval interval = new Interval (5 , 5 );
683+ Array array = reader .readScaled (17 , 237 , interval , "radiance_2" );
684+ NCTestUtils .assertValueAt (33.49089050292969 , 1 , 1 , array );
685+ NCTestUtils .assertValueAt (34.32273864746094 , 2 , 1 , array );
686+
687+ array = reader .readScaled (18 , 238 , interval , "radiance_4" );
688+ NCTestUtils .assertValueAt (30.32760238647461 , 3 , 2 , array );
689+ NCTestUtils .assertValueAt (30.53158950805664 , 4 , 2 , array );
690+ NCTestUtils .assertValueAt (28.494470596313477 , 0 , 2 , array );
691+
692+ array = reader .readScaled (19 , 239 , interval , "reflec_1" );
693+ NCTestUtils .assertValueAt (7.737750053405762 , 1 , 3 , array );
694+ NCTestUtils .assertValueAt (7.791999816894531 , 2 , 3 , array );
695+ NCTestUtils .assertValueAt (7.683499813079834 , 3 , 3 , array );
696+
697+ array = reader .readScaled (20 , 240 , interval , "reflec_3a" );
698+ NCTestUtils .assertValueAt (0.0 , 4 , 4 , array );
699+ NCTestUtils .assertValueAt (0.0 , 0 , 4 , array );
700+ NCTestUtils .assertValueAt (0.0 , 1 , 4 , array );
701+ NCTestUtils .assertValueAt (0.0 , 2 , 4 , array );
702+
703+ array = reader .readScaled (21 , 241 , interval , "temp_4" );
704+ NCTestUtils .assertValueAt (231.36044311523438 , 3 , 0 , array );
705+ NCTestUtils .assertValueAt (230.80943298339844 , 4 , 0 , array );
706+ NCTestUtils .assertValueAt (231.90684509277344 , 0 , 0 , array );
707+ NCTestUtils .assertValueAt (232.71800231933594 , 1 , 0 , array );
708+ } finally {
709+ reader .close ();
710+ }
711+ }
712+
654713 @ Test
655714 public void testReadRaw_MA () throws IOException {
656715 final File file = getAvhrrFRAC_MA_File ();
0 commit comments