Git Product home page Git Product logo

jessebausell / hydrolight_mfile_reader_py Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 31 KB

This python notebook reformats a series of Hydrolight-generated m-files (radiative transfer outputs) into hdf5 files. This enables easier access to data for investigators, who can work with structured variables inside the hdf5 files rather than unweildy ascii files, which are difficult to utilize on a large scale. See GitHub readme for more details.

License: Other

Python 100.00%
hydrolight sequoiascientific iops aops oceanoptics radiative-transfer-models

hydrolight_mfile_reader_py's Introduction

Hydrolight_MFile_reader_py

This python notebook reformats a series of Hydrolight-generated m-files (radiative transfer outputs) into hdf5 files. This enables easier access to data for investigators, who can work with structured variables inside the hdf5 files rather than unweildy ascii files, which are difficult to utilize on a large scale. See GitHub readme for more details.

Overview:

The primary purpose of Hydrolight_MFile_reader_py is to convert so called "m-files", ascii files output by Hydrolight (radiative transfer completing computer software) into structure hdf5 files, allowing for more seemless data analyses using a coding language (e.g. matlab, python, R, etc.). The program can convert multiple m-files into hdf5 files.

The creator (yours truly) assumes that Hydrolight_MFile_reader_py will re-format m-files generated using LogNorm_Draw_Hydrolight.ipynb. Thus best practices would dictate that m-files have a consistent nomenclature that begins with the letter "M" and ends in "itr_#" with # being a sequential series of integers used to sequence individual m-files (example: MFileExample_itr_0.txt, MFileExample_itr_1.txt, MFileExample_itr_2.txt, etc). Before running Hydrolight_MFile_reader_py, user should place all m-files into a single folder. Best practices suggest that this folder should be devoid of all ascii files which are not m-files.

User Directions:

  1. Run Hydrolight_MFile_reader.py
  2. Select the folder containing m-files
  3. Sit back and let Hydrolight_MFile_reader.py do the rest!

Inputs: m-file folder - user-selected folder containing m-files

Outputs: "HDF5/" - folder contianing hdf5 files. These will be named similarly to the m-files from which they are dirived. Only the ending will be changed in the name. For example, MFileExample_itr_0.txt becomes MFileExample_itr_0.h5.

hydrolight_mfile_reader_py's People

Contributors

jessebausell avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.