Skip to content

Commit

Permalink
demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
emfdavid committed Feb 27, 2024
1 parent 71ea1db commit 62560a8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,20 @@
remote_protocol="gcs",
)


ds = xr.open_dataset(
fs.get_mapper(""),
engine="zarr",
drop_variables=["heightAboveGround"], # Drop magic broken variable
backend_kwargs=dict(
consolidated=False,
)
),
)
logger.info(ds)

df = ds[
['2t', 'dswrf']
].interp(
dict(x=[500, 800], y=[300, 400])
).to_dataframe()
df = ds[["2t", "dswrf"]].interp(dict(x=[500, 800], y=[300, 400])).to_dataframe()

# .loc[
# dict(valid_time=slice('2023-09-04', '2023-09-06'))
# ].compute()



logger.info(df)

0 comments on commit 62560a8

Please sign in to comment.