Skip to content

Commit

Permalink
use ERDDAP default format
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Apr 8, 2024
1 parent abbd14a commit 2797c63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gliderpy/fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def standardise_df(glider_df: pd.DataFrame, dataset_url: str) -> pd.DataFrame:
glider_df.columns = glider_df.columns.str.lower()
glider_df = glider_df.set_index("time (utc)")
glider_df = glider_df.rename(columns=server_parameter_rename)
glider_df.index = pd.to_datetime(glider_df.index)
glider_df.index = pd.to_datetime(
glider_df.index,
format="%Y-%m-%dT%H:%M:%SZ",
)
# We need to sort b/c of the non-sequential submission of files due to
# the nature of glider data transmission.
glider_df = glider_df.sort_index()
Expand Down

0 comments on commit 2797c63

Please sign in to comment.