Skip to content

Commit

Permalink
change prints to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewEichmann-NOAA committed Sep 20, 2023
1 parent 0f1bbbd commit 10e1886
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/exglobal_prep_ocean_obs.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/usr/bin/env python3
# exglobal_prep_ocean_obs.py
# Pepares observations for coupled ocean DA
# Pepares observations for marine DA
import os
from wxflow import YAMLFile
import prep_marine_obs
import logging

OBS_YAML = os.getenv('OBS_YAML')
print("OBS_YAML:", OBS_YAML)

data = YAMLFile(OBS_YAML)
print(data)

for observer in data['observers']:
obs_source_name = observer['obs space']['name']
print(obs_source_name)
dwprint(obs_source_name)
logging.info(f"obs_source_name: {obs_source_name}")
prep_marine_obs.obs_fetch(obs_source_name)

0 comments on commit 10e1886

Please sign in to comment.