Laboratorio Metodi di Potenziale Prof Carla Braitenberg Laboratorio
Laboratorio Metodi di Potenziale Prof. Carla Braitenberg Laboratorio Dott. Tommaso Pivetta AA. 2019 -2020 Università di Trieste
Install GMT 5. 0 • You must install GMT on your PC for the laboratory. At the course windows system is used. If your system is different from Windows, please use the PCs of the University or install a Windows partition on your pc. • GMT is a versatile tool for mapping and modeling the potential field data. We will use it to display the gravity and magnetic fields. • Download link: http: //gmt. soest. hawaii. edu/projects/gmt/wiki/Download • The mapping tool is a collection of single routines which are called from the command line. They read input data and create an output plot file (default is postscript). To display the plot file you must launch a secondary program that reads the postscript file. • gmt-5. 4. 5 -darwin-x 86_64. dmg (installer for Mac) • gmt-5. 4. 5 -win 64 (installer for Windows) • gmt-5. 4. 5 -win 32 (installer for Windows)
GMT other useful links • Link al software: http: //gmt. soest. hawaii. edu/projects/gmt/wiki/Installing • Link alla documentazione: • http: //gmt. soest. hawaii. edu/doc/5. 4. 3/index. html • E’ consigliato installare un programma per la lettura dei file in formato Postscript: gv (ftp: //ftp. gnu. org/gnu/gv/) o ghostview • Anche un buon editor di testo, come Notepad++ • https: //qpdownload. com/notepad-plus/
The files offered for download
Double click on the win 32 or win 64. exe file
By default the GMT 5. 0 is installed under the directory programs
You need a postscript viewer. GMT recommends Post. Script previewer (e. g. , gv (or ghostview or plain ghostscript)) Once the ghostview has installed (for instance in C: Programmi), please copy the folder gs to the folder c: programs
The documentation and examples of GMT are stored in the folder doc • C: programsgmt 5sharedoc • The subfolder html contains a tutorial and the full instructions on how to use the routines • Double-click on GMT_Tutorial. html for a tutorial or GMT_Docs for a full documentation.
To run the GMT routines open a command line window. You can type cmd.
By typing the command gmt on the command line the below text is diplayed. It means that GMT was installed correctly on your pc.
It is necessary that your PC has the correct international settings of how to display numbers
You must set the decimal separator to dot, not comma. Here the default settings, which are not ok for GMT.
After you have corrected the settings you should have the following:
For launching the GMT commands, save the commands to a script. Save all scripts in the folder C: MEPO. Please create a working folder C: MEPOinput_data. To be executable the script must end with the extension myscript. bat. Double click on the bat-file will launch the script. The following script will create the map you see in the next slide. Install the program Notepad++ for editing the scripts. • gmt pscoast -R-90/-70/0/20 -JM 6 i -P -Ba -Gchocolate > GMT_tut_3. ps • c: Programsgsgs 9. 25bingswin 64 GMT_tut_3. ps
From the GMT tutorial • gmt pscoast -R-90/-70/0/20 -JM 6 i -P -Ba -Gchocolate > GMT_tut_3. ps • c: Programsgsgs 9. 25bingswin 64 GMT_tut_3. ps
- Slides: 15