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 62 changed one line
{{{IDL> ti=data->getti_1()
{{{IDL> ti1=data->getti_1()
IDL> ti2=data->getti_2()
At line 65 changed one line
(also getti_2) to find the shutter open (and close) times in 'TI' format.
to find the shutter open (and close) times in 'TI' format.
At line 68 added 4 lines
{{{IDL> tai=data->ti2tai(ti)
IDL> tai=data->ti2utc(ti)
IDL> sec=data->sec_from_obs_start(ti)
}}}
At line 68 changed one line
{{{IDL> ti=data->getti_1()
Convert 'TI' format time to atomic time units ('TAI') or UTC, if no 'ti' parameter is given, the shutter open (ti_1) times for the data object are converted. The final method 'SEC_FROM_OBS_START' computes the number of seconds from the start of observations given by the input array assumed to be in 'TI' format.
{{{IDL> date_obs=data->getdate_obs()
IDL> date=data->getdate()
IDL> date=data->date_obs2date()
IDL> days=data->days_since_launch(date)
At line 71 changed 40 lines
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
Gives the date of obsvation in 'yyyy-mm-ddThh:mm:ss.sss' format ('GETDATE_OBS') or in 'yyyymmdd' format ('GETDATE'). The 'DATE_OBS2DATE' converts the former to the latter format. 'DAYS_SINCE_LAUNCH' give that, if no date is given, the data objects date is used.