Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
- The vertical coordinate system is a logarithmic axis from 1000 hPa to 200 hPa.
- The horizontal coordinate system is a geoline axis from [50oN, 90oEW] to [30oN, 60oEW]
Have a look at the subpage documentation to learn how to setup a cartesian projection .
...
Section | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Section | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Loading the
...
netCDF data
In this exercise, we want to visualise a matrix stored in a Netcdf netCDF file. Netcdf netCDF is a very generic format, and can contain a lot of data. The user needs We will need to set up some information in order to explain to Magics which variable to plot, and how to interpret it.
To do that, the mnetcdf defines The mnetcdf data action comes with a parameter list that can be found in the Netcdf netCDF Input Page.
NowBut first, tetlet's see what is inside our Netcdf netCDF Data
Code Block | ||
---|---|---|
| ||
netcdfnetCDF section { dimensions: levels = 85 ; longitude = 144 ; latitude = 144 ; p15220121030000000000001_1 = 2 ; p15220121030000000000001_2 = 144 ; orography_x_values = 144 ; orography_y1_values = 144 ; orography_y2_values = 144 ; variables: double levels(levels) ; double longitude(longitude) ; double latitude(latitude) ; double p13820121030000000000001(levels, longitude) ; |
We want to display the variable p1382012103000000000000p13820121030000000000001, and inform Magics that the dimensions of th ematrix the matrix are described in the 2 variables levels and longitude.
...
Section | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
and the list of colours is : ["rgb(0,0,0.3)", "rgb(0,0,0.5)", "rgb(0,0,0.7)", "rgb(0,0,0.9)", "rgb(0,0.15,1)", "rgb(0,0.3,1)", "rgb(0,0.45,1)", "rgb(0,0.6,1)", "rgb(0,0.75,1)", "rgb(0,0.85,1)", "rgb(0.2,0.95,1)", "rgb(0.45,1,1)", "rgb(0.75,1,1)", "none", "rgb(1,1,0)","rgb(1,0.9,0)", "rgb(1,0.8,0)", "rgb(1,0.7,0)", "rgb(1,0.6,0)", "rgb(1,0.5,0)", "rgb(1,0.4,0)", "rgb(1,0.3,0)", "rgb(1,0.15,0)", "rgb(0.9,0,0)", "rgb(0.7,0,0)", "rgb(0.5,0,0)", "rgb(0.3,0,0)"],
Do not forget to trun turn the legend on ...
You could quickly check Contour Documentation
Section | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
The Information about the positional mode can be found in the Legend Documentation
Section | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
add a Title
Last thing to do here .. We add a title to the top..
Here we will use a combination of User text and automatic text ( read from the Netcdf netCDF global attribute title)
To get the automatic title, you have to use the following tag <magics_title/>
Check the Text Plotting Page for more information
Section | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...