ratt-ru / pyxis

Python Extensions for Interferometry Scripting
3 stars 5 forks source link

create_empty_ms issue #57

Open ulricharmel opened 9 years ago

ulricharmel commented 9 years ago

I am currently trying to generate some measurement sets. I am using the ms.create_empty_ms command from ms in pyxis. That is the error I get

File "./pyxis-variability.py", line 30, in make_ms ms.create_emptyms(msname="ms"+str(ms_num)+".MS",synthesis=synthesis, pos_type='casa',tel='KAT-7',_ms_cfg) File "/home/ulrich/builds/pyxis/Pyxides/ms.py", line 586, in create_empty_ms dfreq=dfreq, lon_lat=lon_lat, _kw) File "/home/ulrich/builds/simms/simms/simms.py", line 79, in create_empty_ms "the telescope via lon_lat (or --lon-lat-elv)"%tel) ValueError: Could not Find your telescope [KAT-7] in the CASA Database. Please double check the telescope name, or provide the location of the telescope via lon_lat (or --lon-lat-elv) 2015/09/08 15:17:25 ERROR: Exception raised, aborting 2015/09/08 15:17:25 ERROR: exiting with error code 1, check the logs for errors 2015/09/08 15:17:25 INFO: elapsed time is 0h0m0.01s

SpheMakh commented 9 years ago

Here is a clue :)

ValueError: Could not Find your telescope [KAT-7] in the CASA Database. Please double check the telescope name, or provide the location of the telescope via lon_lat (or --lon-lat-elv)

You can either provide the lon/lat ms.create_ms(..., lon_lat=(<lon>,<lat>), ..) coordinates of KAT-7

Or (recomended) get an updated version of CSASA geodetic here then point edit your $HOME/.casarc to point it:

svn co https://svn.cv.nrao.edu/svn/casa-data/distro/geodetic $HOME/geodetic

then, open $HOME/.casarc with ur favourite text editor and make it look like this:

#
# Rename this file to $HOME/.casarc.
# This assumes you have checked out casarest directly under $HOME,
# you may need to adjust the paths otherwise
#
measures.DE200.directory: /usr/share/casacore/data/ephemerides
measures.DE405.directory: /usr/share/casacore/data/ephemerides
measures.line.directory: /usr/share/casacore/data/ephemerides
measures.sources.directory: /usr/share/casacore/data/ephemerides
measures.comet.directory: /usr/share/casacore/data/ephemerides
measures.ierseop97.directory: $HOME/geodetic
measures.ierspredict.directory: $HOME/geodetic
measures.tai_utc.directory: $HOME/geodetic
measures.igrf.directory: $HOME/geodetic
measures.observatory.directory: $HOME/geodetic