taskGNU Astronomy Utilities - Tasks: task #15810, Database access configured in...


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

task #15810: Database access configured in configuration files

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  Fri 13 Nov 2020 06:06:41 PM UTC  
Should Start On:  Fri 13 Nov 2020 12:00:00 AM UTC Should be Finished on:  Fri 13 Nov 2020 12:00:00 AM UTC
Category:  Query Priority:  5 - Normal
Item Group:  Enhancement Status:  None
Privacy:  Public Percent Complete:  10%
Assigned to:  None Open/Closed:  Open
Effort:  0.00

Fri 22 Jan 2021 04:53:12 PM UTC, comment #1: 

Based on this task, the database-specific settings are currently maintained in separate source files, for example astron.c (for ASTRON), gaia.c (for ESA's Gaia database), ned.c (for NED) and vizier.c (for VizieR). A common structure is being found based on these early examples which can be filled in a plain-text configuration file instead of hard-coded strings in the code.

As more databases are added, we can indeed define a configuration file format, that query can parse upon execution. For example, if the user asks for the 'vizier' database, the Query program goes searching for the file 'astquery-vizier.conf' in the standard configuration file directories. This configuration file will contain all the strings in the '.c' files above and Query will use them to set the internal variables.

In this way, users can easily define their own databases that aren't even in the standard Gnuastro build or customize the databases as they like (for example setting short names for datasets that they use a lot).

Mohammad Akhlaghi <makhlaghi>
Project Administrator
Fri 13 Nov 2020 06:06:41 PM UTC, original submission:  

Currently, the way that Gnuastro's Query program accesses databases is hard-coded inside of it's source. So to add new data bases or change something, you will need to recompile it.

However, at least for databases that follow well known standards, it should be possible to have a simple configuration file for each database with its configurable features (like URL and etc) there. In this way, adding new databases will be very easy and users can even define their own databases.

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
  • -email is unavailable- added by makhlaghi (Submitted the item)
  • -email is unavailable- added by makhlaghi

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

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-22 makhlaghi Percent Complete0% => 10%
    2020-11-13 makhlaghi Carbon-Copy- => Added jmoldon@iaa.es

    Back to the top

    Powered by Savane 3.7