Giter VIP home page Giter VIP logo

correlation-module-nowcast's Introduction

Correlation Module

This module is part of the NOWCAST proyect by ESO that aims to do short-term-forecast of the seeing parameter in order to improve astronomical observations.

Features

This module makes the discrete cross correlation of two sites' seeing measurements using the module pydcf by Damien Robertson.

How it works

In order to execute this module, you have to run the file main.py.

The first thing this module does is taking the two files in the folder files2cross_corr. This files have to be named file1.csv and file2.csv and they have to have the structure specified in files2cross_corr/README.md. Once those files are in place, it separates the time series in UT time intervals nights, for this it considers a day being from 22ºº hrs to 11ºº of the next day, and the label of the day is given by the first day.

Example: Suppose you have the data of 2009-06-03 at 12ºº hrs to 200-06-04 at 14ºº hrs, then a UT day would be from 2009-06-03 22ºº to 200-06-04 11ºº and the date_keyassociated with this day will be 2009-06-03.

Once That is done, it saves each day for each site in a different folder named UT_data/file1 and UT_data/file2 respectively. Once it has those files, it passes the common dates for the two sites to Damien Robertson's correlation module, and it saves all the outputs to the output folder.

Then it takes all those outputs that are in csv form and merges them into a pandas dataframe that is saved in the folder final_output as a binary file.

Finally it makes another binary file containing the maximum correlations and the corresponding shifts, also as a binary file un the final_output folder.

How to use

Basically the only thing you have to do is set up file1.csv and file2.csv and run the python file main.py

Things to note

All the intermediate files are deleted after the execution is done. This is to avoid confusions. This can be ignored by deleting the line in main.py that executes the clean.sh bash file.

Credits

  • The pydcf bby Damien Robertson can be found here.

correlation-module-nowcast's People

Contributors

tomasrojasc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jmilou

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.