diff --git a/pvnet_app/app.py b/pvnet_app/app.py index 61218fb..4e6bd0a 100644 --- a/pvnet_app/app.py +++ b/pvnet_app/app.py @@ -278,20 +278,7 @@ def app( # Download nwp data logger.info("Downloading nwp data") fs = fsspec.open(os.environ["NWP_ZARR_PATH"]).fs - fs.get(os.environ["NWP_ZARR_PATH"], "nwp.zarr", recursive=True) - - ######## - # TO DO: THIS IS A TEMPORARY BUG FIX TO COMPENSATE FOR A BUG IN THE NWP CONSUMER FLIPPING THE - # Y-AXIS IN THE NWP - logger.warning("Reassigning the y-axis coordinates to compensate for consumer bug") - ds = xr.open_zarr("nwp.zarr").compute() - os.system("rm -r nwp.zarr") - ds["y"] = ds["y"].values[::-1] - ds = ds.reindex(y=ds.y.values[::-1]) - ds["variable"] = ds.variable.astype(str) - ds.to_zarr("nwp.zarr") - ######## - + fs.get(os.environ["NWP_ZARR_PATH"], "nwp.zarr", recursive=True) # --------------------------------------------------------------------------- # 2. Set up data loader