|
438 | 438 | "cfg_file_night": "ch4_satz_max_15_SUNZ_90_180_tdiff_120_sec_20241120.yaml",
|
439 | 439 | "cfg_file_twilight": "ch7_satz_max_15_SUNZ_80_89_tdiff_120_sec_20241120.yaml",
|
440 | 440 | "comment": "NN based on AVHRR and VGAC matchups using all AVHRR heritage channels"
|
441 |
| - } |
| 441 | + }, |
| 442 | + "NN_v4": { |
| 443 | + "cfg_file_day": "ch7_satz_max_15_SUNZ_0_80_tdiff_120_sec_20241204.yaml", |
| 444 | + "cfg_file_night": "ch4_satz_max_15_SUNZ_90_180_tdiff_120_sec_20241204.yaml", |
| 445 | + "cfg_file_twilight": "ch7_satz_max_15_SUNZ_80_89_tdiff_120_sec_20241204.yaml", |
| 446 | + "comment": "NN based on AVHRR and VGAC matchups using all AVHRR heritage channels" |
442 | 447 | }
|
| 448 | +} |
443 | 449 |
|
444 | 450 |
|
445 | 451 | def convert_to_noaa19_neural_network(scene, sbaf_version):
|
446 | 452 | """Applies AVHRR SBAF to VGAC channels using NN approach"""
|
447 | 453 |
|
448 |
| - if sbaf_version in ["NN_v1", "NN_v2", "NN_v3"]: |
| 454 | + if sbaf_version in ["NN_v1", "NN_v2", "NN_v3", "NN_v4"]: |
449 | 455 | day_cfg_file = SBAF[sbaf_version]['cfg_file_day']
|
450 | 456 | night_cfg_file = SBAF[sbaf_version]['cfg_file_night']
|
451 | 457 | twilight_cfg_file = SBAF[sbaf_version]['cfg_file_twilight']
|
@@ -563,8 +569,9 @@ def set_header_and_band_attrs(scene, orbit_n=0):
|
563 | 569 | for band in REFL_BANDS:
|
564 | 570 | if band not in scene:
|
565 | 571 | continue
|
566 |
| - # For VIIRS data sun_zenith_angle_correction_applied is applied always! |
| 572 | + # Original VGAC files provide normalized reflectances AND Earth-Sun distance corrected data |
567 | 573 | scene[band].attrs["sun_zenith_angle_correction_applied"] = "True"
|
| 574 | + scene[band].attrs['sun_earth_distance_correction_applied'] = "True" |
568 | 575 | return nimg
|
569 | 576 |
|
570 | 577 |
|
|
0 commit comments