Giter Club home page Giter Club logo

mergeskydata's Introduction

mergeskydata

This program merges the sky data from multiple files into a single file. In particular, it can take the VVV/VVVX tiles as input and combine them into a single table. The output is a fits table containing the photometrical data for non-overlapped sources, and for overlapped sources it computes a weighted average for available photometrical bands.

How to install

Just install the requirements (tested on python 3.11.5)

pip install -r requirements.txt

If you want to use a virtual environment, you can create it with

python -m venv venv

and then activate it with

source venv/bin/activate

After that install the requirements as indicated before.

How to use

For single use, run:

python main.py -f1 table1.fits -f2 table2.fits -o output.fits

To merge multiple files, use the bash script script.sh provided. It merges all the fits files inside a directory.

Example

The image shows the VVVX tiles in Galactic coordinates (notice that the tiles overlap). In particular, tiles from 457 to 512 cover the north Galactic region of the bulge. The script in this repository merges all the tiles of this region into a single file, as shown in the image below.

image

Note: it took around 1 hour to merge all the tiles into a single table. It is also very RAM-consuming, so it is recommended to run it on a server with at least 64 GB of RAM for the example provided here (output file 7.8 GB).

mergeskydata's People

Contributors

jorgeanais avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.