Changeset 938 for trunk


Ignore:
Timestamp:
Apr 23, 2013, 10:30:49 AM (12 years ago)
Author:
tnavarro
Message:

added changetime option in parser + ensure new time axis continuity (source of graphic bug for year-long or multiple years files)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot_v2/ppcompute.py

    r934 r938  
    187187#  northern hemisphere spring equinox.
    188188#  -----------------
    189 def mars_sol2ls(soltabin):
     189def mars_sol2ls(soltabin,forcecontinuity=True):
    190190      year_day  = 668.6
    191191      peri_day  = 485.35
     
    225225         solout[i]=ls
    226226         i=i+1
     227      if forcecontinuity:
     228         for iii in range(len(soltab)-1):
     229           while solout[iii+1] - solout[iii] > 180. :  solout[iii+1] = solout[iii+1] - 360.
     230           while solout[iii] - solout[iii+1] > 180. :  solout[iii+1] = solout[iii+1] + 360.
    227231      return solout
    228232
Note: See TracChangeset for help on using the changeset viewer.