/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/sed/sed_property_file.c File Reference

#include <stdio.h>
#include <glib.h>
#include "utils/utils.h"
#include "sed_property_file.h"

Go to the source code of this file.

Functions

Sed_property_file sed_property_file_new (const char *file, Sed_property p, Sed_property_file_attr a)
Sed_property_file sed_property_file_destroy (Sed_property_file f)
Sed_property_file_attr sed_property_file_attr_new ()
Sed_property_file_attr sed_property_file_attr_copy (Sed_property_file_attr dest, Sed_property_file_attr src)
Sed_property_file_attr sed_property_file_attr_dup (Sed_property_file_attr src)
Sed_property_file_attr sed_property_file_attr_destroy (Sed_property_file_attr a)
Sed_property_file_header sed_property_file_header_destroy (Sed_property_file_header h)
gssize sed_property_file_header_fprint (FILE *fp, Sed_property_file_header hdr)
Sed_property_file_header sed_property_file_header_new (const Sed_cube p, Eh_ndgrid g, Sed_property property)
double sed_cube_min_height (Sed_cube p, gssize **col_id)
double sed_cube_max_height (Sed_cube p, gssize **col_id)
gssize * sed_cube_x_cols_between (Sed_cube p, double dx, double left, double right)
gssize * sed_cube_y_cols_between (Sed_cube p, double dy, double bottom, double top)
gssize sed_cube_n_rows_between (Sed_cube p, double dz, double lower, double upper, gssize *col_id)
Eh_ndgrid sed_cube_property_subgrid (Sed_cube p, Sed_property property, double lower_left[3], double upper_right[3], double resolution[3])
gssize sed_property_file_write (Sed_property_file sed_fp, Sed_cube p)


Function Documentation

double sed_cube_max_height ( Sed_cube  p,
gssize **  col_id 
)

Definition at line 489 of file sed_property_file.c.

References eh_compare_dbl(), eh_max, sed_cube_size(), and sed_cube_top_height().

Referenced by sed_cube_property_subgrid().

double sed_cube_min_height ( Sed_cube  p,
gssize **  col_id 
)

Definition at line 459 of file sed_property_file.c.

References eh_compare_dbl(), eh_min, eh_require, sed_cube_base_height(), and sed_cube_size().

Referenced by sed_cube_property_subgrid().

gssize sed_cube_n_rows_between ( Sed_cube  p,
double  dz,
double  lower,
double  upper,
gssize *  col_id 
)

Definition at line 596 of file sed_property_file.c.

References eh_lower_bound, eh_require, eh_set_max, eh_set_min, eh_upper_bound, sed_column_len(), sed_cube_base_height(), sed_cube_col(), and sed_cube_z_res().

Referenced by sed_cube_property_subgrid().

Eh_ndgrid sed_cube_property_subgrid ( Sed_cube  p,
Sed_property  property,
double  lower_left[3],
double  upper_right[3],
double  resolution[3] 
)

Definition at line 306 of file sed_property_file.c.

References eh_dbl_array_grid(), eh_dbl_grid_set_val(), eh_free, eh_grid_destroy(), eh_max, eh_min, eh_ndgrid_malloc(), eh_ndgrid_n(), eh_ndgrid_to_grid(), eh_ndgrid_x(), eh_new, eh_round(), sed_column_copy(), sed_column_destroy(), sed_column_dup(), sed_column_len(), sed_column_load(), sed_column_nth_cell(), sed_column_rebin(), sed_column_set_z_res(), sed_column_strip(), sed_column_top_height(), sed_column_water_pressure(), sed_cube_col(), sed_cube_col_x(), sed_cube_col_y(), sed_cube_id(), sed_cube_max_height(), sed_cube_min_height(), sed_cube_n_rows_between(), sed_cube_size(), sed_cube_x_cols_between(), sed_cube_x_res(), sed_cube_y_cols_between(), sed_cube_y_res(), sed_cube_z_res(), sed_property_is_named(), and sed_property_measure().

Referenced by sed_property_file_write().

gssize * sed_cube_x_cols_between ( Sed_cube  p,
double  dx,
double  left,
double  right 
)

Get the x-indices to columns between two x-locations.

