OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
Collaboration diagram for hico_geo:
[legend]

Public Member Functions

def __init__ (self, ifile, earth_orient_file, leap_sec_file, boresight)
 
def write_geo_nc (self, nc_grp, calib_grp)
 

Public Attributes

 input_file
 
 earth_orient_file
 
 leap_sec_file
 
 boresight
 
 iss_orientation
 

Static Public Attributes

string filein = "{}/hico/{}".format(ocvarroot,'nutation.dat')
 
 nut_data = astreduc.initReduc(filein)
 
 astrodate = astreduc.get_astrodate(pvq_data['SecondsSinceEpoch'][0])
 
int yyyy = astrodate.year% 100
 
 pmx
 
 pmy
 
 dut1
 
 loda
 
 lsdat = astreduc.getLSData(leap_sec_file,astrodate.year,astrodate.month,astrodate.day)
 
 r_hico_to_iss = np.zeros((3,3))
 
int imult = 1
 
 theta = np.zeros(nsamples)
 
int frac = imult*(i-255.5)/255.5
 
tuple theta = (theta + theta_stowed + float(quat_info['Theta (degrees from stowed position)']))*deg2Rad
 
 svec = np.zeros((3,nsamples))
 
 pm = astreduc.polarm(pmx,pmy)
 
 r_iss = np.array((3),dtype=float)
 
 q_iss = np.array((4),dtype=float)
 
 fout = quat_info['Expected Lon/Lat/View angle filename']
 
string fheader = fout.split('.bil')[0] + '.hdr'
 
 lines
 
 hicoHeader
 
 lon
 
 lat
 
 viewzen
 
 viewaz
 
 solarzen
 
 solaraz
 
list q_iss = [ pvq_data['ISSQS'][i],pvq_data['ISSQX'][i],pvq_data['ISSQY'][i],pvq_data['ISSQZ'][i] ]
 
 rot_body = astreduc.quat_to_rot(q_iss)
 
 hico_jdate = astreduc.UT2time(astrodate.year,astrodate.month,astrodate.day,astrodate.hour,astrodate.minute,astrodate.second,dut1,lsdat)
 
 prec = astreduc.precession(hico_jdate.ttdb)
 
 DeltaPsi
 
 TrueEps
 
 MeanEps
 
 Omega
 
 nut
 
 st
 
 stdot
 
 OmegaEarth
 
 t_eci_to_ecef = np.dot(pm,np.dot(st,np.dot(nut,prec)))
 
 t_hico_to_ecef = np.dot(t_eci_to_ecef,np.dot(rot_body,r_hico_to_iss))
 
 r_ecef = np.dot(t_eci_to_ecef,r_iss)
 
 v_ecef = np.dot(t_hico_to_ecef,svec)
 
 llh = astreduc.ecef2latlon(r_iss_new)
 
 view_zen
 
 view_az
 
 sol_zen_az = rad2Deg*astreduc.solar_geometry(astrodate.year,astrodate.month,astrodate.day,astrodate.hour,astrodate.minute,astrodate.second,llh[1,:],-llh[0,:])
 
 dtype
 
 r_iss_new = np.tile(r_iss[np.newaxis],1).T
 

Detailed Description

Definition at line 9 of file cproc_hico.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  ifile,
  earth_orient_file,
  leap_sec_file,
  boresight 
)

Definition at line 10 of file cproc_hico.py.

Member Function Documentation

◆ write_geo_nc()

def write_geo_nc (   self,
  nc_grp,
  calib_grp 
)

Definition at line 219 of file cproc_hico.py.

Member Data Documentation

◆ astrodate

astrodate = astreduc.get_astrodate(pvq_data['SecondsSinceEpoch'][0])
static

Definition at line 58 of file cproc_hico.py.

◆ boresight

boresight

Definition at line 23 of file cproc_hico.py.

◆ DeltaPsi

DeltaPsi
static

Definition at line 163 of file cproc_hico.py.

◆ dtype

dtype
static

Definition at line 180 of file cproc_hico.py.

◆ dut1

dut1
static

Definition at line 63 of file cproc_hico.py.

◆ earth_orient_file

earth_orient_file

Definition at line 21 of file cproc_hico.py.

◆ fheader

string fheader = fout.split('.bil')[0] + '.hdr'
static

Definition at line 123 of file cproc_hico.py.

◆ filein

string filein = "{}/hico/{}".format(ocvarroot,'nutation.dat')
static

Definition at line 55 of file cproc_hico.py.

◆ fout

fout = quat_info['Expected Lon/Lat/View angle filename']
static

Definition at line 122 of file cproc_hico.py.

◆ frac

int frac = imult*(i-255.5)/255.5
static

Definition at line 100 of file cproc_hico.py.

◆ hico_jdate

hico_jdate = astreduc.UT2time(astrodate.year,astrodate.month,astrodate.day,astrodate.hour,astrodate.minute,astrodate.second,dut1,lsdat)
static

Definition at line 160 of file cproc_hico.py.

◆ hicoHeader

hicoHeader
static
Initial value:
= hicoLonLatHdr(filename=fheader, \
samples=nsamples, \
lines=self.lines, \
description='HICO geometry file, with calculated positions, and solar & view geometry, on the ground', \
sensor_type='HICO-ISS' \
)

