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

mArchiveList format? #78

Open
mjrutkowski opened this issue Nov 12, 2024 · 1 comment
Open

mArchiveList format? #78

mjrutkowski opened this issue Nov 12, 2024 · 1 comment

Comments

@mjrutkowski
Copy link

Using MontagePy with python 3.11 here.

Issuing the call
rtn = mArchiveList("SDSS g","195.79681 -0.759085",0.05,"remote.tbl")
produces remote tbl format which appears as:

Screenshot 2024-11-12 at 1 27 26 PM

This seems to provide the necessary url to then call with mArchiveExec to download these data, but the formatting looks incorrect and the call to mArchiveExec fails with error:
{'status': '1', 'msg': b"Table remote.tbl needs column 'URL' or 'url' and can optionally have columns 'fname'/'file' and pixel ranges 'imin'..'jmax'"} which seems sensible considering the column headers.

I was expecting the format with column headers with 'URL', but mArchiveList doesn't write the table in this way ? The examples do show a different format for the call to mArchive List (https://github.com/Caltech-IPAC/MontageNotebooks/blob/main/mArchiveList.ipynb). Has there been a substantial change to MontagePy.mArchiveList? Thoughts?

@mjrutkowski
Copy link
Author

Note, the same error will arise if you follow the notebooks issuing a call of this sort:
rtn = mArchiveList('2MASS', 'J', 'M17', 2., 2., 'work/M17/archive.tbl')

This call in fact will NOT work in my MontagePy, though, with the warning that 4 positional arguments are needed, but 6 are provided. Changing it :
rtn = mArchiveList('2MASS J', 'M17', 2., 'work/M17/archive.tbl')
seems appropriate, but will result in the same error as reported in the initial comment

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

1 participant