Skip to content

Commit

Permalink
Bug fixing
Browse files Browse the repository at this point in the history
Previous version had issues when data folder name contained a “-“. Bug
was fixed.
  • Loading branch information
SimonaRighini committed Nov 25, 2020
1 parent 77f73dc commit 7ecb11b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions runcalib.pro
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pro runcalib, pickpath=pickpath, skypath=skypath, sub=sub, linear=linear, cubic=
; orders of magnitude of 10E+06..10E+07, producing properly-formatted output tables.
;
; Authors: Marcello Giroletti, Simona Righini
; Last edited: July 28, 2020 by Simona
; Last edited: November 24, 2020 by Simona
;


Expand Down Expand Up @@ -156,7 +156,8 @@ pro cal_stack, path=path, out=out, plot=plot, beam=beam, speed=speed, dt=dt, sou
Sectinfo=MRDFITS(sublist[0],1,/SILENT)

gaintime=data[0].time ; associated MJD (first sample of first subscan)
firstscandate=strsplit(sublist[0],'-',/extract)
firstscanname=strsplit(sublist[0],sep,/extract)
firstscandate=strsplit(firstscanname[-1],'-',/extract)

datesplit=strsplit(firstscandate[0],path_sep(),/extract)
yyyymmdd=datesplit[-1]
Expand Down
5 changes: 3 additions & 2 deletions runtarget.pro
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pro runtarget, pickpath=pickpath, skypath=skypath, sub=sub, linear=linear, cubic
; orders of magnitude of 10E+06..10E+07, producing properly-formatted output tables.
;
; Authors: Marcello Giroletti, Simona Righini
; Last edited: July 23, 2020 by Simona
; Last edited: November 24, 2020 by Simona
;


Expand Down Expand Up @@ -153,7 +153,8 @@ pro tar_stack, path=path, out=out, plot=plot, beam=beam, speed=speed, dt=dt, sou
Sectinfo=MRDFITS(sublist[0],1,/SILENT)

gaintime=data[0].time ; associated MJD (first sample of first subscan)
firstscandate=strsplit(sublist[0],'-',/extract)
firstscanname=strsplit(sublist[0],sep,/extract)
firstscandate=strsplit(firstscanname[-1],'-',/extract)

datesplit=strsplit(firstscandate[0],path_sep(),/extract)
yyyymmdd=datesplit[-1]
Expand Down

0 comments on commit 7ecb11b

Please sign in to comment.