Content from
https://software.ecmwf.int/wiki/display/EMOS/Frequently+Asked+Questions
Summary
Content by Label
-
How to loop over all the fields in my fieldset? - Magics FAQ (User Documentation) — Create a loop over the number of fields, and setting the parameter grib_field_position to the position of the field in your fieldset ( starting from 1).To know the number of fields in your grib files, you can use the function grib_count of the grib_api package.
-
My field contains data from 0 to 100, but the contouring shows values below and above? - Magics FAQ (User Documentation) — This is an effect of the interpolation, and easy way to get rid of it is to use the 2 following parameters contour_interpolation_floor and contour_interpolation_ceiling
-
How to create multipage output in Python? - Magics FAQ (User Documentation)
-
How can I display some information of the GRIB header in my title? - Magics FAQ (User Documentation) — When defining your text, you can use a special tag grib_info, Magics will then get the information from the grib header and replace the tag by the value read. You can use all the grib api keys, and Magics have a special one called valid-date that will compute the valid date for the data, taking into account the base date and the step
-
How can I apply a format to a number in Magics? - Magics FAQ (User Documentation) — Several parameters accept a format : for historical reason Magics is using a Fortran convention, with a bracket around it
-
Can I get a plot in in a portrait mode? - Magics FAQ (User Documentation) — To do that, you will have to change the dimension of the super page ( the output) and of the page.
-
How to remove the ECMWF Logo? - Magics FAQ (User Documentation) — If you do not want to see the ECMWF logo on your plot, set the parameter page_id_line to off in the page object.
-
How can I set the size of my PNG output? - Magics FAQ (User Documentation) — Magics is internally working in cm. All the superpage, page and subpage dimension should be given in cm. When working with png, you can set the parameter output_width to the number of pixel you want
-
How can I set the DPI of my PNG output? - Magics FAQ (User Documentation) — When printing, users are used to setting a DPI (dots per inch) for the quality of their output. Graphics on the web & screen, especially raster graphics, do not have the concept. There is only so much information which can be stored in a pixel