Skip to content

Commit f6c40bb

Browse files
authored
Remove deprecated GEOS5FP parameter
1 parent b41a0c6 commit f6c40bb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

FLiESLUT/process_FLiES_LUT_raster.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ def process_FLiES_LUT_raster(
2424
albedo: Raster = None,
2525
SZA: Raster = None,
2626
AOT: Raster = None,
27-
GEOS5FP_connection: GEOS5FP = None,
28-
GEOS5FP_directory: str = ".") -> Raster:
27+
GEOS5FP_connection: GEOS5FP = None) -> Raster:
2928
"""Calculates shortwave incoming radiation for a raster using the FLiES look-up table.
3029
3130
This function processes a raster to calculate `SWin` using the FLiES look-up table. It handles
@@ -45,8 +44,6 @@ def process_FLiES_LUT_raster(
4544
SZA: Optional solar zenith angle raster in degrees.
4645
AOT: Optional aerosol optical thickness raster.
4746
GEOS5FP_connection: Optional `GEOS5FP` connection object for retrieving missing data.
48-
GEOS5FP_directory: Optional working directory for the `GEOS5FP` connection.
49-
Defaults to the current directory.
5047
5148
Returns:
5249
A `Raster` object containing the calculated `SWin` values.
@@ -65,7 +62,7 @@ def process_FLiES_LUT_raster(
6562
cloud_mask = np.array(cloud_mask)
6663

6764
if GEOS5FP_connection is None:
68-
GEOS5FP_connection = GEOS5FP(working_directory=GEOS5FP_directory)
65+
GEOS5FP_connection = GEOS5FP()
6966

7067
if COT is None:
7168
COT = GEOS5FP_connection.COT(time_UTC=time_UTC, geometry=geometry)

0 commit comments

Comments
 (0)