Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
trace
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Feb 18, 2024
1 parent 20b95a8 commit f019528
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 62 deletions.
2 changes: 1 addition & 1 deletion ecml_tools/create/functions/actions/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def normalise_time_to_hours(r):


def constants(context, dates, template, param):
print(f"✅ load_source(constants, {template}, {param}")
context.trace("✅", f"load_source(constants, {template}, {param}")
return load_source("constants", source_or_dataset=template, date=dates, param=param)


Expand Down
2 changes: 1 addition & 1 deletion ecml_tools/create/functions/actions/opendap.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def execute(context, dates, url_pattern, *args, **kwargs):
levels = kwargs.get("level", kwargs.get("levelist"))

for url in urls:
# print("URL", url)
context.trace("🌐", url)
s = load_source("opendap", url)
s = s.sel(
valid_datetime=[d.isoformat() for d in dates],
Expand Down
2 changes: 1 addition & 1 deletion ecml_tools/create/functions/steps/rotate_winds.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def rotate_winds(lats, lons, x_wind, y_wind, source_projection, target_projectio
orig_speed = np.sqrt(x_wind**2 + y_wind**2)

x0, y0 = source_projection(lons, lats)
print(x0, y0)

if source_projection.name != "longlat":
x1 = x0 + x_wind
y1 = y0 + y_wind
Expand Down
Loading

0 comments on commit f019528

Please sign in to comment.