Skip to content

Commit

Permalink
comment about polarisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin2 committed Jan 24, 2025
1 parent a111a04 commit f1a1e5f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pyvisgen/fits/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ def create_vis_hdu(data, obs, source_name="sim-source-0"):

ws = wcs.WCS(naxis=7)

# need to switch between lin and circ pol in future
crval_stokes = -5
stokes_comment = "-1=RR, -2=LL, -3=RL, -4=LR"
if obs.polarisation == "linear":
crval_stokes = -5
stokes_comment = "-5=XX, -6=YY, -7=XY, -8=YX"
stokes_comment += " or -5=VV, -6=HH, -7=VH, -8=HV"
# if obs.polarisation == "linear":
# crval_stokes = -5
# stokes_comment = "-5=XX, -6=YY, -7=XY, -8=YX"
# stokes_comment += " or -5=VV, -6=HH, -7=VH, -8=HV"

ws.wcs.crpix = [0, 1, 1, 1, 1, 1, 1]
ws.wcs.crota = [0, 0, 0, 0, 0, 0, 0]
Expand Down

0 comments on commit f1a1e5f

Please sign in to comment.