Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#79: corrected wind speed obs_value assignment. Replaced code already…
Browse files Browse the repository at this point in the history
… exists in utils.construct_extra_ids()
rjhd2 committed Aug 24, 2023
1 parent a61d1a6 commit 6329b1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PYTHON_CDM_Conversion_code/hourly_qff_to_cdm_obs_v1.py
Original file line number Diff line number Diff line change
@@ -497,8 +497,8 @@ def main(station="", subset="", run_all=False, clobber=False):
dfws = df[INITIAL_COLUMNS]

# change for each variable to convert to cdm compliant values
dfws["secondary_id"]=df["wind_speed_Source_Station_ID"].astype(str)
dfws['secondary_id'] = dfws['secondary_id'].astype(str).apply(lambda x: x.replace('.0', ''))
dfws["observation_value"] = df["wind_speed"]
dfws["original_value"] = df["wind_speed"]
dfws["measurement_code"] = df["wind_speed_Measurement_Code"]

dfws = h_utils.construct_extra_ids(dfws, df, "wind_speed")

0 comments on commit 6329b1b

Please sign in to comment.