Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Issue/cartopy #35

Merged
merged 2 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ jobs:
pytest_numcpus: "4"
# pytest-cov looks at this folder
pytest_cov_dir: "ocf_datapipes"
# extra things to install
sudo_apt_install: 'libgeos-dev libproj-dev'
6 changes: 5 additions & 1 deletion ocf_datapipes/transform/xarray/reproject_topographic_data.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
from pathlib import Path
from typing import Union

import cartopy.crs as ccrs
import numpy as np
import pyproj
import pyresample
import xarray as xr
from torchdata.datapipes import functional_datapipe
from torchdata.datapipes.iter import IterDataPipe

try:
import cartopy.crs as ccrs
except:
pass


@functional_datapipe("reproject_topography")
class ReprojectTopographyIterDataPipe(IterDataPipe):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ jpeg_xl_float_with_nans
h5netcdf
tqdm
bottleneck
cartopy
pyproj
pyresample