convert level0 netCDF data into level1 netCDF data
input variables:
file_path - string
file_name_out - string
lidar_info - class lidar_location(lat,lon,zsl,name,lidar_id,bearing,gc_corr,pulse_frequency,start_str,end_str,diff_WGS84=np.nan,diff_geoid=np.nan,diff_bessel=np.nan)
ds_temp.attrs['description']='corrected data of Halo Photonics Streamline, corrected variables: none'
lat_var=xr.Variable([],lidar_info.lat,\
attrs={'units':'decimal degree north',\
'long_name':'latitude',\
'description':'latitude, north is positive',\
'missing_value':-999.})
ds_temp=ds_temp.assign(lat=lat_var)
lon_var=xr.Variable([],lidar_info.lon,\
attrs={'units':'decimal degrees east',\
'long_name':'longitude',\
'description':'longitude, east is positive',\
'missing_value':-999.})
ds_temp=ds_temp.assign(lon=lon_var)
zsl_var=xr.Variable([],lidar_info.zsl,\
attrs={'units':'m',\
'long_name':'altitude',\
'description':'Height above mean sea leval, Gebrauchshoehe Adria; Transformation to other references is possible by using the additive factor supplied in the fields \"difference_to_geoid\", \"difference_to_bessel\" and \"difference_to_WGS84\", which are added as a list of values, with each entry corresponging to one station, e.g. zsl[1]+zsl.differenve_to_geoid[1] = height above Geoid for the first station',\
'missing_value':-999.,\
'difference_to_geoid':lidar_info.diff_geoid,\
'difference_to_geoid_descr':'Difference between zsl and height above geoid for each STATION_KEY, e.g. zsl[1] + zsl.difference_to_geoid[1] = Height above Geoid in m',\
'difference_to_bessel':lidar_info.diff_bessel,\
'difference_to_bessel_descr':'Difference between zsl and height above Bessel 1841 reference ellipsoid for geodetic datum MGI for each STATION_KEY; e.g. zsl[1] + zsl.difference_to_bessel[1] = Height above Bessel ellipsoid in m',\
'difference_to_WGS84':lidar_info.diff_WGS84,\
'difference_to_WGS_descr':'Difference between zsl and height above WGS84 reference ellipsoid for each STATION_KEY, e.g., zsl[1] + zsl.difference_to_WGS84[1] = Height above WGS84 ellispoid'})
ds_temp=ds_temp.assign(zsl=zsl_var)
bearing_var=xr.Variable([],lidar_info.bearing,\
attrs={'units':'degrees',\
'long_name':'angle of bearing offset',\
'description':'angle between the theoretical position of North direction in projected plane (epsg:31254) and North alignment of the instrument: bearing = North_lidar - North_projected ',\