Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Public Member Functions | Public Attributes | List of all members
orbits.src.SatRaster.SatRaster Class Reference
Inheritance diagram for orbits.src.SatRaster.SatRaster:
orbits.src.OrbitsBase.OrbitsBase _object

Public Member Functions

def __init__
 
def set_satraster_defaults
 
def set_raster_f_in
 
def set_raster_f_out
 
def parse_satraster_properties
 
def make_sat_state
 
def get_sat_state
 
def make_out_raster
 
def make_arr
 
def band2arr
 
def arr2band
 
def stream2pos
 
def arrs2pos
 
def tle2raster
 
def put_pos_n_arr
 
def calc_xform
 
def calc_inv_xform
 
def geo2xy
 
def xy2geo
 
def correct_geo_xy
 
def calc_geo_bounds
 
def correct_rast_xy
 
def floor_xy
 
def raster_stats
 
def axis_stats
 
def downsample_sum
 
def downsample_arr
 
def write_ds_arr
 
def load_raster_stats
 
def satraster_main
 
- Public Member Functions inherited from orbits.src.OrbitsBase.OrbitsBase
def __init__
 
def set_common_defaults
 
def set_outs
 
def set_ins
 
def set_out_path
 
def set_in_path
 
def set_f_out
 
def set_f_in
 
def handle_escaped_single_quote
 
def set_args
 
def get_args
 
def handle_args
 
def ingest_properties
 
def parse_properties
 
def uniq_satcatid_list
 
def load_times_vars
 
def load_times
 
def handle_time_format
 
def handle_time2dt
 
def handle_dt2time
 
def get_time_vars
 

Public Attributes

 arg_p
 
 satcatid
 
 sat_name
 
 GT
 
 GT_INV
 
 sat_state
 
 band_stats
 
 pixel_res
 
 x_res
 
 y_res
 
 x_dim
 
 y_dim
 
 x0
 
 y0
 
 raster_driver
 
 num_bands
 
 sec_sample_rate
 
 stream
 
 do_raster_stats
 
 geo_x_min
 
 geo_x_max
 
 geo_y_min
 
 geo_y_max
 
 geo_x_tolerance
 
 geo_y_tolerance
 
 geo_precision
 
 rast_tolerance
 
 t_list
 
 f_in
 
 f_in_fullpath
 
 f_out
 
 f_out_fullpath
 
- Public Attributes inherited from orbits.src.OrbitsBase.OrbitsBase
 arg_p
 
 base_path
 
 prop_file_mode
 
 prop_file
 
 prop_file_fullpath
 
 prop_json
 
 args
 
 satcatid
 
 sat_name
 
 time_format
 
 t0
 
 t1
 
 t_forward
 
 t_range
 
 t_range_unit
 
 verbose
 
 out_dir_mode
 
 out_dir
 
 out_date_dir
 
 out_dir_fullpath
 
 in_dir_mode
 
 in_dir
 
 in_date_dir
 
 in_dir_fullpath
 
 f_in
 
 f_out
 
 f_in_fullpath
 
 f_out_fullpath
 
 sec_sample_rate
 
 satcatid_list
 

Constructor & Destructor Documentation

def orbits.src.SatRaster.SatRaster.__init__ (   self,
  satcatid = None,
  sat_name = None,
  ignore_unknown_args = 1,
  time_format = None,
  t0 = None,
  t1 = None 
)

Member Function Documentation

