Ticket #127 (closed Defect: fixed)

Opened 6 years ago

Last modified 6 years ago

CoastWatch cloud masking fails day/night HDF files that do not contain the sun_zenith variable

Reported by: jjr8 Owned by: jjr8
Priority: Medium Milestone: 0.4
Component: Tools - Data Products - NOAA CoastWatch Version: 0.3
Keywords: Cc:

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.

Change History

Changed 6 years ago by jjr8

  • status changed from new to assigned
  • description modified (diff)
  • summary changed from CoastWatch cloud masking fails for some NOAA-15 day/night HDF files to CoastWatch cloud masking fails day/night HDF files that do not contain the sun_zenith variable

Changed 6 years ago by jjr8

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in MGET 0.4a2.

Note: See TracTickets for help on using tickets.