Floatmatcher is a a python library for third-party dataset matchup with Argo floats Third-party datasets can originate from local or distant repositories.
Asociated documentation is available running : python3 -m http.server 8000 -d docs/_build/html after installation
To install floatmatcher library, use the current git repository :
uv add "floatmatcher @ git+https://github.com/euroargodev/FloatMatcher.git@main"
pip install "git+https://github.com/euroargodev/FloatMatcher.git@main"
# Import the library
import floatmatcher.floatmatcher as fm# Instanciate builder object:
my_fm = fm.FloatMatcher() # Import points:
lon = np.array([-28.15, -46.51])
lat = np.array([54.48, 30.08])
time = np.array(["2013-03-18T22:47", "2014-05-18T12:22"], dtype="datetime64[ns]")
my_fm.set_points(lon, lat, time)# Set product
my_fm.set_product(type="era5-hourly",
source="local",
selected_variables=["sst"],
path="/<era5_data_folder>",
)# set method
my_fm.set_method(type="interp", radius=12,
time_gap=np.timedelta64(3, "h"),
k_nearest=4, n_frames=2, kernel="idw",
power=2
)# trigger the match
my_fm.match()# display results
my_fm.resultNotebooks in examples/:
- Quickstart: the whole workflow, from points to matched values.
- Points: arrays, DataFrame, Dataset, Argo float with argopy.
- Remote CDS: CDS account, requests, cache, without network.
- Local archives: one file, a list, a folder, a tree with a pattern, a look-up table.
- Methods and results: nearest and interpolation, radius and time gap, results.