Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Geographical area we want to work with today is defined by its lower-left corner [20oN, 110oE] and its upper-right corner [70oN, 30oE].

Have a look at the  subpage documentation to learn how to setup a projection .

Section
Column
width50%
Info
titleParameters to check

subpage_lower_left_longitude

subpage_lower_left_latitude
subpage_upper_right_longitude
subpage_upper_right_latitude
Code Block
themeConfluence
languagepython
titlePython - Setting a projection
collapsetrue
from Magics.macro import *

#settings of the png output 
output = output(
			outputoutput = output(    
                output_formats = ['png'],
  			                output_name = "coastmap_step1",
    		            output_name_first_page_number = "off"
        )
##settings    
#settings of thegeographical coastlinesarea attributes 
coastarea = mcoast(
  map_coastline_land_shade = "on",
  map_coastline_land_shade_colour = "cream",
  map_grid_line_style = "dash",
  map_grid_colour = "brown",
  map_label_colour = "brown",
  map_coastline_colour = "brown"
)

#The plot command will now use the coast object
plot(output, coastmmap(subpage_map_projection="cylindrical",
        subpage_lower_left_longitude=-110.,
        subpage_lower_left_latitude=20.,
        subpage_upper_right_longitude=-30.,
        subpage_upper_right_latitude=70.,
    )    
#Using a default coastlines to see the result
plot(output, area, mcoast())
Column
width200px

 

 

 

 

 

Section

 

 

Column
width200px

 

 

...