Skip to content

foresight ​

foresight, FORtran Easy Svg Interactive Gnuplot-like Html Tool.

Library entry point: re-exports the public API of all foresight modules.

Source: src/lib/foresight.F90

Dependencies

Re-exports ​

NameKindModuleDescription
figure_objecttypeforesight_figureFigure.
fitsubroutineforesight_fitFit the Fortran function model(x, params) to the points (x, y), from the initial params (updated), as gnuplot fit f(x) 'data' using 1:2[:3] via ...: err the errors of y (unit weights if absent). Silent unless report is given: '-' writes gnuplot's report to the standard error, as gnuplot's terminal, a file name writes it there (gnuplot's fit.log). names name the parameters in the report (p1, p2, ... if absent). On failure result%message says why and params keep their initial values.
fit_reportsubroutineforesight_fitWrite gnuplot's fit report of result, for the parameters names: on the standard error (destination '-', gnuplot's terminal output: with progress the progress lines (gnuplot's brief), then the stop sentence and the results) or appended to the file destination (gnuplot's fit.log: a header naming the data source and the function_text, the first and last progress lines, the results).
fit_resulttypeforesight_fitOutcome of a fit: gnuplot's FIT_* values, the parameters and their errors.
fit_settingstypeforesight_fitgnuplot's set fit options.
model_functioninterfaceforesight_fit
statsinterfaceforesight_statsStatistics of one column, stats(y), or of two, stats(x, y).
stats_columntypeforesight_statsStatistics of one column (gnuplot's STATS_mean, ... or STATS_mean_x, STATS_mean_y).
stats_reportsubroutineforesight_statsgnuplot's report of r on unit: the screen layout (formatted, gnuplot's terminal) or the name-tab-value lines gnuplot writes to a set print file.
stats_resulttypeforesight_statsgnuplot's STATS_* values: the file counts, one column (y) or two (x, y and their line).
script_objecttypeforesight_scriptScript interpreter state.
civil_timefunctionforesight_timeSeconds since the epoch of a date and time (fields may overflow their ranges, as mktime's).
strftimefunctionforesight_timet [s since the epoch] written with the time format, as gnuplot's strftime: %a %A %b %B %h names, %d %m %y %Y %j %H %I %M %S numbers (zero padded), %k %l hours (blank padded), %p am/pm, %s the seconds since the epoch, %w the weekday number, %U %W week numbers, %D (%m/%d/%y), %F (%Y-%m-%d), %T (%H:%M:%S), %R (%H:%M), %r (%I:%M:%S %p), %.NS the seconds with N decimals, %tH %tM %tS the elapsed hours, minutes, seconds (the largest unit present unbounded), %%; others write nothing.
strptimesubroutineforesight_timetext read with the time format, as gnuplot's strptime: %d %m %H %M (up to 2 digits), %y (2 digits, 69 to 99 the 1900s, else the 2000s), %Y (up to 4), %j (up to 3), %S (seconds with a fraction), %s (seconds since the epoch), %b %B (month names or their 3 first letters), %a %A (weekday names, skipped), %p (pm adds 12 hours), %tH %tM %tS (elapsed hours, minutes, seconds, signed, the last with a fraction), %z (a zone offset, Z or [+-]hh[:]mm, taken off), %Z (a zone name, skipped); a blank matches any run of blanks, any other character itself. Fields not given are those of 1970-01-01 00:00:00, also those after the end of the text (gnuplot reads "1/6/93" with "%d/%m/%y %H%M"). ok false (t NaN) if text does not match. Sign of the offset. Hours. Minutes. Read status.
file_fingerprintfunctionforesight_fingerprintSize and content hash of file; [-1, 0] if it is missing or unnamed.
rename_filesubroutineforesight_sysRename (move) file old to new, replacing new if it exists.
sleep_mssubroutineforesight_sysSuspend the calling thread for at least milliseconds ms.
THEMESparameterforesight_themeTheme names.
I4Ppenf
I8Ppenf
R4Ppenf
R8Ppenf

Released under the GPL v3, BSD 2-Clause, BSD 3-Clause or MIT License.