Skip to content

Commit

Permalink
Merge pull request #84 from ninahakansson/fix_metimage
Browse files Browse the repository at this point in the history
Return the filename for metimage
  • Loading branch information
ninahakansson authored Mar 6, 2024
2 parents 2568eef + 072b695 commit 78d2698
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion level1c4pps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,11 @@ def update_angle_attributes(scene, band):


def apply_sunz_correction(scene, REFL_BANDS):
"""Apply sun zenith angle correciton to visual channels."""
"""Apply sun zenith angle correciton to visual channels.
Reference https://journals.ametsoc.org/view/journals/atsc/63/4/jas3682.1.xml
"""
sza = scene['sunzenith']
mu0 = np.cos(np.radians(sza))
scaler = 24.35 / (2 * mu0 + np.sqrt(498.5225 * mu0 * mu0 + 1))
Expand Down
1 change: 1 addition & 0 deletions level1c4pps/metimage2pps_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,4 @@ def process_one_scene(scene_files, out_path,
print("Saved file {:s} after {:3.1f} seconds".format(
os.path.basename(filename),
time.time()-tic))
return filename

0 comments on commit 78d2698

Please sign in to comment.