Procedures

ProcedureLocationProcedure TypeDescription
alloc_empty_layers convbuild Subroutine

Allocate layers and arrays profile readers leave unfilled, at size zero.

Read more…
assign_kipp_col mesaload Subroutine

Assign header column to its role by accepted names ("Required columns", docs/kippfiles.md).

Read more…
auto_time_unit units Function

Return largest time unit in which span is at least 1.

Read more…
axis_offset units Subroutine

Find matplotlib ScalarFormatter offset of linear time axis.

Read more…
band_y_visible draw Function

Test whether band bd overlaps y window over models j0..j1.

Read more…
bandset_append bands Subroutine

Append one band, growing by doubling.

bandset_clear bands Subroutine

Drop every band of a set.

bisect_le coords Function

Return largest k w/ arr(k) <= v, or 0 if v < arr(1).

Read more…
build_axes coords Subroutine

Build per-model x coordinate, strip edges and outer boundary.

Read more…
build_chains bands Subroutine

Link outline segments into polyline chains by walking shared endpoints.

Read more…
build_conv_cache layers Subroutine

Trace all five convection types into conv_bands and conv_chains.

Read more…
build_energy convbuild Subroutine

Quantize per-cell energy rate into energy-layer step function.

Read more…
build_energy_cache layers Subroutine

Trace every gain and loss level of energy layer into ecache(layer).

build_field_cache layers Subroutine

Trace every contour bin of colour field f into fcache.

Read more…
build_field_layer convbuild Subroutine

Run-length compress per-cell field into two (level, coordinate index) step functions.

Read more…
build_kipp_record mesaload Subroutine

Build record of one .kipp model.

Read more…
build_mesa_zones mesaload Subroutine

Build convection zones of record from MESA mixing codes, mapped by type_char.

build_mon_fields monload Subroutine

Fill colour-field values of one model, in MON_FIELD_NAMES order.

Read more…
build_mon_record monload Subroutine

Build record of one MONASH model.

Read more…
build_zones convbuild Subroutine

Run-length compress cell zone types into yzip and iconv.

Read more…
c_fmod units Interface
c_getpid cursor Interface
c_giza_box draw Interface
c_giza_round axes Interface
c_isatty cursor Interface
cache_invalidate layers Subroutine

Drop every cached band, on file load or axis rebuild.

cell_label axes Subroutine

Write horizontal label beside colorbar strip.

center_at cursor Subroutine

Pan so a world position becomes view centre.

chain_push bands Subroutine

Append one point to growable chain.

chainset_append bands Subroutine

Store one chain, growing by doubling like bandset_append.

Read more…
chainset_clear bands Subroutine

Drop every chain of a set.

clamp1 draw Subroutine

Shift interval [a, b] into [lo, hi], keeping its span.

Read more…
clamp_view draw Subroutine

Keep view limits inside data.

Read more…
clampx draw Function

Clamp world x coord to emit clamp box.

clampy draw Function

Clamp world y coord to emit clamp box.

clear_views cursor Subroutine

Empty the view history.

cmap_rgb cmaps Subroutine

Return colour of colormap name at t.

Read more…
col_index mesaload Function

Return 1-based position of whitespace-separated token equal to name, or -1.

colorbar_title axes Subroutine

Write text up outer side of colorbar.

Read more…
colorbar_viewport axes Subroutine

Set viewport of colorbar strip in right margin.

Read more…
colormap axes Subroutine

Return colour of colormap st%cmap at t.

Read more…
coord_at coords Function

Return cgs mass or radius at coordinate index ic of model i.

Read more…
cursor_help cursor Subroutine

Print cursor key reference.

draw_band draw Subroutine

Fill one cached band as single polygon.

Read more…
draw_bandset draw Subroutine

Fill each band of bandset as its own polygon.

draw_chainset draw Subroutine

Stroke cached region outline of one type.

Read more…
draw_colorbar axes Subroutine

Draw energy-layer colorbar in right margin.

Read more…
draw_convection draw Subroutine

Draw convection zones as hatched regions, after Alex Heger's convplot.

Read more…
draw_energy draw Subroutine

Fill energy layer as nested solid bands.

Read more…
draw_field draw Subroutine

Fill colour field as nested solid bands shaded by colormap.

Read more…
draw_field_colorbar axes Subroutine

Draw colour-field colorbar in right margin.

Read more…
draw_grid draw Subroutine

Draw cell and time-boundary grid over visible range.

Read more…
draw_models draw Subroutine

Draw model-number strip above plot.

Read more…
draw_scene draw Subroutine

Draw one frame of Kippenhahn diagram on current device.

Read more…
draw_surface draw Subroutine

Draw surface line over visible range.

Read more…
ensure_scratch draw Subroutine

Grow polygon scratch epx, epy to hold at least need points.

Read more…
field_layer_len layers Function

Return step-function entry count of colour field f in model i.

