Versions Compared

Key

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

...

Now position the cursor in the editor a few lines below the line of #Metview Macro. By doing so we specified the position where the icon-drop generated code will be placed. Then drop your 'NASA' WMS Client icon into the Macro editor. You should see something like this (after removing the comment lines starting with  # Importing):

Code Block
languagepy
titleMacro WMS example
linenumberstrue
#Metview Macro

...


nasa = wmsclient(

...


     server     :"http://neowms.sci.gsfc.nasa.gov...",

...


     version    :    "Default",

...


     request    :    "http://neowms.sci.gsfc...",

...


     extra_getcap_par

...

     :    "",

...


     extra_getmap_par

...

     :    "",

...


     http_user

...

  :    "",

...


     http_password

...

   :    "",

...


     layer_title

...

     :    "Sea Surface Temperature …",

...


     layer_description

...

    :    "Sea surface …",

...


     service_title

...

   :    "NASA Earth …",

...


     layer_legend

...

    :    "http://neo.sci...",

...


     time_dimensions

...

 :    "TIME"

...


     )

You only have to add the following command to the macro to plot the result:

...