Calculation

class ncTools.calculation(gdat_in, gdat_out, list_gvar_in, list_gvar_out=None, chk_in=None, chk_out=None, parallelized=False, overwrite=False)[source]

Attributes

data_in (geodata) Input geophysical data
data_out (geodata) Output geophysiscal data
nb_tempfiles : Number of temporary files
  • parallelized <’boolean’>: Define if the calculation
 
is parallelized or not  
  • nb_proc <’int’>: total number of processors
 
  • proc_indx <’in’>: index of current processor
 
  • overwrite <’boolean’>: overwrite or not temporary and output files
 
  • chk_xtrac <’chunk’>: chunk defining the structure to extract from
 
the input file to generate the output file  
  • fcounter <’string’>: path of temporary counter file
 
  • chunking <’dictionnary[‘in’, <’chunk’>, ‘temp_in’, <’chunk’>,
 
‘temp_out’, <’chunk’>, ‘out’,<’chunk’>]’>  
Constructor:  
  • data_in <’geodata’>: characteristics of input data
 
  • data_out <’geodata’>: characteristics of output data
 
  • chk <’chunk’>: chunk defining the structure to extract from the
 
input file to generate the output file  
  • parallelized <’boolean’>: Define if the calculation is
 
parallelized or not  
  • overwrite <’boolean’>: overwrite or not temporary files
 

Methods

concatenate(dim='lon')[source]

Concatenate the temporary files along the prescribed dimension

delete(filename)[source]
disp(txt)[source]
generate_file_out(mode='same')[source]

Generate the output files

generate_temp_in()[source]

Generate the temporary geodata instances

generate_temp_out()[source]
get_temp_data(indx)[source]
optimize_1D(nb_var, dim='lon', free_mem=None)[source]

Optimize the computation by defining slices along the dimension specified

read_counter()[source]
start()[source]
stop()[source]
wait()[source]
write_counter(var_counter, slice_counter)[source]

Previous topic

Geodata

Next topic

Spatial computation and analysis: xyTools

This Page