;+ ; Project : HESSI ; ; Name : ETHZ__DEFINE ; ; Purpose : Define a site object for Observatory of Solar specreadastronomy ; of the Astrophysical Institute, Potsdam ; ; Category : Ancillary GBO Synoptic Objects ; ; Syntax : IDL> c=obj_new('ethz') ; ; History : Written 18 Nov 2002, D. Zarro (EER/GSFC) ; ; Contact : dzarro@solar.stanford.edu ;- ;----------------------------------------------------------------------------- ;-- init function ethz::init,_ref_extra=extra if not self->specread::init(_extra=extra) then return,0 self->setprop,rhost='www.astro.phys.ethz.ch',ext='.fits',org='month',$ topdir='/pub/rag/phoenix-2/bursts/fits',ftype='phnx' return,1 end ;----------------------------------------------------------------------- pro ethz::cleanup self->specread::cleanup return & end ;---------------------------------------------------------------------------- ;-- store FITS info in object pro ethz::set_fits,file,index,data,index1,data1,header=header if not is_struct(index) then return ;time=data1.time*index1.tscal1+index1.tzero1 frequency=data1.frequency*index1.tscal2+index1.tzero2 time=index.crval1+index.cdelt1*dindgen(index.naxis1) utbase=anytim2utc(index.time_d$obs+' '+index.date_d$obs,/vms) freq=string(float(frequency),format='(i7.0)')+' MHz' dunit='Flux (45*log10[SFU + 10]' self->set,xdata=time,ydata=data,dim1_ids=freq,dim1_unit='Frequency (MHz)',$ data_unit=dunit,id='Phoenix: '+utbase,/no_copy,$ dim1_vals=float(frequency),utbase=utbase,/secs,$ filename=file,dim1_use=indgen(4),/positive,header=header return & end ;------------------------------------------------------------------------------ ;-- self structure pro ethz__define self={ethz,inherits specread} return & end