taskGNU Astronomy Utilities - Tasks: task #13931, MakeCatalog only do the desired...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #13931: MakeCatalog only do the desired raw calculations

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  Wed 23 Mar 2016 05:48:53 AM UTC  
 
Should Start On: Tue 22 Mar 2016 03:00:00 PM UTCShould be Finished on: Tue 22 Mar 2016 03:00:00 PM UTC
Category: MakeCatalogPriority: 5 - Normal
Item Group: EnhancementStatus: None
Privacy: PublicPercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Effort: 0.00

Wed 23 Mar 2016 05:48:53 AM UTC, original submission:

Currently in the first and second passes, all the raw information that is possibly needed for any output column is collected in the information table. So for example if a user only wants the geometric center of an object, everything from the brightness, to brightness weighted centers, and etc, will also be collected in the information array while they are never used!

As long as the number of output columns is not significant this isn't a major problem. But as we add more columns, this is going to be a major consumer of memory/speed.

MakeCatalog should be modified in a way that the information table does not necessarily have a fixed number of columns, but only the number of columns necessary to do the calculations that the user has asked for. This can be done when inspecting the desired columns: each operation needs certain columns, so each designed operation can flag certain columns as necessary (in ui.c), then after all the desired columns are found based on the user's desired output, a specific information table can be built for that particular run and only the functions that are needed can fill in those columns.

We might be able to do this by defining functions for each information table column, and then using pointers to those functions which the first and second pass functions can call in order. The function pointers can be put into an array of pointers like a string (terminating with a NULL, so the first pass function knows when to stop).

These solutions are just some random brainstorms for now. Certainly as we start doing this in practice they will become more robust.

Mohammad Akhlaghi <makhlaghi>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by makhlaghi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1