Skip to content
Snippets Groups Projects
Commit cdc43656 authored by Paolo Veglio's avatar Paolo Veglio
Browse files

added more logging info

parent 441b37a6
No related branches found
No related tags found
No related merge requests found
......@@ -748,19 +748,27 @@ def get_data(
sst_file=file_names["SST"],
eco_file=file_names["ECO"],
)
logger.info("Ancillary data read successfully")
viirs_data.update(ancillary.pack_data())
logger.info("Ancillary data added to the dataset")
scene_flags = scn.find_scene(
viirs_data, geo_data.sunglint_angle.values, thresholds["Snow_Mask"]
)
logger.info("Scene flags created successfully")
scene = scn.scene_id(scene_flags)
logger.info("Scene IDs processed successfully")
scene_xr = xr.Dataset()
for s in scn._scene_list:
scene_xr[s] = (("number_of_lines", "number_of_pixels"), scene[s])
logger.info("scene coordinates created successfully")
input_data = xr.Dataset(viirs_data, coords=scene_xr)
input_data.drop_vars(["latitude", "longitude"])
logger.info("get_data() ran successfully")
return input_data
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment