Time resolution issue for stations in SKYNET (seen when using dataframe_to_netcdf)
The netcdf files generated from data from SKYNET stations using the function dataframe_to_netcdf is always empty. We think the reason is that the time resolution of the data of 10s was not taken into account in the definition of dataframe_to_netcdf in line 304 (
https://git.sophia.mines-paristech.fr/oie/libinsitu/-/blob/main/libinsitu/cli/transform.py?ref_type=heads#L304)
303 : res_sec = get_df_resolution(data)
304 : update_props("Station_TimeResolution", "%dM" % (res_sec // 60))
For SKYNET stations res_sec is 10 (seconds, which is correct) so "Station_TimeResolution", "%dM" % (res_sec // 60) is 0 (seconds, which is incorrect). For this reason the netcdf files created are empty.
Until now this has only happened for the stations in the SKYNET network.
Edited by Jorge Lezaca