Open mangla-sarvesh opened 4 days ago
Hi @mangla-sarvesh thank you for reporting this.
The no_verify
needs some updates as it currently doesn't support user external model files.
Currently, we internally support CASA
model components, lsm.html
models and WSClean
clean component model.
We are happy to provide an option for users to specify model files.
Please let us know what format your sky model is in. Feel free to share an example.
Best regards
Hello @Athanaseus
I thought so too. So I followed this
CASA
(outside caracal), I ran setjy
on the data which ran successfully and Then ran crosscal
again but set_model = False
, and in the first step of calibration this error came
2024-11-19 15:16:37 INFO gaincal::::+ ##########################################
2024-11-19 15:16:37 INFO gaincal::::+ ##### Begin Task: gaincal #####
2024-11-19 15:16:37 INFO gaincal:::: gaincal(vis="/stimela_mount/msdir/data_first-cal.ms",caltable="/stimela_mount/output/crosscal-data_first-1gc1_primary.K0",field="PictorA",spw="",intent="",
2024-11-19 15:16:37 INFO gaincal::::+ selectdata=True,timerange="",uvrange="",antenna="",scan="",
2024-11-19 15:16:37 INFO gaincal::::+ observation="",msselect="",solint="inf",combine="",preavg=-1.0,
2024-11-19 15:16:37 INFO gaincal::::+ refant="m009",refantmode="flex",minblperant=4,minsnr=3.0,solnorm=False,
2024-11-19 15:16:37 INFO gaincal::::+ normtype="mean",gaintype="K",smodel=[],calmode="ap",solmode="",
2024-11-19 15:16:37 INFO gaincal::::+ rmsthresh=[],corrdepflags=False,append=False,splinetime=3600.0,npointaver=3,
2024-11-19 15:16:37 INFO gaincal::::+ phasewrap=180.0,docallib=False,callib="",gaintable=[],gainfield=[],
2024-11-19 15:16:37 INFO gaincal::::+ interp=[],spwmap=[],parang=False)
2024-11-19 15:16:37 INFO gaincal::calibrater::open Using NEW VI2-driven calibrater tool
2024-11-19 15:16:37 INFO gaincal::calibrater::open Opening MS: /stimela_mount/msdir/data_first-cal.ms for calibration.
2024-11-19 15:16:38 INFO gaincal::Calibrater:: Initializing nominal selection to the whole MS.
2024-11-19 15:16:38 INFO gaincal:::: NB: gaincal automatically excludes auto-correlations.
2024-11-19 15:16:38 INFO calibrater::setdata Beginning selectvis--(MSSelection version)-------
2024-11-19 15:16:38 INFO calibrater::reset Reseting solve/apply state
2024-11-19 15:16:38 INFO Calibrater::selectvis Performing selection on MeasurementSet
2024-11-19 15:16:38 INFO Calibrater::selectvis+ Selecting on field: 'PictorA'
2024-11-19 15:16:38 INFO Calibrater::selectvis+ Selecting with TaQL: 'ANTENNA1!=ANTENNA2'
2024-11-19 15:16:38 INFO Calibrater::selectvis By selection 350436 rows are reduced to 338352
2024-11-19 15:16:38 INFO Calibrater::selectvis Frequency selection: Selecting all channels in all spws.
2024-11-19 15:16:38 INFO calibrater::setdata chanmode=none nchan=1 start=0 step=1 mStart='0km/s' mStep='0km/s' msSelect='ANTENNA1!=ANTENNA2'
2024-11-19 15:16:38 INFO calibrater::setsolve Beginning setsolve--(MSSelection version)-------
2024-11-19 15:16:38 INFO Calibrater::setsolve Arranging to SOLVE:
2024-11-19 15:16:38 INFO Calibrater::setsolve . K Jones: table=/stimela_mount/output/crosscal-data_first-1gc1_primary.K0 append=false solint=inf refantmode='flex' refant='m009' minsnr=3 apmode=AP solnorm=false
2024-11-19 15:16:38 INFO calibrater::solve Beginning solve-----------------------------
2024-11-19 15:16:38 INFO Calibrater::solve The following calibration terms are arranged for apply:
2024-11-19 15:16:38 INFO Calibrater::solve . (None)
2024-11-19 15:16:38 INFO Calibrater::solve The following calibration term is arranged for solve:
2024-11-19 15:16:38 INFO Calibrater::solve . K Jones: table=/stimela_mount/output/crosscal-data_first-1gc1_primary.K0 append=false solint=inf refantmode='flex' refant='m009' minsnr=3 apmode=AP solnorm=false
2024-11-19 15:16:39 INFO Calibrater::solve For solint = inf, found 7 solution intervals.
2024-11-19 15:16:40 SEVERE Calibrater::solve Caught exception: Failure to load /scratch3/users/mangla1991/SetBlo_first/crosscal/MS/data_first-cal.ms/SOURCE/FT_MODEL2415240_16406 image from disk
2024-11-19 15:16:40 INFO Calibrater::solve Reseting entire solve/apply state.
2024-11-19 15:16:40 SEVERE Exception Reported: Error in Calibrater::solve.
2024-11-19 15:16:40 SEVERE gaincal:::: Task gaincal raised an exception of class RuntimeError with the following message: Error in Calibrater::solve.
Running CASA task 'gaincal'
Traceback (most recent call last):
File "/stimela_mount/code/run.py", line 13, in
How can i solve this? Should I make some.html file and somehow add this somewhere? I don't know how to do that or Use crystalball somehow?
Hi @mangla-sarvesh,
Using the corresponding model fits images, one could use the wsclean predict
operation, which could possibly be an option for caracal
. Could you request access to the per-band model.fits images?
Regarding the error:
2024-11-19 15:16:40 SEVERE Calibrater::solve Caught exception: Failure to load /scratch3/users/mangla1991/SetBlo_first/crosscal/MS/data_first-cal.ms/SOURCE/FT_MODEL2415240_16406 image from disk
I haven’t encountered this issue before. Could you try running the same task in CASA to check if the error is reproducible?
gaincal(vis="/stimela_mount/msdir/data_first-cal.ms",caltable="/stimela_mount/output/crosscal-data_first-1gc1_primary.K0",field="PictorA",spw="",intent="",
2024-11-19 15:16:37 INFO gaincal::::+ selectdata=True,timerange="",uvrange="",antenna="",scan="",
2024-11-19 15:16:37 INFO gaincal::::+ observation="",msselect="",solint="inf",combine="",preavg=-1.0,
2024-11-19 15:16:37 INFO gaincal::::+ refant="m009",refantmode="flex",minblperant=4,minsnr=3.0,solnorm=False,
2024-11-19 15:16:37 INFO gaincal::::+ normtype="mean",gaintype="K",smodel=[],calmode="ap",solmode="",
2024-11-19 15:16:37 INFO gaincal::::+ rmsthresh=[],corrdepflags=False,append=False,splinetime=3600.0,npointaver=3,
2024-11-19 15:16:37 INFO gaincal::::+ phasewrap=180.0,docallib=False,callib="",gaintable=[],gainfield=[],
2024-11-19 15:16:37 INFO gaincal::::+ interp=[],spwmap=[],parang=False)
PS: Please also share the full log files.
I want to use my own model of Pictor A as calibrator
So i used no_verify: True
But how should I give my model file.im ?