Metview's documentation is now on readthedocs!

Download source and data


4 Comments

  1. What on Earth is "contour_internal_reduction_factor"? Found no help about it.

  2. Sylvie Lamy-Thepaut

    Hi, 

    Yes you are right, contour_internal_reduction_factor ( default 4)  is not documented , mainly because it should be used with some precautions since it has an impact on the performance. 

    It is used in the shading/contouring algorithm to compute the size of the Matrix that will be used as input of the algorithm.

    We made  experiments and decided that a good compromise between quality  and speed is to use a factor of 4 between the size of matrix, and the size of the output ( in our internal units), but sometimes for some parameters this number is not good enough, and we need to apply the algorithm on a larger matrix. It is why we introduced this parameter to give in these extreme cases more control to the user. 

    If you decrease this factor, the quality will increase, but the speed also. 

    It is used in this plot, to get a more accurate result. 

    I hope this helps. 

  3. Thank you, Sylvie, of course it helps!.

    I had a contour plot with very tightly packed  isolines over a certain small region. In that region, some blank pixels appeared between the isolines. I tried to reduce the contour_internal_reduction_factor to one, and the problem disappeared, with non appreciable time penalty.

    1. Sylvie Lamy-Thepaut

      Great, 

      Maybe we should document it then..