tedcline / ezRA

Easy Radio Astronomy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ezColAntBtwnRef in defaults file causes ezCol.py crash

nathanielbutts opened this issue · comments

Setup

  • Latest ezRA, pulled 10/23/2023
  • Raspberry Pi 4 with Raspbian bullseye, fresh install
  • Python 3.9.2
  • Have -ezColAntBtwnRef 10 in my 1m-defaults.txt file (see contents below)

Error

Run command 'ezCol.py -ezDefaultsFile /home/nathan/astro/1m-defaults.txt' and I get the error:

========== FATAL ERROR:  Defaults file ( /home/nathan/astro/1m-defaults.txt )
 has this line's unrecognized first word:
-ezColAntBtwnRef  10             #(number of Ant samples between Ref samples)

Contents of 1m-defaults.txt:

# Pointing setup
-ezColAzimuth   180.0            #(Azimuth   pointing of antenna (degrees))
-ezColElevation  45.0            #(Elevation pointing of antenna (degrees))

# Observatory information
-ezRAObsLat  36.93083            #(Observatory Latitude  (degrees))
-ezRAObsLon  -86.43167           #(Observatory Longitude (degrees))
-ezRAObsAmsl 170.7               #(Observatory Above Mean Sea Level (meters))
-ezRAObsName sokyrad_1m          #(Observatory Name)
-ezColFileNamePrefix sokyrad-1m_ #(Data File Name Prefix)

# H1 observation setup
-ezColCenterFreqAnt 1420.405     #(Signal          Frequency (MHz))
-ezColCenterFreqRef 1423.405     #(Dicke Reference Frequency (MHz))
-ezColBandWidth        2.400     #(Signal          Bandwidth (MHz))
-ezColFreqBinQtyBits   8         #(For  (2^8) 256 freqBinQty frequencies)
-ezColGain        9999           #(Use max gain)
-ezColAntBtwnRef  10             #(number of Ant samples between Ref samples)
#-ezColUsbRelay   11              #(1 SPST HID relay,     driving feedRef ON or OFF)

# Output setup
-ezColVerbose     1             #(Turn on Verbose mode)
-ezColDashboard   1             #(Turn off graphical display)
-ezColDispGrid    1             #(Turn on graphical display plot grids)

Adding -ezColAntBtwnRef 10 to my ezCol.py command line and commenting out the -ezColAntBtwnRef line starts ezCol as expected . Was able to replicate the error by changing back to original defaults file and command.

I went through ezCol.py to see if there was an error with retrieving the command from the defaults file but it seemed to be formatted correctly.

Resolved on ezCol231108a.py