@@ -13,26 +13,26 @@ coast(R="-10/0/35/45", J="M15c", B="afg", W="0.5p", show=true)
1313but what if you need to make a map with some data, a grid for example. Simple, give it as a first argument as in:
1414
1515``` julia
16- grdimage (" @earth_relief_20m.grd " , J= " R15c" , B= " a" , show= true )
16+ grdimage (" @earth_relief_20m" , J= " R15c" , B= " a" , show= true )
1717```
1818
1919This will compute a cpt under the hood and use it. But what if you want to use another cpt? Also simple,
2020just make one and use it in the above command. * i.e.* :
2121
2222``` julia
2323CPT = makecpt (T= " -10000/8000/1000" );
24- grdimage (" @earth_relief_20m.grd " , J= " R15c" , B= " a" , C= CPT, show= true )
24+ grdimage (" @earth_relief_20m" , J= " R15c" , B= " a" , C= CPT, show= true )
2525```
2626
2727The last command introduced a novelty in using the ** C** option and that's where things start to be interesting.
2828Instead of using a previously existing cpt file, * e.g.* a file called ` color.cpt ` and used it as C="color.cpt",
2929we created a ` GMTcpt ` object that resides only in Julia memory space and passed it directly via the ** C** option.
30- The same could have been done if we had the ` earth_relief_20m.grd ` grid in memory, which, for example sake, can
30+ The same could have been done if we had the ` earth_relief_20m ` grid in memory, which, for example sake, can
3131be achieved by previously reading the grid file.
3232
3333``` julia
3434CPT = makecpt (T= " -10000/8000/1000" );
35- G = gmtread (" @earth_relief_20m.grd " );
35+ G = gmtread (" @earth_relief_20m" );
3636grdimage (G, J= " R15c" , B= " a" , C= CPT, show= true )
3737```
3838
0 commit comments