Caltech-IPAC / Montage

Image Mosaics for Astronomers
Other
113 stars 48 forks source link

mArchiveList format? #78

Open mjrutkowski opened 1 week ago

mjrutkowski commented 1 week ago

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 commented 5 days ago

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