Definition at line 128 of file cproc_hico.py.

◆ imult

int imult = 1
static

Definition at line 94 of file cproc_hico.py.

◆ input_file

input_file

Definition at line 20 of file cproc_hico.py.

◆ iss_orientation

iss_orientation

Definition at line 49 of file cproc_hico.py.

◆ lat

lat
static

Definition at line 147 of file cproc_hico.py.

◆ leap_sec_file

leap_sec_file

Definition at line 22 of file cproc_hico.py.

◆ lines

lines
static

Definition at line 125 of file cproc_hico.py.

◆ llh

Definition at line 174 of file cproc_hico.py.

◆ loda

loda
static

Definition at line 63 of file cproc_hico.py.

◆ lon

lon
static

Definition at line 146 of file cproc_hico.py.

◆ lsdat

lsdat = astreduc.getLSData(leap_sec_file,astrodate.year,astrodate.month,astrodate.day)
static

Definition at line 71 of file cproc_hico.py.

◆ MeanEps

MeanEps
static

Definition at line 163 of file cproc_hico.py.

◆ nut

nut
static

Definition at line 163 of file cproc_hico.py.

◆ nut_data

nut_data = astreduc.initReduc(filein)
static

Definition at line 57 of file cproc_hico.py.

◆ Omega

Omega
static

Definition at line 163 of file cproc_hico.py.

◆ OmegaEarth

OmegaEarth
static

Definition at line 164 of file cproc_hico.py.

◆ pm

pm = astreduc.polarm(pmx,pmy)
static

Definition at line 116 of file cproc_hico.py.

◆ pmx

pmx
static

Definition at line 63 of file cproc_hico.py.

◆ pmy

pmy
static

Definition at line 63 of file cproc_hico.py.

◆ prec

prec = astreduc.precession(hico_jdate.ttdb)
static

Definition at line 162 of file cproc_hico.py.

◆ q_iss [1/2]

q_iss = np.array((4),dtype=float)
static

Definition at line 121 of file cproc_hico.py.

◆ q_iss [2/2]

list q_iss = [ pvq_data['ISSQS'][i],pvq_data['ISSQX'][i],pvq_data['ISSQY'][i],pvq_data['ISSQZ'][i] ]
static

Definition at line 157 of file cproc_hico.py.

◆ r_ecef

r_ecef = np.dot(t_eci_to_ecef,r_iss)
static

Definition at line 170 of file cproc_hico.py.

◆ r_hico_to_iss

r_hico_to_iss = np.zeros((3,3))
static

Definition at line 80 of file cproc_hico.py.

◆ r_iss

r_iss = np.array((3),dtype=float)
static

Definition at line 120 of file cproc_hico.py.

◆ r_iss_new

r_iss_new = np.tile(r_iss[np.newaxis],1).T
static

Definition at line 207 of file cproc_hico.py.

◆ rot_body

rot_body = astreduc.quat_to_rot(q_iss)
static

Definition at line 158 of file cproc_hico.py.

◆ sol_zen_az

sol_zen_az = rad2Deg*astreduc.solar_geometry(astrodate.year,astrodate.month,astrodate.day,astrodate.hour,astrodate.minute,astrodate.second,llh[1,:],-llh[0,:])
static

Definition at line 176 of file cproc_hico.py.

◆ solaraz

solaraz
static

Definition at line 151 of file cproc_hico.py.

◆ solarzen

solarzen
static

Definition at line 150 of file cproc_hico.py.

◆ st

st
static

Definition at line 164 of file cproc_hico.py.

◆ stdot

stdot
static

Definition at line 164 of file cproc_hico.py.

◆ svec

svec = np.zeros((3,nsamples))
static

Definition at line 110 of file cproc_hico.py.

◆ t_eci_to_ecef

t_eci_to_ecef = np.dot(pm,np.dot(st,np.dot(nut,prec)))
static

Definition at line 166 of file cproc_hico.py.

◆ t_hico_to_ecef

t_hico_to_ecef = np.dot(t_eci_to_ecef,np.dot(rot_body,r_hico_to_iss))
static

Definition at line 168 of file cproc_hico.py.

◆ theta [1/2]

theta = np.zeros(nsamples)
static

Definition at line 97 of file cproc_hico.py.

◆ theta [2/2]

tuple theta = (theta + theta_stowed + float(quat_info['Theta (degrees from stowed position)']))*deg2Rad
static

Definition at line 103 of file cproc_hico.py.

◆ TrueEps

TrueEps
static

Definition at line 163 of file cproc_hico.py.

◆ v_ecef

v_ecef = np.dot(t_hico_to_ecef,svec)
static

Definition at line 173 of file cproc_hico.py.

◆ view_az

view_az
static

Definition at line 174 of file cproc_hico.py.

◆ view_zen

view_zen
static

Definition at line 174 of file cproc_hico.py.

◆ viewaz

viewaz
static

Definition at line 149 of file cproc_hico.py.

◆ viewzen

viewzen
static

Definition at line 148 of file cproc_hico.py.

◆ yyyy

int yyyy = astrodate.year% 100
static

Definition at line 60 of file cproc_hico.py.


The documentation for this class was generated from the following file:
  • /gfs-oceanweb/web/ocssw/ocssw_src/src/l1bgen_hico/hico/cproc_hico.py