Changes between Version 5 and Version 6 of AlsprocDevelopment


Ignore:
Timestamp:
Aug 16, 2013, 4:05:13 PM (11 years ago)
Author:
besm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AlsprocDevelopment

    v5 v6  
    1010
    1111
    12 '''Output'''
    1312Output modules can be added by defining 3 functions and a structure instance: functions for each of opening, writing, and closing; and a structure to hold pointers to those functions. Access to these should be exposed in a header file, while actual code should be contained in their own source file. ''out_txt'' is a good example of an output module, which outputs point data to a .txt file simply translating points to human readable text using fprintf, it can be copied and used as a template for any future modules. Once you have a module, edit output.c and add a clause for your module in open_output_stream which translates config->output_format to your structure holding pointers to your functions, and stores the result in out->fmt.
    1413
     
    1716  out->fmt = &NETCDF_FORMAT;
    1817}}}
     18
     19
     20SCN reading is arguably the most complex part of the program. It's best not to debug it directly in alsproc if at all possible, as this bars the use of gdb. Instead, consider using the scn_info program, which is compiled normally but still uses the same code for reading SCN records.
    1921
    2022