112 RTKLIB中關於dcb檔案讀取的問題

2021-09-28 16:57:07 字數 1569 閱讀 6656

關於rtklib讀取dcb檔案的問題,做如下幾點記錄:

1、rtklib並不是只能讀取乙個dcb檔案,輸入dcb檔案路徑f:\\test\\*.dcb就可以讀取該路徑下的所有dcb檔案;

2、如果該資料夾下有很多不同日期的dcb檔案,那麼輸入f:\\test\\*%y%m.dcb就可以設定要選擇的相應時間的dcb檔案,但是要設定資料處理的起始時間ts。比如我設定的起始時間是2019/09/30 12:12:12.00,那麼就會自動讀取f:\\test\\*1909.dcb的檔案,當然還有很多其他的格式設定選擇:

*              %y -> yyyy : year (4 digits) (1900-2099)

* %y -> yy : year (2 digits) (00-99)

* %m -> mm : month (01-12)

* %d -> dd : day of month (01-31)

* %h -> hh : hours (00-23)

* %m -> mm : minutes (00-59)

* %s -> ss : seconds (00-59)

* %n -> ddd : day of year (001-366)

* %w -> wwww : gps week (0001-9999)

* %d -> d : day of gps week (0-6)

* %h -> h : hour code (a=0,b=1,c=2,...,x=23)

* %ha-> hh : 3 hours (00,03,06,...,21)

* %hb-> hh : 6 hours (00,06,12,18)

* %hc-> hh : 12 hours (00,12)

* %t -> mm : 15 minutes (00,15,30,45)

* %r -> rrrr : rover id

* %b -> bbbb : base station id

3、搜尋類似f:\\test\\*1909.dcb的檔案時,可能資料夾裡明明有檔案但是搜尋不到,這時候你需要:

檢視一下findfirstfile的定義,並參考【整理】dword、lpstr、lpwstr、lpcstr、lpcwstr、lptstr、lpctstr理解。

關於c 中txt檔案的讀取操作

txt文件如下 小明 1 00000001 13900000001 小強 2 00000002 13900000002 在listctrl中顯示程式如下 string strtemp cstring name,lev,id,phone int nrow 0 char str2 100 ifstrea...

python讀取指定檔案中的字串報錯問題

1.json.decoder.jsondecodeerror expecting property name enclosed in double quotes line 1 column 2 char 1 2.attributeerror str object has no attribute r...

關於Python讀取檔案的路徑中斜槓問題

最近用python讀取檔案,發現有時候用 會報錯,換成 就不會報錯。查了下資料發現,是python的轉義字元,如果路徑中存在 t 或者 r 這樣的特殊字元,就無法起到目錄跳轉的作用,因此報錯。解決辦法就是告訴系統 不是轉義字元,就起這種作用,現給出乙個示例。python讀檔案需要輸入的目錄引數,列出...