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.
Read Methods¶
This method can be used to import files from Dinoloket that contain groundwater level measurements (https://www.dinoloket.nl/) |
|
Method to read a Menyanthes file (.men). |
|
This method can be used to import KNMI data from a file in Pastas. |
|
Method to import waterlevel ts from waterbase. |
|
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)