Skip to content

Commit

Permalink
Merge pull request #99 from mao-wfs/#98-Update-thermometer-module
Browse files Browse the repository at this point in the history
Update thermometer module
  • Loading branch information
kiwakami authored Nov 28, 2023
2 parents ba9378b + 4124b52 commit 8e2ec5a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mao_merge_45m/thermometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SunshineFlag:

@dataclass
class Temperature(AsDataset):
"""Representation of antenna logs in xarray."""
"""Representation of thermometer logs in xarray."""

temperature_1p5m: Dataof[Temperature1p5m] = 0.0
"""Temperature at 1.5 m above the ground surface at the observation building."""
Expand All @@ -66,7 +66,7 @@ def convert(
) -> Path:
"""Convert a raw log file(s) to a formatted Zarr file.
This function will make a one-dimensional antenna log outputs
This function will make a one-dimensional thermometer log outputs
with time metadata derived from the raw log file.
Args:
Expand Down Expand Up @@ -128,7 +128,6 @@ def convert(
df = pd.concat([df, df_])

# write DataFrame(s) to the Zarr file
print(df)
ds = Temperature.new(df.temperature_15, df.temperature_30, df.sunshine_flag)
ds = ds.assign_coords(time=ds.time - JST_HOURS)
ds = ds.chunk(length_per_chunk)
Expand Down

0 comments on commit 8e2ec5a

Please sign in to comment.