Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_empty_ms issue #57

Open
ulricharmel opened this issue Sep 8, 2015 · 1 comment
Open

create_empty_ms issue #57

ulricharmel opened this issue Sep 8, 2015 · 1 comment

Comments

@ulricharmel
Copy link

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_empty_ms(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
Copy link
Contributor

SpheMakh commented Sep 8, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants