OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
proc_hico.py File Reference

Go to the source code of this file.

Namespaces

 hico.proc_hico
 

Functions

def proc_hico (ifile, earth_orient_file, leap_sec_file, boresight, nc_grp, calib_grp)
 

Variables

 parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter, description=, add_help=True)
 
 nargs
 
 type
 
 str
 
 help
 
 float
 
 default
 
 args = parser.parse_args('-ifile iss.2013067.0308.063527.L0.12933.20130308205743.hico_pos_vel_quat.csv -efile /home/rhealy/ocsswn/run/var/hico/finals.data -lfile /home/rhealy/ocsswn/run/var/modis/leapsec.dat -boresight -0.9957 0.0268 -0.0128'.split())
 
string ifile = ''.join(args.ifile)
 
string earth_orient_file = ''.join(args.efile)
 
string leap_sec_file = ''.join(args.lfile)
 
 boresight = args.boresight
 
 rootgrp = Dataset('test_hico.nc','w')
 
 navigation = rootgrp.createGroup("navigation")
 
 senz = navigation.createVariable('sensor_zenith','f4',('scan_lines','samples',))
 
 solz = navigation.createVariable('solar_zenith','f4',('scan_lines','samples',))
 
 sena = navigation.createVariable('sensor_azimuth','f4',('scan_lines','samples',))
 
 sola = navigation.createVariable('solar_azimuth','f4',('scan_lines','samples',))
 
 lon = navigation.createVariable('longitude','f4',('scan_lines','samples',))
 
 lat = navigation.createVariable('latitude','f4',('scan_lines','samples',))
 
 units
 
 valid_min
 
 valid_max
 
 long_name
 
 metadata = rootgrp.createGroup("metadata")
 
 hico = metadata.createGroup("HICO")
 
 calibration = hico.createGroup("Calibration")