Parameters:
p A Sed_cube
dx x-spacing to use
left x-position of startig point
right x-position of ending point
Returns:
Array of x-indices (terminated with -1)

Definition at line 528 of file sed_property_file.c.

References eh_lower_bound, eh_require, eh_return_val_if_fail, eh_upper_bound, Eh_ind_2::i, sed_cube_col_x(), sed_cube_col_y(), sed_cube_column_id(), sed_cube_size(), and sed_cube_sub().

Referenced by sed_cube_property_subgrid().

gssize * sed_cube_y_cols_between ( Sed_cube  p,
double  dy,
double  bottom,
double  top 
)

Get the y-indices to columns between two y-locations.

Parameters:
p A Sed_cube
dy y-spacing to use
bottom y-position of startig point
top y-position of ending point
Returns:
Array of y-indices (terminated with -1)

Definition at line 566 of file sed_property_file.c.

References eh_lower_bound, eh_require, eh_return_val_if_fail, eh_upper_bound, Eh_ind_2::j, sed_cube_col_x(), sed_cube_col_y(), sed_cube_column_id(), sed_cube_size(), and sed_cube_sub().

Referenced by sed_cube_property_subgrid().

Sed_property_file_attr sed_property_file_attr_copy ( Sed_property_file_attr  dest,
Sed_property_file_attr  src 
)

Definition at line 126 of file sed_property_file.c.

References sed_property_file_attr_new().

Referenced by sed_property_file_attr_dup().

Sed_property_file_attr sed_property_file_attr_destroy ( Sed_property_file_attr  a  ) 

Definition at line 141 of file sed_property_file.c.

References eh_free.

Referenced by run_data_dump(), and sed_property_file_destroy().

Sed_property_file_attr sed_property_file_attr_dup ( Sed_property_file_attr  src  ) 

Definition at line 136 of file sed_property_file.c.

References sed_property_file_attr_copy().

Referenced by sed_property_file_new().

Sed_property_file_attr sed_property_file_attr_new (  ) 

Definition at line 100 of file sed_property_file.c.

References NEW_OBJECT, and SED_TYPE_UINT8.

Referenced by run_data_dump(), sed_property_file_attr_copy(), and sed_property_file_new().

Sed_property_file sed_property_file_destroy ( Sed_property_file  f  ) 

Definition at line 81 of file sed_property_file.c.

References eh_free, sed_property_file_attr_destroy(), and sed_property_file_header_destroy().

Referenced by main(), run_data_dump(), and write_output_file().

Sed_property_file_header sed_property_file_header_destroy ( Sed_property_file_header  h  ) 

Definition at line 150 of file sed_property_file.c.

References eh_free, and sed_property_destroy().

Referenced by sed_property_file_destroy().

gssize sed_property_file_header_fprint ( FILE *  fp,
Sed_property_file_header  hdr 
)

Definition at line 216 of file sed_property_file.c.

References eh_free, eh_new, eh_require, PROGRAM_NAME, sed_property_name(), and SED_VERSION_S.

Referenced by sed_property_file_write().

Sed_property_file_header sed_property_file_header_new ( const Sed_cube  p,
Eh_ndgrid  g,
Sed_property  property 
)

Definition at line 272 of file sed_property_file.c.

References eh_ndgrid_n(), eh_ndgrid_x(), eh_require, NEW_OBJECT, sed_cube_sea_level(), sed_cube_x_res(), sed_cube_y_res(), and sed_cube_z_res().

Referenced by sed_property_file_write().

Sed_property_file sed_property_file_new ( const char *  file,
Sed_property  p,
Sed_property_file_attr  a 
)

Definition at line 50 of file sed_property_file.c.

References eh_require, NEW_OBJECT, sed_property_file_attr_dup(), and sed_property_file_attr_new().

Referenced by main(), run_data_dump(), and write_output_file().

gssize sed_property_file_write ( Sed_property_file  sed_fp,
Sed_cube  p 
)

Definition at line 175 of file sed_property_file.c.

References eh_ndgrid_destroy(), eh_ndgrid_write(), eh_require, sed_cube_property_subgrid(), sed_property_file_header_fprint(), and sed_property_file_header_new().

Referenced by main(), run_data_dump(), and write_output_file().


Generated on Fri Jan 4 18:04:18 2008 for sedflux by  doxygen 1.5.2