Giter Site home page Giter Site logo

convert_zrx's Introduction

Convet .zrx to .csv

Utility to convert .zrx files from the Province of Bozen meteo stations to .csv.

The script will:

  • Split the file. Creating one file for each combination of station-measurement. Saves the resulting files in a folder called splitted_<filename>
  • Convert the files. Parsing the header and extracting the following info SNAME SANR REXCHANGE DATEFIRST DATELAST. Creating a file with the previous info in the filename and the data in .csv format. Converted files will be written into a folder named converted_<filename>

Version

convert_zrx_v1.sh is target to a specific (old) version of the zrx format

convert_zrx_v2.sh is target to a specific (new) version of the zrx format

Usage

For version 1 (old format): bash convert_zrx_v1.sh test.zrx

For version 2 (new format): bash convert_zrx_v2.sh test_v2.zrx

You can use this in a linux shell or on windows (either with WSL or with any other linux emulator e.g. Git Bash)

Reference

It uses a combination of linux utilities such as csplit, awk, cat, sed, etc.

Limitations

  • The header parsing could be certainly improved
  • The (some) info from the header are stored in the filename. This approach is effective but suboptimal. Another strategy could be implemented.

convert_zrx's People

Contributors

giuliogenova avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

dandreaquintero

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.