g.copy.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <h2>DESCRIPTION</h2>
  2. A user may access data stored under the other mapsets
  3. listed in his mapset search path. However, the user may
  4. only modify data stored under his own current mapset.
  5. <em>g.copy</em> allows the user to copy existing data files
  6. <em>from</em> other mapsets <em>to</em> the user's current
  7. mapset ($MAPSET). The files to be copied must exist in the
  8. user's current mapset search path and location; output is
  9. sent to the relevant data element directory(ies) under the
  10. user's current mapset.
  11. <h2>EXAMPLES</h2>
  12. If the user wished to copy the existing raster
  13. file <em>soils</em> to a file called <em>soils.ph</em> and
  14. to copy an existing vector map <em>roads</em> to a file
  15. called <em>rds.old</em>, the user could type:
  16. <p>
  17. <div class="code"><pre>
  18. g.copy rast=soils,soils.ph vect=roads,rds.old
  19. </pre></div>
  20. <p>
  21. Data files can also be specified by their mapsets. For
  22. example, the below command copies the raster map named
  23. <em>soils</em> from the mapset <em>wilson</em> to a new
  24. file called <em>soils</em> to be placed under the user's
  25. current mapset:
  26. <p>
  27. <div class="code"><pre>
  28. g.copy rast='soils@wilson',soils
  29. </pre></div>
  30. <p>
  31. If no mapset name is specified, <em>g.copy</em> searches
  32. for the named <em>from</em> map in each of the mapset
  33. directories listed in the user's current mapset search path
  34. in the order in which mapsets are listed there (see
  35. <em><a href="g.mapsets.html">g.mapsets</a></em>).
  36. <h2>NOTES</h2>
  37. If the user does not enter parameter values but instead
  38. types only <b>g.copy</b> on the command line the program
  39. will prompt the user for a data type, the name of a file of
  40. this data type to copy, and the name of a new file to hold
  41. the copy. After both file names have been entered, the
  42. copy is created and the user is again prompted for a data
  43. element to be copied, until the user hits RETURN. When
  44. prompted for file names, the user may enter 'list' to see a
  45. list of existing files, or hit RETURN to end the file
  46. listing.
  47. <p>
  48. If a file has support files (e.g., as do raster data
  49. files), these support files will also be copied.
  50. <h2>SEE ALSO</h2>
  51. <em><a href="g.access.html">g.access</a></em><br>
  52. <em><a href="g.list.html">g.list</a></em><br>
  53. <em><a href="g.mapsets.html">g.mapsets</a></em><br>
  54. <em><a href="g.remove.html">g.remove</a></em><br>
  55. <em><a href="g.rename.html">g.rename</a></em>
  56. <h2>AUTHOR</h2>
  57. Michael Shapiro,
  58. U.S.Army Construction Engineering
  59. Research Laboratory
  60. <p><i>Last changed: $Date$</i><p>