Missing NO2 data not reported by getanc.py

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
mpenalver
Posts: 6
Joined: Thu Mar 07, 2019 7:47 pm America/New_York
Answers: 0

Missing NO2 data not reported by getanc.py

by mpenalver » Fri Mar 29, 2019 5:02 am America/New_York

When the "-n|--no2" option is specified to search for NO2 ancillary data, no error is returned if the data is missing. The meaning of that option is the opposite of "-i|--ice" and "-t|--sst", which indicate that no search for sea-ice or SST ancillary data respectively should be performed. However, in the modules.anc_utils.getanc.cleanup procedure, the NO2 error flag is treated as the ice and SST flags, lowering it to prevent unnecessary reporting if the option has been specified. Consequently, it seems that the corresponding code statement should be changed to:

    if (self.db_status & 8) and not (self.opt_flag & 2):
        self.db_status = sub(self.db_status, 8)

Tags:

mpenalver
Posts: 6
Joined: Thu Mar 07, 2019 7:47 pm America/New_York
Answers: 0

Missing NO2 data not reported by getanc.py

by mpenalver » Fri Apr 12, 2019 6:39 am America/New_York

In fact, for the three options self.opt_flag indicates that the data should be retrieved.  Therefore, the change indicated in the previous post needs to be applied to all three conditions in modules.anc_utils.getanc.cleanup or we won't get an error when any of the requested data is missing:

  if (self.db_status & 4) and not (self.opt_flag & 1):
      self.db_status = sub(self.db_status, 4)
  if (self.db_status & 8) and not (self.opt_flag & 2):
      self.db_status = sub(self.db_status, 8)
  if (self.db_status & 16) and not (self.opt_flag & 4):
      self.db_status = sub(self.db_status, 16)

Post Reply