pastas.io / read

This section lists all the read methods that are available in Pastas to import time series and the input/output methods to store and load Pastas models.

IO Methods

load

Method to load a Pastas Model from file.

Read Methods

read_dino

This method can be used to import files from Dinoloket that contain groundwater level measurements (https://www.dinoloket.nl/)

read_meny

Method to read a Menyanthes file (.men).

read_knmi

This method can be used to import KNMI data from a file in Pastas.

read_waterbase

Method to import waterlevel ts from waterbase.

read_dino_level_gauge

This method can be used to import files from Dinoloket that contain surface water level measurements (https://www.dinoloket.nl/)

Using Pandas

While Pastas provides a few basic methods for reading time series data, we highly recommend using the Pandas read methods to load your time series. Pastas expects pandas.Series with a pandas.DatetimeIndex, so using Pandas is generally a good idea, for example:

import pandas as pd

ts = pd.read_csv("your_file.csv", parse_dates=True,
                 infer_datetime_format=True, squeeze=True)