@@ -948,6 +948,12 @@ def rinexmod(
948
948
rnxobj .set_site (marker )
949
949
950
950
### load the metadata from sitelog or GAMIT files if any
951
+
952
+ if not sitelog and (not station_info or not lfile_apriori ):
953
+ logger .error (
954
+ "No metadata provided. (sitelog or station.info/lfile **couple**)."
955
+ "RINEX header with default rec. values will remain!" )
956
+
951
957
## sitelogs
952
958
if sitelog :
953
959
metadata_obj_list = metadata_input_manage (sitelog , force = force_sitelog )
@@ -956,7 +962,11 @@ def rinexmod(
956
962
# Indeed, the GAMIT files might have been read outside this function
957
963
# (most likely actually). The already read GAMIT files are then stored
958
964
# in the 'sitelog' variable as a list of MetaData objects
959
-
965
+
966
+ if (station_info and not lfile_apriori ) or (not station_info and lfile_apriori ):
967
+ logger .critical ("station_info and lfile_apriori must be provided together" )
968
+ raise RinexModInputArgsError
969
+
960
970
if not sitelog and (not station_info or not lfile_apriori ):
961
971
logger .warning ("No sitelog nor station.info+lfile provided. Per default rec.'s header will remain & no new"
962
972
"metdata will be written!" )
@@ -1212,7 +1222,8 @@ def rinexmod_cli(
1212
1222
and not lfile_apriori
1213
1223
):
1214
1224
logger .critical (
1215
- "No action asked, provide at least one of the following args : --sitelog, --modif_kw, --marker, --longname, --station_info, --lfile_apriori"
1225
+ "No action asked, provide at least one of the following args:"
1226
+ "--sitelog, --modif_kw, --marker, --longname, --station_info, --lfile_apriori"
1216
1227
)
1217
1228
raise RinexModInputArgsError
1218
1229
0 commit comments