Objectives
- Set-Up a cartesian projection
- Learn how to pass arrays as input of curves
- Learn how to use CSV files as input of curves
- Add a text.
- Create a layout
You will need to download
- The CSV file containing the MSL time series
- And at the end only
, the solutions for
Profile: create the Cartesian Projection
For our vertical profile, we will need :
- a horizontal regular axis for a temperature range going from -60oC to 20oC.
- a vertical logarithmic axis going from 1020 hPa to 10 hPa
Have a look at the Subpage Documentation and at the Axis Plotting Documentation, and try to get the 0oC grid line highlighted.
Parameters to check
Useful projection parameters |
---|
subpage_map_projection |
subpage_x_axis_type |
subpage_y_axis_type |
subpage_x_min |
subpage_y_min |
subpage_x_max |
subpage_y_max |
Useful axis parameters |
---|
axis_orientation |
axis_type |
axis_grid |
axis_grid_reference |
axis_title |
Profile: Using Arrays as Input of a Graph
Here is the list of levels, and the list of Temperature in Kelvin at each levels.
levels = [1.,2.,3,5,7,10,20,30,50,70,100,150,200,250,300,400,500,600,700,800,850,900,925,950,1000]
kelvin = ([263.118652344,254.822738647,242.517868042,223.301025391,219.254943848,216.710174561,216.507095337, 215.398986816,211.643295288,207.18812561,207.172134399,217.097396851,223.809326172,235.13168335,243.377059937,260.635147095,272.02935791,272.145584106,273.448501587,279.562927246,281.745040894,285.503082275,287.543685913,289.284072876,292.170974731]
We can pass these arrays to Magics using the minput object . Check the Input Data Documentation for more information about the parameters.
The mgraph object can then be used to preform the visualisation. All the parameters can be found in the Graph Plotting Page.
Parameters to check
Useful projection parameters |
---|
subpage_map_projection |
subpage_x_axis_type |
subpage_y_axis_type |
subpage_x_min |
subpage_y_min |
subpage_x_max |
subpage_y_max |
Useful axis parameters |
---|
axis_orientation |
axis_type |
axis_grid |
axis_grid_reference |
axis_title |