Project

General

Profile

Bug #3550

NeverUpError

Added by Ben Hambrecht over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Start date:
02/28/2013
Due date:
% Done:

0%

Estimated time:
Duration:

Description

It looks like this is designed to abort. What is the difference between this and simply returning an empty target file?

28-02-2013 10:10  DEBUG    ObsSim          Next target: [Field, SPT, RA: -58.7, DEC: -5.95, Tray: tray_r]
28-02-2013 10:10  DEBUG    ObsSim          Starting environment simulation..
28-02-2013 10:10  DEBUG    ObsSim          Airmass at pointing: 1.72
28-02-2013 10:10  DEBUG    ObsSim          Sky background is ok. SCHEDULING the target..
28-02-2013 10:10  DEBUG    ObsSim          Found unique exposure number for next exposure: 488
28-02-2013 10:10  INFO     ObsSim          Adding science target at RA -58.73, DEC -5.95, tray_r, SPT, exp 488
28-02-2013 10:10  DEBUG    ObsSim          SCHEDULED! <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
28-02-2013 10:10  DEBUG    ObsSim          Updating current time after exposure...
28-02-2013 10:10  INFO     ObsSim          TIME NOW: 02 Jun - 05:28
28-02-2013 10:10  DEBUG    ObsSim          Still targets visible in field SPT for filter tray tray_r
28-02-2013 10:10  DEBUG    ObsSim          Next target: [Field, SPT, RA: -58.7, DEC: -5.95, Tray: tray_r]
28-02-2013 10:10  DEBUG    ObsSim          Starting environment simulation..
28-02-2013 10:10  DEBUG    ObsSim          Airmass at pointing: 1.71
28-02-2013 10:10  DEBUG    ObsSim          Sky background is ok. SCHEDULING the target..
28-02-2013 10:10  DEBUG    ObsSim          Found unique exposure number for next exposure: 489
28-02-2013 10:10  INFO     ObsSim          Adding science target at RA -58.73, DEC -5.95, tray_r, SPT, exp 489
28-02-2013 10:10  DEBUG    ObsSim          SCHEDULED! <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
28-02-2013 10:10  DEBUG    ObsSim          Updating current time after exposure...
28-02-2013 10:10  INFO     ObsSim          TIME NOW: 02 Jun - 05:29
28-02-2013 10:10  DEBUG    ObsSim          Still targets visible in field SPT for filter tray tray_r
28-02-2013 10:10  DEBUG    ObsSim          Next target: [Field, SPT, RA: -58.7, DEC: 30.35, Tray: tray_r]
28-02-2013 10:10  DEBUG    ObsSim          Starting environment simulation..
28-02-2013 10:10  DEBUG    ObsSim          Airmass out of range.
28-02-2013 10:10  DEBUG    ObsSim          Airmass at pointing: 4.70
28-02-2013 10:10  DEBUG    ObsSim          Seems that the field is setting, let's change the target selection to HIGH RA positions...
28-02-2013 10:10  DEBUG    ObsSim          Still targets visible in field SPT for filter tray tray_r
28-02-2013 10:10  DEBUG    ObsSim          Next target: [Field, SPT, RA: 103.9, DEC: 15.50, Tray: tray_r]
28-02-2013 10:10  DEBUG    ObsSim          Starting environment simulation..
28-02-2013 10:10  DEBUG    ObsSim          Airmass out of range.
28-02-2013 10:10  DEBUG    ObsSim          Airmass at pointing: -1.10
28-02-2013 10:10  DEBUG    ObsSim          The field has set. Let's see if there is other field visible now.
28-02-2013 10:10  DEBUG    ObsSim          Fields VISIBILITY
28-02-2013 10:10  DEBUG    ObsSim          Altitude limit is 34.85 to constraint Airmass < 1.75
28-02-2013 10:10  DEBUG    ObsSim          Field SPT: [-60.0, 105.0, -65.0, 110.0]
28-02-2013 10:10  DEBUG    ObsSim          Field not visible at beginning of the night
---------------------------------------------------------------------------
NeverUpError                              Traceback (most recent call last)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
    176             else:
    177                 filename = fname
--> 178             __builtin__.execfile(filename, *where)

/Users/ben/Documents/DESpec/repo/despec/Survey_Strategy/Survey_Strategy_Serrano/ObsSim.py in <module>()
   1525 # =====================================================
   1526 if __name__ == '__main__':
-> 1527     main()
   1528 
   1529 

/Users/ben/Documents/DESpec/repo/despec/Survey_Strategy/Survey_Strategy_Serrano/ObsSim.py in main()
   1519         print "Scheduling survey..." 
   1520         # Schedule Planified Targets in Nights
-> 1521         pau_survey_strategy.target_scheduler()
   1522         print "...done." 
   1523         pau_survey_strategy.yaml_to_databank()

/Users/ben/Documents/DESpec/repo/despec/Survey_Strategy/Survey_Strategy_Serrano/ObsSim.py in target_scheduler(self)
    262 
    263                             # Update fields visibility
--> 264                             fields_visibility = self.compute_area_fields_visibility(obs_range, use_remaining_fields_only=True)
    265 
    266                             # List uncompleted fields

/Users/ben/Documents/DESpec/repo/despec/Survey_Strategy/Survey_Strategy_Serrano/ObsSim.py in compute_area_fields_visibility(self, obs_range, use_remaining_fields_only)
    915                 log.debug("Field not visible at beginning of the night")
    916 
--> 917                 next_field_min_rise = min(self.observatory.next_rising(field_ephem_c1),
    918                                           self.observatory.next_rising(field_ephem_c2),
    919                                           self.observatory.next_rising(field_ephem_c3),

/Library/Python/2.7/site-packages/ephem/__init__.pyc in next_rising(self, body, start, use_center)
    443     def next_rising(self, body, start=None, use_center=False):
    444         """Move to the given body's next rising, returning the date.""" 
--> 445         return self._riset_helper(body, start, use_center, True, False)
    446 
    447     def next_setting(self, body, start=None, use_center=False):

/Library/Python/2.7/site-packages/ephem/__init__.pyc in _riset_helper(self, body, start, use_center, rising, previous)
    421             d1 = visit_antitransit()
    422         else:
--> 423             d1 = visit_transit()
    424 
    425         def f(d):

/Library/Python/2.7/site-packages/ephem/__init__.pyc in visit_transit()
    365             if body.alt + body.radius * use_radius - self.horizon <= 0:
    366                 raise NeverUpError('%r transits below the horizon at %s'
--> 367                                    % (body.name, d))
    368             return d
    369 

NeverUpError: None transits below the horizon at 2013/6/2 08:05:04

History

#1 Updated by Santiago Serrano over 7 years ago

That might be due to old data holded in the data base. I ran it over the whole survey and never got this error. Please confirm that the error is gone when the database is erased/restored. If yes we will force the database recreate at the beginning of the module.

#2 Updated by Brian Nord over 7 years ago

  • Status changed from New to Closed


Also available in: Atom PDF