Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 26, 2024
1 parent c2dcd16 commit 99db253
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 17 deletions.
22 changes: 15 additions & 7 deletions pyremo/physics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# flake8: noqa
from . import core
from .physics import (liquid_water_content, precipitation_flux, pressure,
relative_humidity, relative_humidity_from_dewpoint,
specific_humidity, specific_humidity_from_dewpoint,
surface_downwelling_longwave_flux_in_air,
surface_downwelling_shortwave_flux_in_air,
surface_runoff_flux, toa_incoming_shortwave_flux,
water_evapotranspiration_flux, water_vapour)
from .physics import (
liquid_water_content,
precipitation_flux,
pressure,
relative_humidity,
relative_humidity_from_dewpoint,
specific_humidity,
specific_humidity_from_dewpoint,
surface_downwelling_longwave_flux_in_air,
surface_downwelling_shortwave_flux_in_air,
surface_runoff_flux,
toa_incoming_shortwave_flux,
water_evapotranspiration_flux,
water_vapour,
)
2 changes: 2 additions & 0 deletions pyremo/preproc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# flake8: noqa

from .cf import get_gfile, gfile, to_cfdatetime

# from .core import gfile
from .era5 import ERA5
from .remap import remap, remap_remo, to_netcdf, to_tar

# from .remap_new import Remapper
from .utils import write_forcing_file
11 changes: 9 additions & 2 deletions pyremo/preproc/cf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import glob
import os

# import subprocess
# import tempfile
from datetime import timedelta as td
Expand All @@ -14,8 +15,14 @@
import xarray as xr
from cdo import Cdo

from .core import (check_lev, convert_units, get_vc, horizontal_dims, map_sst,
open_mfdataset)
from .core import (
check_lev,
convert_units,
get_vc,
horizontal_dims,
map_sst,
open_mfdataset,
)

cdo_exe = "cdo"

Expand Down
22 changes: 16 additions & 6 deletions pyremo/preproc/remap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@
from .constants import fillvars, lev_input
from .core import const, get_akbkem
from .utils import update_attrs
from .xpyintorg import (correct_uv, geo_coords, geopotential,
interp_horiz_remo_cm, interpolate_horizontal,
interpolate_horizontal_remo, interpolate_vertical,
intersect, intersect_regional, pbl_index,
pressure_correction_em, pressure_correction_ge,
relative_humidity, rotate_uv)
from .xpyintorg import (
correct_uv,
geo_coords,
geopotential,
interp_horiz_remo_cm,
interpolate_horizontal,
interpolate_horizontal_remo,
interpolate_vertical,
intersect,
intersect_regional,
pbl_index,
pressure_correction_em,
pressure_correction_ge,
relative_humidity,
rotate_uv,
)

# from pyremo.core.remo_ds import update_meta_info

Expand Down
7 changes: 5 additions & 2 deletions pyremo/tables/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import pandas as pd

from ._resources import (read_remo_code_tables, read_remo_domain_tables,
read_remo_vc_tables)
from ._resources import (
read_remo_code_tables,
read_remo_domain_tables,
read_remo_vc_tables,
)


class read_cls:
Expand Down

0 comments on commit 99db253

Please sign in to comment.