Read more…
field_level convbuild Function

Return contour bin (1 to FIELD_NBINS) of value in range of field f.

Read more…
field_of_cfield layers Function

Return colour field named by st%cfield, 1..nfields, or 0.

Read more…
fill_bandset_linked draw Subroutine

Fill all visible bands of one type as single keyholed polygon.

Read more…
fill_kipp_fields mesaload Subroutine

Re-read .kipp file and bin each registered field into recs(k)%fld.

Read more…
finalize_field_log convbuild Subroutine

Choose default binning of field f once its range is known.

Read more…
find_kipp_header mesaload Subroutine

Locate sidecar header of .kipp file ("Header file", docs/kippfiles.md).

Read more…
first_field layers Function

Return index of first registered name in names, or 0.

fit_x_step axes Subroutine

Choose tick step of linear x axis.

Read more…
floordiv units Function

Return Python float floor division a // b for a, b > 0.

Read more…
flush_kipp mesaload Subroutine

Append record of one model's accumulated cells to recs.

Read more…
flush_kipp_fields mesaload Subroutine

Bin one model's accumulated field values into its record's fld layers.

Read more…
fmt_number units Function

Format digits x 10^p as giza_format_number writes it in automatic form.

Read more…
fscale layers Function

Return colour-field scale index: 1 default, 2 flipped by st%cflip.

get_field_buf layers Subroutine

Copy step function of colour field f in model i into buffers.

Read more…
get_layer layers Subroutine

Copy step function of energy layer in model i into new arrays.

get_layer_buf layers Subroutine

Copy step function of energy layer in model i into buffers.

Read more…
grid_edge draw Subroutine

Draw time boundary at world x, spanning extent of models i and k.

grid_strip draw Subroutine

Draw cell faces of one strip as zig-zag polyline.

Read more…
grow_accum mesaload Subroutine

Double cell accumulation buffers of loadkipp, keeping contents.

grow_fb mesaload Subroutine

Double cell capacity of field accumulation buffer, keeping contents.

grow_i32 bands Subroutine

Make room for need entries, keeping contents.

Read more…
grow_models monload Subroutine

Extend recs by GROW_FAC, keeping first nkeep records.

grow_r64 bands Subroutine

Real counterpart of grow_i32.

has_suffix mesaload Function

Test whether s ends with suf.

help convview Subroutine

Print the command summary.

interp cmaps Subroutine

Interpolate sampled-colormap anchors linearly at x.

inv_x coords Function

Map world x coord back to display units.

Read more…
inv_y coords Function

Map world y coord back to display units.

Read more…
is_reversed axes Function

Test whether colormap name ends in reversing suffix '_r'.

is_structural_kipp mesaload Function

Test whether .kipp column is structural, so not offered as colour field.

Read more…
itoa mesaload Function

Return left-justified decimal string of non-negative integer.

kipp_action cursor Subroutine

Apply one cursor key ch at world position (x, y).

Read more…
kipp_autoscale coords Subroutine

Reset auto view limits from data.

Read more…
kipp_axis_unit mesaload Subroutine

Find cgs factor of a .kipp age, time step, mass or radius column.

Read more…
kipp_choose_device draw Subroutine

Choose output device from environment.

Read more…
kipp_close draw Subroutine

Close open device, if any.

kipp_colnames mesaload Subroutine

Read every column name and optional unit of a .kipp sidecar header, in column order.

Read more…
kipp_interact cursor Subroutine

Run cursor mode in /xw window.

Read more…
kipp_list_cmaps kipp Subroutine

Print numbered colormaps, marking current one.

kipp_list_fields kipp Subroutine

Print numbered colour selectors of color <name|number>.

Read more…
kipp_load kipp Subroutine

Load every model of an input and build its axes.

Read more…
kipp_rebuild kipp Subroutine

Rebuild model axes after change of axis quantity.

Read more…
kipp_render draw Subroutine

Render scene to current device.

Read more…
kipp_save draw Subroutine

Render once to named PNG, or PDF for .pdf name.

Read more…
kipp_set_cfield kipp Subroutine

Select colour field by name or by number in kipp_list_fields.

Read more…
kipp_set_cmap kipp Subroutine

Select colormap by name or by number in kipp_list_cmaps.

Read more…
kipp_set_unit kipp Subroutine

Set display unit of axis matching unit's dimension.

Read more…
kipp_wait_input cursor Function

Block at REPL prompt until stdin or plot window has input.

Read more…
kipp_window_center cursor Subroutine

Give centre of current view, in world coords.

Read more…
labels axes Subroutine

Build axis titles from axis quantities and units.

Read more…
layer_len layers Function

Return step-function entry count of energy layer in model i.

Read more…
layer_of_cfield layers Function

Return energy layer named by st%cfield, or -1 if not an energy layer.

Read more…
level_intervals layers Subroutine

Find intervals of model i where step function reaches level L.

Read more…
level_mins layers Subroutine

