pymgp.satorb.prtlookangle#
- pymgp.satorb.prtlookangle(t, lookangles, flags, titlestr='', tableformat='default')[source]#
Print a table with satellite look angles.
Print a table with zenith and azimuth angles to satellite, off-nadir, azimuth and lookangle from satellite, satellite heading, range, range-rate, and flags for visibility, ascending/descending orbit, right/left looking.
- Parameters:
- tarray_like with shape (n,) or scalar, of type datetime64, str or float
Universal time as datetime64 object, ISO date string or sequential date number (days since 1970-01-01).
- lookanglesarray_like of floats with shape (…,n,8)
Array with the angles (rad), range (m) and range-rate (m/s):
0 incidence angle at the object, which is identical to the zenith angle, 1 azimuth angle from object to the satellite, 2 off-nadir angle at the satellite to the direction of the object, 3 azimuth angle at the satellite in the direction of the object, 4 look angle in the direction of the object with respect to the flight direction of the satellite, 5 azimuth angle of the flight direction of the satellite 6 range between satellite and object 7 range rate in the line of sight
- flagsarray_like of str with shape (…,n,3)
Array with in the first column a ascending/descending flag
['ASC'|'DSC']
, in the 2nd column the left- or right-looking flag['LL'|'RL']
, and in the third column the visibility flag['VIS|''|<swath>]
.- titlestrstr or list of str, optional
Title string. Use a list for 3- or more dimensional cases of lookangles, with shape matching dimensions above 2.
- tableformat{‘default’, ‘ers’}, optional
Table format. The ‘default’ is ‘ers’.
See also
Examples
>>> t = np.array(['2012-01-04 15:00:00', '2012-01-04 16:00:00', '2012-01-04 17:00:00', '2012-01-04 18:00:00'], dtype='datetime64[ns]') >>> xsat = [[-3312531.1007, -5646883.8176, 2737195.4374, 5670.7751, -3969.9994, -1280.2560 ], ... [ 1413410.4872, -7049655.8712, 16233.9739, -1633.0415, -309.5460, 7358.7436 ], ... [-2450115.4006, 6613647.9795, 968353.5303, -6085.7029, -1802.9846, -2992.6557 ], ... [ -649857.9621, 7022897.5289, 968353.5303, -6345.1020, -161.9056, -2992.6557 ]] >>> xobj = [ 3924687.7018, 301132.7660, 5001910.7746]
>>> lookangles, flags = satlookangle(t, xsat, xobj) >>> prtlookangle(t, lookangles, flags) Incidence Satellite Off-Nadir LookAngle LookAngle Satellite Pass Angle Azimuth Angle Azimuth FlightDir Heading Range Rangerate Flags (deg) (deg) (deg) (deg) (deg) (deg) (km) (km/s) 2012-01-04T15:00:00.000 132.479 310.847 41.320 30.533 289.102 101.432 9637.695 -1.507 DSC LL 2012-01-04T16:00:00.000 129.061 264.759 43.437 38.002 50.729 347.273 9230.254 -3.284 ASC RL 2012-01-04T17:00:00.000 133.693 72.462 40.230 323.433 207.920 115.513 9836.440 4.014 DSC LL 2012-01-04T18:00:00.000 128.662 84.296 44.263 321.590 206.077 115.513 9076.242 4.408 DSC LL