Skip to content

Commit

Permalink
use relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 2, 2024
1 parent 8d67aae commit ba0844e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion india_forecast_app/models/pvnet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,11 @@ def process_and_cache_nwp(nwp_config: NWPProcessAndCacheConfig):
nwp_channels = list(nwp_config.config.nwp_channels)
ds = ds.sel(variable=nwp_channels)

# get directory of file
dest_nwp_dir = os.path.dirname(dest_nwp_path)

# regrid data
ds = regrid_nwp_data(ds, "india_forecast_app/data/mo_global/india_coords.nc")
ds = regrid_nwp_data(ds, f"{dest_nwp_dir}/mo_global/india_coords.nc")

# Save destination path
log.info(f"Saving NWP data to {dest_nwp_path}")
Expand Down

0 comments on commit ba0844e

Please sign in to comment.