Return minimum log10 gain and loss levels of energy layer.

Read more…
level_of convbuild Function

Return signed integer contour level of energy rate.

Read more…
list_index kipp Function

Return 1-based list position typed in s.

Read more…
load_convection mesaload Subroutine

Load any supported input into data, reader picked from path.

Read more…
loadconv convload Subroutine

Load models of .cnv file into data.

Read more…
loadconv_10600 convload Function

Decode one record of version 10600 to 10699.

Read more…
loadconv_10700 convload Function

Decode one record of version 10700 or later.

Read more…
loadconv_record convload Function

Decode next record w/ its version's decoder.

Read more…
loadkipp mesaload Subroutine

Stream raw .kipp cell file into data.

Read more…
loadmesa mesaload Subroutine

Load profiles of MESA run directory into data.

Read more…
loadmon monload Subroutine

Load models of MONASH seq file into data.

Read more…
lower units Function

Return s w/ ASCII letters lower-cased.

mbound coords Function

Return cgs mass or radius of convection boundary k of model i.

Read more…
mon_type_char monload Function

Return ZONE_CHAR type of kcvtn code.

Read more…
pan_frac cursor Subroutine

Shift view by a fraction of current world-space span.

parse_kipp_header mesaload Subroutine

Read ncols and required-role columns from .kipp sidecar header.

Read more…
pop convview Subroutine

Remove first whitespace-separated token from buf.

print_cell cursor Subroutine

Print model and zone cell at world position (wx, wy).

Read more…
quantity_label units Subroutine

Split column into the two parts of its colorbar title.

Read more…
rd2 convview Function

Read one number from each of two tokens.

Read more…
read_profile mesaload Subroutine

Parse profile<pnum>.data into one record.

Read more…
register_kipp_fields mesaload Subroutine

Register every named non-structural .kipp column as a colour field.

Read more…
register_mesa_fields mesaload Subroutine

Register curated colour fields present in a run.

Read more…
reset_field_registry convbuild Subroutine

Allocate convdata.f90 colour-field registry for nf fields.

Read more…
scan_levels layers Subroutine

Find highest gain and loss levels of energy layer over all models.

seg_append bands Subroutine

Append one outline segment, growing by doubling.

set_hatch_for_type draw Subroutine

Set fill hatch of convection type t.

Read more…
set_time_unit coords Subroutine

Switch time unit to UNAME(k), keeping view.

Read more…
set_view cursor Subroutine

Restore view from view history.

set_visible_range draw Subroutine

Set visible range ivis0..ivis1 from view.

Read more…
set_xrange_w cursor Subroutine

Set x view limits from two world coords, in either order.

Read more…
set_y_units kipp Subroutine

Set mass and radius display units, keeping view.

Read more…
set_yrange_w cursor Subroutine

Set y view limits from two world coords, in either order.

Read more…
show convdump Subroutine

Print ncyc, nconv, ncoord, tc, dc, summ0 and sum of xmcoord for one model.

sort_models convload Subroutine

Keep last record of each model number in data, in ascending order.

Read more…
symdiff_append bands Subroutine

Append vertical outline segments at strip edge e.

Read more…
third_word mesaload Function

Return third blank-separated word of header line, blank if none.

Read more…
tick_labels axes Subroutine

Write tick labels of giza_box option 'N', minus any that would clip.

Read more…
tokens convview Subroutine

Split line into up to four whitespace-separated tokens.

Read more…
tracer_alloc bands Subroutine

Allocate tracer w/ maxbands band slots over nm models, all closed.

tracer_close bands Subroutine

Store band in slot b to bs and free slot.

tracer_dealloc bands Subroutine

Free tracer's band slots.

tracer_flush bands Subroutine

Store all bands still open at final model.

tracer_reset bands Subroutine

Begin new feature: close leftover bands without emitting.

tracer_step bands Subroutine

Feed model i's intervals (ivlo/ivhi, m of them, ascending in y).

Read more…
type_char mesaload Function

Return ZONE_CHAR type of MESA mixing code ("Required columns", docs/kippfiles.md).

Read more…
type_of layers Function

Return convection-type code of zone character.

Read more…
unit_id units Function

Return UNAME index of unit name, or 0 if unknown.

Read more…
unit_tex units Function

Typeset unit w/ negative exponents.

Read more…
update_field_range convbuild Subroutine

Widen running range of field f w/ one sample.

Read more…
view_now cursor Function

Return current view as view_t.

xtrans coords Function

Map x value to world coords.

Read more…
ybound_lo draw Function

Return lower y bound of data, in display units.

Read more…
yscale coords Function

Return cgs size of one y display unit.

Read more…
ytrans coords Function

Map cgs mass or radius to world coords.

Read more…
ytrans2 coords Function

Map y value in display units to world coords.

Read more…
zoom_at cursor Subroutine

Rescale both axes by f about a world position.

Read more…