# RESOLUTION -- Resolution classifier procedure t_resolution () pointer catalog # Catalog int type # Template type (1-4) int center # Center templates? real v0, v1 # Noise parameters pointer filter # Filter options pointer sp bool clgetb() int clgeti(), btoi(), stflt() #real clgetr() begin call smark (sp) call salloc (catalog, SZ_FNAME, TY_CHAR) call salloc (filter, SZ_LINE, TY_CHAR) call clgstr ("catalog", Memc[catalog], SZ_LINE) type = clgeti ("templates") center = btoi (clgetb ("center")) #v0 = clgetr ("v0") #v1 = clgetr ("v1") v0 = 0. v1 = 1. call clgstr ("filter", Memc[filter], SZ_LINE) call strpak (Memc[catalog], Memc[catalog], SZ_FNAME) call strpak (Memc[filter], Memc[filter], SZ_LINE) if (stflt (Memc[filter]) == 0) call resolution (Memc[catalog], type, center, v0, v1) call sfree (sp) end