This page (revision-27) was last changed on 26-Oct-2022 21:57 by Peter Young

This page was created on 07-Jun-2010 19:35 by PeterYoung

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
27 26-Oct-2022 21:57 7 KB Peter Young to previous
26 07-Dec-2016 14:14 6 KB Peter Young to previous | to last
25 05-Apr-2011 18:14 6 KB PeterYoung to previous | to last
24 08-Jul-2010 15:42 6 KB PeterYoung to previous | to last
23 06-Jul-2010 16:15 7 KB PeterYoung to previous | to last
22 05-Jul-2010 10:39 7 KB ViggoHanst to previous | to last
21 03-Jul-2010 14:22 7 KB ViggoHanst to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 53 changed one line
!!Exposure times
!!Exposure times and time routines
At line 60 added 51 lines
There are a number of other potentially useful methods to time related phenomena:
{{{IDL> ti=data->getti_1()
}}}
(also getti_2) to find the shutter open (and close) times in 'TI' format.
{{{IDL> ti=data->getti_1()
}}}
function eis_data::getdate,init=init
if n_elements(init) eq 1 then return, -1
dum=strsplit(self->getfilename(),'/',/extract)
filename=dum[n_elements(dum)-1]
date=(strsplit(filename,'_',/extract))[2]
return,date
end
function eis_data::date_obs2date,date_obs
if n_elements(date_obs) eq 0 then date_obs=self->getdate_obs()
date=strmid(strjoin(strsplit(date_obs,'-T:',/extract),''),0,8)
return,date
end
function eis_data::getdate_obs,init=init
if n_elements(init) eq 1 then return, -1
return,(self->gethdr())->getdate_obs()
end
function eis_data::days_since_launch,date
if n_elements(date) eq 0 then date=self->getdate_obs()
jd_date=(anytim2jd(date)).int
jd_launch=(anytim2jd((self->getcal())->getlaunch_date())).int
return,jd_date-jd_launch
end
function eis_data::ti2tai,ti,init=init
; time ti, ICU in mdp units of 1/512 s, converted to atomic time units (tai) (sort of....)
if n_elements(init) eq 1 then return, -1
if n_elements(ti) eq 0 then ti=*(self->getaux_data()).ti_1
return,anytim2tai(self->getinfo('date_obs'))+self->sec_from_obs_start(ti)
end
function eis_data::ti2utc,ti,init=init
if n_elements(init) eq 1 then return, -1
if n_elements(ti) eq 0 then ti=*(self->getaux_data()).ti_1
return,anytim2utc(self->ti2tai(ti),/time_only,/ccsds,/truncate)
end