"docs/index.rst" did not exist on "8a70a6cadd95e6437572b2af6954be3fa9e6f834"
set cloud information to str d721
Beartriz Recinos Rivas authored
8a70a6ca

Model Data Format reader: mdf_reader toolbox

The mdf_reader is a python3 tool designed to read data files compliant with a user specified data model. It was developed to read the IMMA (International Maritime Meteorological Archive) data format, but it has been enhanced to account for meteorological data formats in the case of:

  • Data that is stored in a human-readable manner: “ASCII” format.
  • Data that is organized in single line reports
  • Reports that have a coherent internal structure and can be modelised.
  • Reports that have a fixed width or field delimited types
  • Reports that can be organized in sections, in which case each section can be of different types (fixed width of delimited)
  1. Clone the repository
git clone git@git.noc.ac.uk:brecinosrivas/mdf_reader.git
  1. Install requirements (see requirements.txt).

    More information about python environments here.

  2. Run a test:

import sys
sys.path.append('/path_to_folder_directory_containing_the_mdf_reader_folder/')
import mdf_reader
import matplotlib.pyplot as plt

data = mdf_reader.tests.read_imma1_buoys_nosupp()
  1. Read imma data
imma_data = mdf_reader.read(filepath, data_model = 'imma1',sections = ['core','c1','c98'])

For more details on how to use the mdf_reader tool see the following jupyter notebooks.