From 8cd0c1ae00da23d48f70d38288f3731861ae3e28 Mon Sep 17 00:00:00 2001 From: Fabian Gans Date: Wed, 21 Aug 2024 22:33:52 +0200 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index f25ef9e..4359a0d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,20 @@ # PyYAXArrays [![Build Status](https://github.com/meggart/PyYAXArrays.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/meggart/PyYAXArrays.jl/actions/workflows/CI.yml?query=branch%3Amain) + + +### Example + +````julia +using PyYAXArrays, YAXArrays + +xr = PyYAXArrays.xr[] +python_dataset = xr.open_zarr("https://mur-sst.s3.us-west-2.amazonaws.com/zarr-v1", decode_times=false) + +yax_dataset = YAXArrays.open_dataset(python_dataset) + +smallsampledata = yax_dataset.analysed_sst[Ti=Near(DateTime(2010,1,1,0)),lon=0..35,lat=40..65] + +#Read some data +smallsampledata[:,:].data +````