	program magics

	call popen

	call psetc("output_name_first_page_number", "off")
	call pset1c("output_formats", (/"png"/), 1)
	call psetc("output_name", "epswind")
	call pseti("output_width", 600)
	call psetr("super_page_y_length", 10.00)
	call psetr("super_page_x_length", 20.00)

	call psetr("subpage_y_min", -43000.00)
	call psetc("subpage_map_projection", "cartesian")
	call psetr("subpage_y_position", 4.00)
	call psetc("subpage_x_automatic", "on")
	call psetr("subpage_y_max", 43000.00)
	call psetc("subpage_x_axis_type", "date")
	call psetc("subpage_y_axis_type", "regular")
	call psetc("subpage_y_automatic", "off")
	call psetr("subpage_y_length", 2.00)

	call psetc("axis_orientation", "horizontal")
	call psetr("axis_days_label_height", 0.35)
	call psetc("axis_line_colour", "grey")
	call psetc("axis_days_label_colour", "Rgb(0.5, 0.5, 0.5)")
	call psetc("axis_months_label_colour", "Rgb(0.5, 0.5, 0.5)")
	call psetc("axis_minor_tick_colour", "grey")
	call psetc("axis_type", "date")
	call psetc("axis_tick_colour", "grey")
	call psetc("axis_grid", "on")
	call psetr("axis_months_label_height", 0.30)
	call psetr("axis_years_label_height", 0.30)
	call psetc("axis_grid_line_style", "solid")
	call psetc("axis_date_type", "days")
	call psetc("axis_grid_colour", "Rgb(0.5, 0.5, 0.5)")
	call psetc("axis_minor_tick", "on")
	call psetc("axis_years_label_colour", "Rgb(0.5, 0.5, 0.5)")
	call psetc("axis_days_label", "both")
	call paxis

	call preset('axis_orientation')
	call preset('axis_days_label_height')
	call preset('axis_line_colour')
	call preset('axis_days_label_colour')
	call preset('axis_months_label_colour')
	call preset('axis_minor_tick_colour')
	call preset('axis_type')
	call preset('axis_tick_colour')
	call preset('axis_grid')
	call preset('axis_months_label_height')
	call preset('axis_years_label_height')
	call preset('axis_grid_line_style')
	call preset('axis_date_type')
	call preset('axis_grid_colour')
	call preset('axis_minor_tick')
	call preset('axis_years_label_colour')
	call preset('axis_days_label')

	call psetc("axis_orientation", "vertical")
	call psetc("axis_tick", "off")
	call psetc("axis_line_colour", "grey")
	call psetc("axis_line", "on")
	call psetc("axis_grid_line_style", "dash")
	call psetc("axis_grid", "on")
	call psetc("axis_grid_colour", "Rgb(0.5, 0.5, 0.5)")
	call psetc("axis_tick_label", "off")
	call paxis

	call preset('axis_orientation')
	call preset('axis_tick')
	call preset('axis_line_colour')
	call preset('axis_line')
	call preset('axis_grid_line_style')
	call preset('axis_grid')
	call preset('axis_grid_colour')
	call preset('axis_tick_label')

	call psetc("wrepjson_parameter", "249.140")
	call psetc("wrepjson_family", "eps")
	call psetc("wrepjson_parameter_information", "Wind direction")
	call psetc("wrepjson_input_filename", "wind_direction.json")
