NASA Logo
Ocean Color Science Software

ocssw V2022
geo_eval Namespace Reference

Functions

def check_for_bad_geolocation (coord)
 
def get_cloud_mask (str cld_file)
 
List[strread_file_list (str path_chips)
 
np.ndarray get_scantime (List[int] year, List[int] day, List[int] msec)
 
def get_viirs_modis_lat_lon_scantime (nc.Dataset f)
 
def get_linenumber ()
 
def read_file_l1b (str path)
 
def get_position (np.ndarray lat, np.ndarray lon, feature_lat, feature_lon)
 
def lorentzian (latlon, x0, y0, GammaX, GammaY, Factor, alpha, Amplitude, offset)
 
def read_chip_file (str path)
 
def parse_command_line ()
 
def ini_input_data (lat, lon, path_chip)
 
def make_rectangular_grid (np.ndarray lat, np.ndarray lon, np.ndarray data)
 
def extract_scene (lat, lon, i, j, w, h, image=None)
 
def get_match_layers (rbs, point, sc_lon, sc_lat, sc_image, shift_lon, shift_lat)
 
def get_cross_normalized_correlation (rbs, point, sc_lon, sc_lat, sc_image, shift_lon, shift_lat)
 
def get_lat_lon_fit_shifts (ncc_original, lat_grid, lon_grid, delta_latitude, delta_longitude)
 
def get_lat_lon_shift (str l1b_path, List[str] chips_list, str output_file_name, debug_mode=False, **kwargs)
 

Variables

string PROGRAM_NAME = 'geo_eval'
 
string VERSION = "1.3.1"
 
float bad_float = -32767.0
 
 running_time = datetime.datetime.now()
 
 RUNNING_TIME = running_time.strftime("%Y-%m-%dT%H%M%S")
 
int subpixels_default_max = 30
 
int subpixels_default = 15
 
int window_size_defalut = 5
 
int min_number_of_points = 100
 
 cf = currentframe()
 
 filename_script = getframeinfo(cf).filename
 
def args = parse_command_line()
 
def l1b_path = args.ifile
 
List[strchips_list = read_file_list(args.ilist)
 
def ofile = args.ofile
 
def cloud_mask_file = args.cloudmask
 
def window_size = args.window_size
 
def subpixels = args.subpixels
 
def ret_code
 

Function Documentation

◆ check_for_bad_geolocation()

def geo_eval.check_for_bad_geolocation (   coord)

Definition at line 32 of file geo_eval.py.

◆ extract_scene()

def geo_eval.extract_scene (   lat,
  lon,
  i,
  j,
  w,
  h,
  image = None 
)

Definition at line 288 of file geo_eval.py.

◆ get_cloud_mask()

def geo_eval.get_cloud_mask ( str  cld_file)

Definition at line 39 of file geo_eval.py.

◆ get_cross_normalized_correlation()

def geo_eval.get_cross_normalized_correlation (   rbs,
  point,
  sc_lon,
  sc_lat,
  sc_image,
  shift_lon,
  shift_lat 
)

Definition at line 311 of file geo_eval.py.

◆ get_lat_lon_fit_shifts()

def geo_eval.get_lat_lon_fit_shifts (   ncc_original,
  lat_grid,
  lon_grid,
  delta_latitude,
  delta_longitude 
)

Definition at line 329 of file geo_eval.py.

◆ get_lat_lon_shift()

def geo_eval.get_lat_lon_shift ( str  l1b_path,
List[str chips_list,
str  output_file_name,
  debug_mode = False,
**  kwargs 
)

Definition at line 354 of file geo_eval.py.

◆ get_linenumber()

def geo_eval.get_linenumber ( )

Definition at line 81 of file geo_eval.py.

◆ get_match_layers()

def geo_eval.get_match_layers (   rbs,
  point,
  sc_lon,
  sc_lat,
  sc_image,
  shift_lon,
  shift_lat 
)

Definition at line 298 of file geo_eval.py.

◆ get_position()

def geo_eval.get_position ( np.ndarray  lat,
np.ndarray  lon,
  feature_lat,
  feature_lon 
)

Definition at line 136 of file geo_eval.py.

◆ get_scantime()

np.ndarray geo_eval.get_scantime ( List[int]  year,
List[int]  day,
List[int]  msec 
)

Definition at line 59 of file geo_eval.py.

◆ get_viirs_modis_lat_lon_scantime()

def geo_eval.get_viirs_modis_lat_lon_scantime ( nc.Dataset  f)

Definition at line 68 of file geo_eval.py.

◆ ini_input_data()

def geo_eval.ini_input_data (   lat,
  lon,
  path_chip 
)

Definition at line 252 of file geo_eval.py.

◆ lorentzian()

def geo_eval.lorentzian (   latlon,
  x0,
  y0,
  GammaX,
  GammaY,
  Factor,
  alpha,
  Amplitude,
  offset 
)

Definition at line 177 of file geo_eval.py.

◆ make_rectangular_grid()

def geo_eval.make_rectangular_grid ( np.ndarray  lat,
np.ndarray  lon,
np.ndarray  data 
)

Definition at line 258 of file geo_eval.py.

◆ parse_command_line()

def geo_eval.parse_command_line ( )

Definition at line 200 of file geo_eval.py.

◆ read_chip_file()

def geo_eval.read_chip_file ( str  path)

Definition at line 188 of file geo_eval.py.

◆ read_file_l1b()

def geo_eval.read_file_l1b ( str  path)

Definition at line 86 of file geo_eval.py.

◆ read_file_list()

List[str] geo_eval.read_file_list ( str  path_chips)

Definition at line 48 of file geo_eval.py.

Variable Documentation

◆ args

def args = parse_command_line()

Definition at line 615 of file geo_eval.py.

◆ bad_float

float bad_float = -32767.0

Definition at line 22 of file geo_eval.py.

◆ cf

cf = currentframe()

Definition at line 29 of file geo_eval.py.

◆ chips_list

List[str] chips_list = read_file_list(args.ilist)

Definition at line 619 of file geo_eval.py.

◆ cloud_mask_file

def cloud_mask_file = args.cloudmask

Definition at line 621 of file geo_eval.py.

◆ filename_script

filename_script = getframeinfo(cf).filename

Definition at line 30 of file geo_eval.py.

◆ l1b_path

def l1b_path = args.ifile

Definition at line 618 of file geo_eval.py.

◆ min_number_of_points

int min_number_of_points = 100

Definition at line 28 of file geo_eval.py.

◆ ofile

def ofile = args.ofile

Definition at line 620 of file geo_eval.py.

◆ PROGRAM_NAME

string PROGRAM_NAME = 'geo_eval'

Definition at line 20 of file geo_eval.py.

◆ ret_code

def ret_code
Initial value:
2  l1b_path, chips_list, ofile, debug_mode=args.debug, cloud_mask_file=cloud_mask_file, window_size=window_size,
3  subpixels=subpixels, confidence=args.confidence, odebugfile=args.odebugfile)

Definition at line 624 of file geo_eval.py.

◆ running_time

running_time = datetime.datetime.now()

Definition at line 23 of file geo_eval.py.

◆ RUNNING_TIME

RUNNING_TIME = running_time.strftime("%Y-%m-%dT%H%M%S")

Definition at line 24 of file geo_eval.py.

◆ subpixels

def subpixels = args.subpixels

Definition at line 623 of file geo_eval.py.

◆ subpixels_default

int subpixels_default = 15

Definition at line 26 of file geo_eval.py.

◆ subpixels_default_max

int subpixels_default_max = 30

Definition at line 25 of file geo_eval.py.

◆ VERSION

string VERSION = "1.3.1"

Definition at line 21 of file geo_eval.py.

◆ window_size

def window_size = args.window_size

Definition at line 622 of file geo_eval.py.

◆ window_size_defalut

int window_size_defalut = 5

Definition at line 27 of file geo_eval.py.

def get_lat_lon_shift(str l1b_path, List[str] chips_list, str output_file_name, debug_mode=False, **kwargs)
Definition: geo_eval.py:354