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

*Error*: wrong array syntax for keyword VECTOR_ASSOC #41

Open
chriskervick opened this issue Feb 9, 2023 · 1 comment
Open

*Error*: wrong array syntax for keyword VECTOR_ASSOC #41

chriskervick opened this issue Feb 9, 2023 · 1 comment

Comments

@chriskervick
Copy link

I am trying to use SExtractor to classify sources as stars/galaxies, and would like to use as inputs the x-y pixel positions of sources from a catalog I already have. I can get it to work fine when I only enable NUMBER_ASSOC in the parameter files. When I enable VECTOR_ASSOC instead, I get the error "Error: wrong array syntax for keyword VECTOR_ASSOC".

My ASSOC file consists of 2 columns, space delimited. I have set ASSOC_PARAMS to 1,2 and have set ASSOC_DATA to both 1,2 and 0 separately but neither seems to work. ASSOC_TYPE is set to NEAREST and I have tried all possible options for ASSOCSELEC_TYPE, but the error persists.

@ebertin
Copy link
Member

ebertin commented Feb 13, 2023

Hi @chriskervick. This should not happen unless there is a wrong character somewhere. VECTOR_ASSOC can accept as an argument the number of ASSOC_DATA columns that will end up in the output catalog. If no argument is provided (or if VECTOR_ASSOC is without parentheses), only the first ASSOC_DATA column ends up in the catalog. For example, the default configuration for ASSOC_DATA is ASSOC_DATA 2,3,4 ; Using VECTOR_ASSOC(3) in the .param file would give you in that case the three columns. Using more than 3 would generate a warning.
I hope this helps!

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