Re: [GRASS-user] Copy an existing location

2016-04-29 Thread Rainer M Krug
"Bartolomei.Chris"  writes:

> Hi Rainer,
> I had stated that I wasn't 100% sure and just to look into it - I had
> recalled reading about lossy and lossless data some time ago.
> For a quick look into it, Wikipedia has a decent article
> (https://en.wikipedia.org/wiki/Lossless_compression and
> https://en.wikipedia.org/wiki/Lossy_compression) ... as I briefly
> looked through it just now, it appears gz and zip use a lossless
> algorithm so they should be fine to use. Tar (if I remember right)
> concatenates files into an archive and is not a compression tool.
> It looks like lossy algorithms are used more for music and video and some 
> images according to the articles.
> I was just putting up a yellow flag as a caution to look into it as I
> wasn't sure and I wouldn't want to give someone bad advice.

OK - so we can clarify:

*File Compression* is per definition lossless (zip, gz, 7z, bz,
 ...). Otherwise you would not be able to restore ftom archives.

Compression of *content of the file* can be lossy (mp3, jpeg, ...).

Cheers,

Rainer

>
> Chris Bartolomei P.E.
> Engineer/Scientist
> ENSCO, Inc.
> bartolomei.ch...@ensco.com
> 
> From: Rainer M Krug [rai...@krugs.de]
> Sent: Friday, April 29, 2016 12:35 AM
> To: Bartolomei.Chris
> Cc: Janet Choate; grass list
> Subject: Re: Copy an existing location
>
> "Bartolomei.Chris"  writes:
>
> [snip (4 lines)]
>
>> The reason I say this is the file
>> compression I suggested may cause some data loss ... look into
>> lossless data compression algorithms and you'll see what I'm talking
>> about.
>
> Could you please elaborate and give some references where lossless data
> compression (gz, zip) may cause data loss? Especially tar.gz is used for
> ages in archival and backup?
>
> Rainer
>
>
> [snip (46 lines)]
> --
> Rainer M. Krug
> email: Rainerkrugsde
> PGP: 0x0F52F982
>
> The information contained in this email message is intended only for the use 
> of the individual(s) to whom it is addressed and may contain information that 
> is privileged and sensitive. If you are not the intended recipient, or 
> otherwise have received this communication in error, please notify the sender 
> immediately by email at the above referenced address and note that any 
> further dissemination, distribution or copying of this communication is 
> strictly prohibited.
>
> The U.S. Export Control Laws regulate the export and re-export of technology 
> originating in the United States. This includes the electronic transmission 
> of information and software to foreign countries and to certain foreign 
> nationals. Recipient agrees to abide by these laws and their regulations -- 
> including the U.S. Department of Commerce Export Administration Regulations 
> and the U.S. Department of State International Traffic in Arms Regulations -- 
> and not to transfer, by electronic transmission or otherwise, any content 
> derived from this email to either a foreign national or a foreign destination 
> in violation of such laws.
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Copy an existing location

2016-04-29 Thread Bartolomei.Chris
Hi Rainer,
I had stated that I wasn't 100% sure and just to look into it - I had recalled 
reading about lossy and lossless data some time ago.
For a quick look into it, Wikipedia has a decent article 
(https://en.wikipedia.org/wiki/Lossless_compression and 
https://en.wikipedia.org/wiki/Lossy_compression) ... as I briefly looked 
through it just now, it appears gz and zip use a lossless algorithm so they 
should be fine to use. Tar (if I remember right) concatenates files into an 
archive and is not a compression tool.
It looks like lossy algorithms are used more for music and video and some 
images according to the articles.
I was just putting up a yellow flag as a caution to look into it as I wasn't 
sure and I wouldn't want to give someone bad advice.

Chris Bartolomei P.E.
Engineer/Scientist
ENSCO, Inc.
bartolomei.ch...@ensco.com

From: Rainer M Krug [rai...@krugs.de]
Sent: Friday, April 29, 2016 12:35 AM
To: Bartolomei.Chris
Cc: Janet Choate; grass list
Subject: Re: Copy an existing location

"Bartolomei.Chris"  writes:

[snip (4 lines)]

> The reason I say this is the file
> compression I suggested may cause some data loss ... look into
> lossless data compression algorithms and you'll see what I'm talking
> about.

Could you please elaborate and give some references where lossless data
compression (gz, zip) may cause data loss? Especially tar.gz is used for
ages in archival and backup?

Rainer


[snip (46 lines)]
--
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982

The information contained in this email message is intended only for the use of 
the individual(s) to whom it is addressed and may contain information that is 
privileged and sensitive. If you are not the intended recipient, or otherwise 
have received this communication in error, please notify the sender immediately 
by email at the above referenced address and note that any further 
dissemination, distribution or copying of this communication is strictly 
prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology 
originating in the United States. This includes the electronic transmission of 
information and software to foreign countries and to certain foreign nationals. 
Recipient agrees to abide by these laws and their regulations -- including the 
U.S. Department of Commerce Export Administration Regulations and the U.S. 
Department of State International Traffic in Arms Regulations -- and not to 
transfer, by electronic transmission or otherwise, any content derived from 
this email to either a foreign national or a foreign destination in violation 
of such laws.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Copy an existing location

2016-04-29 Thread Rainer M Krug
"Bartolomei.Chris"  writes:

[snip (4 lines)]

> The reason I say this is the file
> compression I suggested may cause some data loss ... look into
> lossless data compression algorithms and you'll see what I'm talking
> about.

Could you please elaborate and give some references where lossless data
compression (gz, zip) may cause data loss? Especially tar.gz is used for
ages in archival and backup?

Rainer


[snip (46 lines)]
-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Copy an existing location

2016-04-29 Thread Moritz Lennert

On 29/04/16 08:34, Blumentrath, Stefan wrote:

Yes, and maybe allowing for multiple input would be nice for such use cases as 
well!?


For rasters this could possibly be done by adding the option to pack a 
group.


Moritz

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Copy an existing location

2016-04-28 Thread Blumentrath, Stefan
Yes, and maybe allowing for multiple input would be nice for such use cases as 
well!?

Another possibly useful enhancement may be a kind of wrapper script (let`s call 
it m.pack/unpack) which would even allow for packing (and unpacking) raster and 
vector maps together in one archive...?

Cheers
Stefan

-Original Message-
From: grass-user [mailto:grass-user-boun...@lists.osgeo.org] On Behalf Of 
Markus Neteler
Sent: 28. april 2016 14:35
To: Paulo van Breugel 
Cc: grass list 
Subject: Re: [GRASS-user] Copy an existing location

On Thu, Apr 28, 2016 at 9:54 AM, Paulo van Breugel  
wrote:
> There is also the r.pack function.

Yes,this is a safe way to go (r.pack - r.unpack | v.pack - v.unpack).

Hope this suggestion is addressed one day:

r|v.unpack: add parameter to create new location
https://trac.osgeo.org/grass/ticket/2459

which would be handy for the user receiving the data.

Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Copy an existing location

2016-04-28 Thread Markus Neteler
On Thu, Apr 28, 2016 at 9:54 AM, Paulo van Breugel
 wrote:
> There is also the r.pack function.

Yes,this is a safe way to go (r.pack - r.unpack | v.pack - v.unpack).

Hope this suggestion is addressed one day:

r|v.unpack: add parameter to create new location
https://trac.osgeo.org/grass/ticket/2459

which would be handy for the user receiving the data.

Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Copy an existing location

2016-04-28 Thread Paulo van Breugel
There is also the r.pack function. But what I would probably do is to copy
the whole location folder, delete the layers you don't want to include, and
then zip / 7zip the whole folder (which is lossless) or any other suitable
format.


On Thu, Apr 28, 2016 at 9:44 AM, Bartolomei.Chris <
bartolomei.ch...@ensco.com> wrote:

> Hi Janet ... I was just thinking about the suggestion I sent ... you may
> be better off exporting the rasters and then having the user import them
> into a like-named mapset with the projection set to what the original
> rasters are in (and set the region and resolution correctly prior to
> import). The reason I say this is the file compression I suggested may
> cause some data loss ... look into lossless data compression algorithms and
> you'll see what I'm talking about.
> It may be irrelevent, but I'm not 100% sure... something to be aware of
> though.
>
> Chris Bartolomei P.E.
> Engineer/Scientist
> ENSCO, Inc.
> bartolomei.ch...@ensco.com
> 
> From: grass-user [grass-user-boun...@lists.osgeo.org] On Behalf Of Janet
> Choate [jsc@gmail.com]
> Sent: Wednesday, April 27, 2016 7:00 PM
> To: grass list
> Subject: [GRASS-user] Copy an existing location
>
> Hello GRASS community,
> Does anyone have advice on duplicating an existing GRASS location with
> only certain rasters maps?
> For example, I have an existing GRASS location with a PERMANENT mapset
> that contains 100 maps. I want to create a copy of this existing location
> (with it's current projection) to a new location, which will only contain
> 10 of the rater maps from the existing location.
> I want to be able to transfer a new 'cleaned-up' version of my GRASS
> location to another user.
> thank you,
> Janet
>
>
>
> The information contained in this email message is intended only for the
> use of the individual(s) to whom it is addressed and may contain
> information that is privileged and sensitive. If you are not the intended
> recipient, or otherwise have received this communication in error, please
> notify the sender immediately by email at the above referenced address and
> note that any further dissemination, distribution or copying of this
> communication is strictly prohibited.
>
> The U.S. Export Control Laws regulate the export and re-export of
> technology originating in the United States. This includes the electronic
> transmission of information and software to foreign countries and to
> certain foreign nationals. Recipient agrees to abide by these laws and
> their regulations -- including the U.S. Department of Commerce Export
> Administration Regulations and the U.S. Department of State International
> Traffic in Arms Regulations -- and not to transfer, by electronic
> transmission or otherwise, any content derived from this email to either a
> foreign national or a foreign destination in violation of such laws.
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Copy an existing location

2016-04-28 Thread Bartolomei.Chris
Hi Janet ... I was just thinking about the suggestion I sent ... you may be 
better off exporting the rasters and then having the user import them into a 
like-named mapset with the projection set to what the original rasters are in 
(and set the region and resolution correctly prior to import). The reason I say 
this is the file compression I suggested may cause some data loss ... look into 
lossless data compression algorithms and you'll see what I'm talking about.
It may be irrelevent, but I'm not 100% sure... something to be aware of though.

Chris Bartolomei P.E.
Engineer/Scientist
ENSCO, Inc.
bartolomei.ch...@ensco.com

From: grass-user [grass-user-boun...@lists.osgeo.org] On Behalf Of Janet Choate 
[jsc@gmail.com]
Sent: Wednesday, April 27, 2016 7:00 PM
To: grass list
Subject: [GRASS-user] Copy an existing location

Hello GRASS community,
Does anyone have advice on duplicating an existing GRASS location with only 
certain rasters maps?
For example, I have an existing GRASS location with a PERMANENT mapset that 
contains 100 maps. I want to create a copy of this existing location (with it's 
current projection) to a new location, which will only contain 10 of the rater 
maps from the existing location.
I want to be able to transfer a new 'cleaned-up' version of my GRASS location 
to another user.
thank you,
Janet



The information contained in this email message is intended only for the use of 
the individual(s) to whom it is addressed and may contain information that is 
privileged and sensitive. If you are not the intended recipient, or otherwise 
have received this communication in error, please notify the sender immediately 
by email at the above referenced address and note that any further 
dissemination, distribution or copying of this communication is strictly 
prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology 
originating in the United States. This includes the electronic transmission of 
information and software to foreign countries and to certain foreign nationals. 
Recipient agrees to abide by these laws and their regulations -- including the 
U.S. Department of Commerce Export Administration Regulations and the U.S. 
Department of State International Traffic in Arms Regulations -- and not to 
transfer, by electronic transmission or otherwise, any content derived from 
this email to either a foreign national or a foreign destination in violation 
of such laws.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Copy an existing location

2016-04-28 Thread Bartolomei.Chris
I would create a new mapset (in the same "location") then use g.copy (or the 
gui) to copy the rasters from PERMANENT to the new mapset.
You can then pack the mapset directory (folder) (".tar" or ".gz" or ".zip") and 
send it to the other user - they should have the same "location" you do, have 
them create a new mapset the same as the one you created, then they can unpack 
(extract) the folder contents into the mapset location overwriting the 
defaults.  That should work...

Chris Bartolomei P.E.
Engineer/Scientist
ENSCO, Inc.

bartolomei.ch...@ensco.com

From: grass-user [grass-user-boun...@lists.osgeo.org] On Behalf Of Janet Choate 
[jsc@gmail.com]
Sent: Wednesday, April 27, 2016 7:00 PM
To: grass list
Subject: [GRASS-user] Copy an existing location

Hello GRASS community,
Does anyone have advice on duplicating an existing GRASS location with only 
certain rasters maps?
For example, I have an existing GRASS location with a PERMANENT mapset that 
contains 100 maps. I want to create a copy of this existing location (with it's 
current projection) to a new location, which will only contain 10 of the rater 
maps from the existing location.
I want to be able to transfer a new 'cleaned-up' version of my GRASS location 
to another user.
thank you,
Janet



The information contained in this email message is intended only for the use of 
the individual(s) to whom it is addressed and may contain information that is 
privileged and sensitive. If you are not the intended recipient, or otherwise 
have received this communication in error, please notify the sender immediately 
by email at the above referenced address and note that any further 
dissemination, distribution or copying of this communication is strictly 
prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology 
originating in the United States. This includes the electronic transmission of 
information and software to foreign countries and to certain foreign nationals. 
Recipient agrees to abide by these laws and their regulations -- including the 
U.S. Department of Commerce Export Administration Regulations and the U.S. 
Department of State International Traffic in Arms Regulations -- and not to 
transfer, by electronic transmission or otherwise, any content derived from 
this email to either a foreign national or a foreign destination in violation 
of such laws.
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

[GRASS-user] Copy an existing location

2016-04-27 Thread Janet Choate
Hello GRASS community,
Does anyone have advice on duplicating an existing GRASS location with only
certain rasters maps?
For example, I have an existing GRASS location with a PERMANENT mapset that
contains 100 maps. I want to create a copy of this existing location (with
it's current projection) to a new location, which will only contain 10 of
the rater maps from the existing location.
I want to be able to transfer a new 'cleaned-up' version of my GRASS
location to another user.
thank you,
Janet
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user