python - Numpy data types: data type not understood -
still new numpy in python...i'm trying build own array rinex data (see example):
g13 2014 01 02 02 00 00 .440594740212d-04 -.375166564481d-11 .000000000000d+00 .290000000000d+02 .705937500000d+02 .382980238378d-08 -.135945866650d+01 .353716313839d-05 .509947887622d-02 .137723982334d-04 .515366394615d+04 .352800000000d+06 -.819563865662d-07 .312956454846d+01 -.633299350739d-07 .979542877504d+00 .129500000000d+03 .219020237787d+01 -.757495838456d-08 -.431803700643d-09 .100000000000d+01 .177300000000d+04 .000000000000d+00 .240000000000d+01 .000000000000d+00 -.111758708954d-07 .290000000000d+02 .345618000000d+06 .400000000000d+01 i'm using following code initialised matrix:
parameter_block_list = np.empty(cs.total_sats, cs.rinex_navigation_parameters) * np.nan the problem conversion of numbers in rinex file block, each number uses "d" exponential. there way in numpy make data type conversion caters such data formats? error i'm receiving is:
typeerror: data type not understood
i think reason you're getting data type not understood in passing dimensions of array empty separate arguments, first being treated shape , second dtype -- see the docs. perhaps mean pass shape tuple:
parameter_block_list = np.empty((cs.total_sats, cs.rinex_navigation_parameters)) * np.nan
Comments
Post a Comment