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

Filter RE data item on CAT62 #201

Open
echecazz opened this issue Mar 18, 2022 · 2 comments
Open

Filter RE data item on CAT62 #201

echecazz opened this issue Mar 18, 2022 · 2 comments

Comments

@echecazz
Copy link

Hi, I'm trying to filter RE data item on cat62:

CAT062:IRE:SIC sic
CAT062:IRE:TYP typ

but it doesn't work.. could you help please?

@dsalantic
Copy link
Contributor

You have to put those two lines in a file (e.g. filter.txt), then call decoder as "asterix --filter filter.txt".

@echecazz
Copy link
Author

echecazz commented Mar 21, 2022

You have to put those two lines in a file (e.g. filter.txt), then call decoder as "asterix --filter filter.txt".

Thank you for your answer. Yes, I use the txt for filtering, my txt contains the following lines:

CAT062:I070:ToT time
CAT062:I105:Lat lat
CAT062:I105:Lon lon
CAT062:I245:TId id
CAT062:I340:SIC sic
CAT062:I340:TYP typ
CAT062:IRE:SIC sic2
CAT062:IRE:TYP typ2

The output file contains all fields except IRE items (I verified they exist in Asterix recording).

If I don't use any filter, in the output file IRE items are shown correctly as in the following example:

{"id":1,
"cat":62,
"length":120,
"crc":"B5423983",
"timestamp":49352833.000000,
"hexdata":".........",
"CAT062":{
..........
..........

"IRE":{
	"CSN":[{
	"SAC":34,
	"SIC":33,
	"spare":0,
	"TYP":8}]},
     .............
     .............

I don't know if I use wrong sintax or maybe it's a software bug...?

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