Skip to content

Commit

Permalink
fixes to uv fitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra Tetarenko authored and Alexandra Tetarenko committed Feb 5, 2018
1 parent 8b907e4 commit 8b57259
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion casa_timing_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,10 @@
if runClean=='U':
uv_fit='T'
#only point sources right now
uv_num=int(data_params["uv_num"])
uv_initp=data_params["uv_initp"]
file_uv0=open(uv_initp)
uv_num=sum(1 for line in file_uv0)-1
file_uv0.close()
phcen_rad=vishead(vis=visibility,mode='get',hdkey='ptcs')
print 'Phase center set to:'
phcen=au.rad2radec(phcen_rad[0]['r1'][0][0][0],phcen_rad[0]['r1'][1][0][0],hmsdms=True).replace(',','')
Expand Down
1 change: 0 additions & 1 deletion param.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ do_monte='F'
integ_fit='B'
uv_fit='F'
uv_fix='F'
uv_num = 1
uv_initp =''
def_times='F'
startTimeH=''
Expand Down
2 changes: 0 additions & 2 deletions param_description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ uv_fit: toggle to do uv plane fitting; string, options are 'T' or 'F'

uv_fix: toggle to fix position in uv fitting from position of whole data set; string, options are 'T' or 'F'

uv_num: if doing uv fitting, the number of point sources for fitting; integer

uv_initp: if doing uv fitting, provide the path to the intial guess file for uv fitting; string
Format of this file is a row for each point source, with ra offset from phase center (arcsec),
dec offset from phase center (arcsec), and flux (Jy) on each row. Target MUST be first source in file
Expand Down
2 changes: 1 addition & 1 deletion uv_init_example.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#example uv initial parameters file, first line is target!
#uv initial parameters file, first line is target! (please only edit the rows below this one).
0 0 700e-3
1 1 500e-3
2 2 400e-3

0 comments on commit 8b57259

Please sign in to comment.