Ticket #127 (closed Defect: fixed)
CoastWatch cloud masking fails day/night HDF files that do not contain the sun_zenith variable
|Reported by:||jjr8||Owned by:||jjr8|
|Component:||Tools - Data Products - NOAA CoastWatch||Version:||0.3|
Description (last modified by jjr8) (diff)
Currently, the MGET CoastWatch code cannot perform cloud masking on day/night images unless a sun_zenith variable is provided. If one is not provided, this error will be raised:
ValueError: The CoastWatch file C:\temp10\2003_316_2318_n15_sr.hdf does not contain the solar zenith variable sun_zenith. Because the scene time of this file is "day/night", the solar zenith variable must be available for cloud masking to be performed. Please specify the file that contains this variable for the solar zenith file parameter, or, if this tool is the type that processes CoastWatch images in a list or table, in the solar zenith file field.
It turns out, as with 2003_316_2318_n15_sr.hdf, that the sun_zenith variable will be omitted if all pixels are nighttime pixels. I am not sure why the image would then be classified as day/night. I need to follow up with Peter Hollemans about this. But for now, I will change the code to assume that all pixels are nighttime if a sun_zenith variable is not provided.