def orbits.src.SatRaster.SatRaster.arr2band (   self,
  arr,
  f_out = "output.tif",
  band = 1 
)
def orbits.src.SatRaster.SatRaster.arrs2pos (   self,
  sec_sample_rate = 5.0 
)
def orbits.src.SatRaster.SatRaster.axis_stats (   self,
  arr,
  pixel_res = 0.1,
  downsampling = 1,
  n_deg1 = 5,
  n_deg2 = 10 
)
Requires downsampling for axis_stats to be meaningful
eg: n_deg > pixel_res
def orbits.src.SatRaster.SatRaster.band2arr (   self,
  f_out = "output.tif",
  band = 1,
  x_dim = 3600,
  y_dim = 1800 
)
def orbits.src.SatRaster.SatRaster.calc_geo_bounds (   self)
Ensure geo bounds are set, calculate once for class
Must be recalculated if raster dimensions or resolution change!
def orbits.src.SatRaster.SatRaster.calc_inv_xform (   self,
  GT = None 
)
Invert geo transform to make geo2xy factor
def orbits.src.SatRaster.SatRaster.calc_xform (   self,
  f_out = None 
)
def orbits.src.SatRaster.SatRaster.correct_geo_xy (   self,
  geo_x,
  geo_y 
)
def orbits.src.SatRaster.SatRaster.correct_rast_xy (   self,
  x,
  y 
)
def orbits.src.SatRaster.SatRaster.downsample_arr (   self,
  arr,
  pixel_res = 0.1,
  n_deg = 5,
  verbose = 1 
)
def orbits.src.SatRaster.SatRaster.downsample_sum (   self,
  band_x_sum,
  band_y_sum,
  pixel_res,
  n_deg,
  verbose = 1 
)
Downsample band, summing pooled values
band_x and band_x size must be divisible by downsample_factor
def orbits.src.SatRaster.SatRaster.floor_xy (   self,
  x,
  y 
)
def orbits.src.SatRaster.SatRaster.geo2xy (   self,
  geo_x,
  geo_y 
)
def orbits.src.SatRaster.SatRaster.get_sat_state (   self)
def orbits.src.SatRaster.SatRaster.load_raster_stats (   self,
  f_out = "output.tif",
  pixel_res = 0.1,
  band = 1,
  x_dim = 3600,
  y_dim = 1800,
  verbose = 1,
  do_axis_stats = 0 
)
def orbits.src.SatRaster.SatRaster.make_arr (   self,
  x_dim = None,
  y_dim = None,
  dtype = np.uint16 
)
def orbits.src.SatRaster.SatRaster.make_out_raster (   self,
  x_dim = 3600,
  y_dim = 1800,
  x_res = 0.1,
  y_res = -0.1,
  x0 = -180,
  y0 = 90,
  raster_driver = "GTiff",
  num_bands = 1,
  f_out = "output.tif" 
)
def orbits.src.SatRaster.SatRaster.make_sat_state (   self)
def orbits.src.SatRaster.SatRaster.parse_satraster_properties (   self)
def orbits.src.SatRaster.SatRaster.put_pos_n_arr (   self,
  lon,
  lat,
  band_arr 
)
def orbits.src.SatRaster.SatRaster.raster_stats (   self,
  arr 
)
Intended to be run after raster data loaded, ignores NaNs
def orbits.src.SatRaster.SatRaster.satraster_main (   self)
def orbits.src.SatRaster.SatRaster.set_raster_f_in (   self)
def orbits.src.SatRaster.SatRaster.set_raster_f_out (   self)
def orbits.src.SatRaster.SatRaster.set_satraster_defaults (   self)
def orbits.src.SatRaster.SatRaster.stream2pos (   self,
  sec_sample_rate = 5.0,
  t_list = None 
)
def orbits.src.SatRaster.SatRaster.tle2raster (   self,
  stream = 1,
  f_out = "output.tif",
  stats = 1,
  band = 1,
  x_dim = 3600,
  y_dim = 1800,
  sec_sample_rate = 5.0,
  t_list = None 
)
def orbits.src.SatRaster.SatRaster.write_ds_arr (   self,
  n_arr,
  pixel_res = 5.0,
  verbose = 1 
)
def orbits.src.SatRaster.SatRaster.xy2geo (   self,
  x,
  y 
)

Member Data Documentation

orbits.src.SatRaster.SatRaster.arg_p
orbits.src.SatRaster.SatRaster.band_stats
orbits.src.SatRaster.SatRaster.do_raster_stats
orbits.src.SatRaster.SatRaster.f_in
orbits.src.SatRaster.SatRaster.f_in_fullpath
orbits.src.SatRaster.SatRaster.f_out
orbits.src.SatRaster.SatRaster.f_out_fullpath
orbits.src.SatRaster.SatRaster.geo_precision
orbits.src.SatRaster.SatRaster.geo_x_max
orbits.src.SatRaster.SatRaster.geo_x_min
orbits.src.SatRaster.SatRaster.geo_x_tolerance
orbits.src.SatRaster.SatRaster.geo_y_max
orbits.src.SatRaster.SatRaster.geo_y_min
orbits.src.SatRaster.SatRaster.geo_y_tolerance
orbits.src.SatRaster.SatRaster.GT
orbits.src.SatRaster.SatRaster.GT_INV
orbits.src.SatRaster.SatRaster.num_bands
orbits.src.SatRaster.SatRaster.pixel_res
orbits.src.SatRaster.SatRaster.rast_tolerance
orbits.src.SatRaster.SatRaster.raster_driver
orbits.src.SatRaster.SatRaster.sat_name
orbits.src.SatRaster.SatRaster.sat_state
orbits.src.SatRaster.SatRaster.satcatid
orbits.src.SatRaster.SatRaster.sec_sample_rate
orbits.src.SatRaster.SatRaster.stream
orbits.src.SatRaster.SatRaster.t_list
orbits.src.SatRaster.SatRaster.x0
orbits.src.SatRaster.SatRaster.x_dim
orbits.src.SatRaster.SatRaster.x_res
orbits.src.SatRaster.SatRaster.y0
orbits.src.SatRaster.SatRaster.y_dim
orbits.src.SatRaster.SatRaster.y_res

The documentation for this class was generated from the following file:

Copyright 2014 Google Inc. All rights reserved.