PaulHancock / MWA-fast-image-transients

Code and notes for the data reduction and analysis of fast image transients observed with the MWA
Other
5 stars 3 forks source link

Image differencing script for 0.5s images #35

Closed gemmaanderson closed 5 years ago

gemmaanderson commented 5 years ago

The image differencing script obs_diff.sh and diff.tmpl are not working. I think there is an operator error diff.tmpl. See diff_1217495184.sh (and output below).

Additionally, obs_diff.sh is currently not described on the Github main page.

2018-11-27 19:04:46; + nfiles=220
2018-11-27 19:04:46; + (( i=1 ))
2018-11-27 19:04:46; + (( i<220 ))
2018-11-27 19:04:46; + (( j=j% ))
2018-11-27 19:04:46; /var/spool/slurmd/job5341528/slurm_script: line 48: ((: j=j%: syntax error: operand expected (error token is "%")
2018-11-27 19:04:46; + (( j++==0 ))
2018-11-27 19:04:46; + wait
2018-11-27 19:04:46; /var/spool/slurmd/job5341528/slurm_script: command substitution: line 50: unexpected EOF while looking for matching `"'
2018-11-27 19:04:46; /var/spool/slurmd/job5341528/slurm_script: command substitution: line 51: syntax error: unexpected end of file
2018-11-27 19:04:46; + id2=
2018-11-27 19:04:46; + outfile=
2018-11-27 19:04:46; + 1217495184-0.5s-t0001---pbcorr-I_diff.fits
2018-11-27 19:04:46; /var/spool/slurmd/job5341528/slurm_script: line 51: 1217495184-0.5s-t0001---pbcorr-I_diff.fits: command not found
PaulHancock commented 5 years ago

In f9664f0 I have updated obs_diff.sh to have the same nice command line interface as the other scripts and also updated the README.

gemmaanderson commented 5 years ago

obs_diff.sh is still not working.

It looks like a python module issue: ImportError: No module named astropy.io

See errors in file: logs/diff_1217495184.e2958711

PaulHancock commented 5 years ago

I have updated the template script to load the Pawsey astropy module so that this error can be avoided.