search for: bayat

Displaying 20 results from an estimated 27 matches for "bayat".

2023 Dec 06
2
Volume of polygon
...be irrelevant, but if the lake is cylindrical == constant cross sectional area at all depths, then height doubles when the volume does and vice versa. Otherwise you have to know how area varies with height or use more sensible approximations thereto. Cheers, Bert On Tue, Dec 5, 2023, 20:13 javad bayat <j.bayat194 at gmail.com> wrote: > Dear all; > I am trying to calculate the volume of a polygon shapefile according to a > DEM raster. I have provided some codes at the end of this email.I dont know > if the codes are correct or not. Following this, I have another question >...
2023 Dec 06
2
Volume of polygon
...t;Base.tif") p <- shapefile("p.shp") r <- crop(r, p) r <- mask(r, p) x <- exact_extract(r, p, coverage_area = TRUE) x1 = as.data.frame(x[1]) head(x1) x1 = na.omit(x1) x1$Height = max(x1[,1]) - x1[,1] x1$Vol = x1[,2] * x1[,3] sum(x1$Vol) " -- Best Regards Javad Bayat M.Sc. Environment Engineering Alternative Mail: bayat194 at yahoo.com [[alternative HTML version deleted]]
2024 Apr 10
1
Question regarding reservoir volume and water level
...nowledge of the reservoir shape. E.g. in a cylindrical > reservoir halving the water level also halves the volume, but in a conical > reservoir, halving the level leaves only 1/8 of the volume. > > > > -pd > > > > > > > >> On 8 Apr 2024, at 05:55 , javad bayat <j.bayat194 at gmail.com> wrote: > >> > >> Dear all; > >> Many thanks for your replies. This was not homework. I apologize. > >> Let me explain more. > >> There is a dam constructed in a valley with the highest elevation of > 1255 > >>...
2023 Dec 06
1
Volume of polygon
...lready mentioned, this is a great topic for R-sig-geo, where you'd probably get specialist answers like the lake morphology package https://cran.r-project.org/web/packages/lakemorpho/index.html which is explicitly designed for this kind of question. Sarah On Tue, Dec 5, 2023 at 11:13?PM javad bayat <j.bayat194 at gmail.com> wrote: > > Dear all; > I am trying to calculate the volume of a polygon shapefile according to a > DEM raster. I have provided some codes at the end of this email.I dont know > if the codes are correct or not. Following this, I have another question &...
2023 Jun 11
2
Problem with filling dataframe's column
..."Layer" and the "LU" are two different columns of the dataframe. How can I fix this? Sincerely for (i in 1:nrow(data2$Layer)){ if (data2$Layer == "Level 12") { data2$LU == "Park" } } -- Best Regards Javad Bayat M.Sc. Environment Engineering Alternative Mail: bayat194 at yahoo.com [[alternative HTML version deleted]]
2024 Apr 07
1
Question regarding reservoir volume and water level
...ground and to the side and pour in if the level lowers or can be used to escape if the level rises. -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Sorkin, John Sent: Sunday, April 7, 2024 3:08 PM To: Rui Barradas <ruipbarradas at sapo.pt>; javad bayat <j.bayat194 at gmail.com>; R-help <R-help at r-project.org> Subject: Re: [R] Question regarding reservoir volume and water level Aside from the fact that the original question might well be a class exercise (or homework), the question is unanswerable given the data given by the origina...
2023 Jun 11
1
Problem with filling dataframe's column
...ta2$LU[which(data2$Layer == c("Level 1","Level 2", "Level 3", ...))] <- c("Park", "Agri", "GS", ...) Sincerely On Sun, Jun 11, 2023 at 1:43?PM Rui Barradas <ruipbarradas at sapo.pt> wrote: > ?s 21:05 de 11/06/2023, javad bayat escreveu: > > Dear R users; > > I am trying to fill a column based on a specific value in another column > of > > a dataframe, but it seems there is a problem with the codes! > > The "Layer" and the "LU" are two different columns of the dataframe. >...
2024 Apr 09
1
Question regarding reservoir volume and water level
...olume are impossible to answer without knowledge of the reservoir shape. E.g. in a cylindrical reservoir halving the water level also halves the volume, but in a conical reservoir, halving the level leaves only 1/8 of the volume. > > -pd > > > >> On 8 Apr 2024, at 05:55 , javad bayat <j.bayat194 at gmail.com> wrote: >> >> Dear all; >> Many thanks for your replies. This was not homework. I apologize. >> Let me explain more. >> There is a dam constructed in a valley with the highest elevation of 1255 >> m. The area of its reservoir can be...
2024 Apr 07
1
Question regarding reservoir volume and water level
...e Care, 10 North Greene Street GRECC (BT/18/GR) Baltimore, MD 21201-1524 Cell phone 443-418-5382 ________________________________________ From: R-help <r-help-bounces at r-project.org> on behalf of Rui Barradas <ruipbarradas at sapo.pt> Sent: Sunday, April 7, 2024 10:53 AM To: javad bayat; R-help Subject: Re: [R] Question regarding reservoir volume and water level ?s 13:27 de 07/04/2024, javad bayat escreveu: > Dear all; > I have a question about the water level of a reservoir, when the volume > changed or doubled. > There is a DEM file with the highest elevation 1267 m...
2018 Jan 30
2
Calculating angle of a polyline
Dear R users I am trying to find a formula to calculate the angle of a polyline. Is there a way to do this? Many thanks. -- Best Regards Javad Bayat M.Sc. Environment Engineering Alternative Mail: bayat194 at yahoo.com [[alternative HTML version deleted]]
2024 Apr 07
2
Question regarding reservoir volume and water level
...0 m. Now I want to know what would be the water level if the volume rises to 1250 m? or what would be the water level if the volume doubled (14,000,000 m3)? Is there any way to write codes to do this in R? I would be more than happy if anyone could help me. Sincerely -- Best Regards Javad Bayat M.Sc. Environment Engineering Alternative Mail: bayat194 at yahoo.com [[alternative HTML version deleted]]
2023 Jun 11
1
Problem with filling dataframe's column
?s 22:54 de 11/06/2023, javad bayat escreveu: > Dear Rui; > Many thanks for your email. I used one of your codes, > "data2$LU[which(data2$Layer == "Level 12")] <- "Park"", and it works > correctly for me. > Actually I need to expand the codes so as to consider all "Levels" in...
2012 Oct 19
3
saving to docx
hi all, how can i saving R output to docx or Jpeg format? [[alternative HTML version deleted]]
2023 Jun 11
1
Problem with filling dataframe's column
?s 21:05 de 11/06/2023, javad bayat escreveu: > Dear R users; > I am trying to fill a column based on a specific value in another column of > a dataframe, but it seems there is a problem with the codes! > The "Layer" and the "LU" are two different columns of the dataframe. > How can I fix this? >...
2024 Apr 07
1
Question regarding reservoir volume and water level
?s 13:27 de 07/04/2024, javad bayat escreveu: > Dear all; > I have a question about the water level of a reservoir, when the volume > changed or doubled. > There is a DEM file with the highest elevation 1267 m. The lowest elevation > is 1230 m. The current volume of the reservoir is 7,000,000 m3 at 1240 m. > Now I w...
2024 Apr 07
1
Question regarding reservoir volume and water level
Homework? -- Sent from my Android device with K-9 Mail. Please excuse my brevity. On April 7, 2024 8:27:18 AM EDT, javad bayat <j.bayat194 at gmail.com> wrote: >Dear all; >I have a question about the water level of a reservoir, when the volume >changed or doubled. >There is a DEM file with the highest elevation 1267 m. The lowest elevation >is 1230 m. The current volume of the reservoir is 7,000,000 m3...
2018 Jan 30
0
Calculating angle of a polyline
A polyline by definition has many angles, so your question is ill-formed. And this is a question about math, not R, so is off topic here. I suggest reading Wikipedia. -- Sent from my phone. Please excuse my brevity. On January 29, 2018 11:10:02 PM PST, javad bayat <j.bayat194 at gmail.com> wrote: >Dear R users >I am trying to find a formula to calculate the angle of a polyline. Is >there a way to do this? >Many thanks.
2018 Jan 30
2
Calculating angle of a polyline
...ote: > A polyline by definition has many angles, so your question is ill-formed. > And this is a question about math, not R, so is off topic here. I suggest > reading Wikipedia. > -- > Sent from my phone. Please excuse my brevity. > > On January 29, 2018 11:10:02 PM PST, javad bayat <j.bayat194 at gmail.com> > wrote: > >Dear R users > >I am trying to find a formula to calculate the angle of a polyline. Is > >there a way to do this? > >Many thanks. > > ______________________________________________ > R-help at r-project.org mailing list...
2017 Nov 13
0
Convert poly line to polygon in R
Might want to post this on R-sig-geo. Might also want to post in plain text format... see below how your message got messed up coming through the mailing list. -- Sent from my phone. Please excuse my brevity. On November 12, 2017 9:58:56 PM PST, Javad Bayat via R-help <r-help at r-project.org> wrote: >I have a shape file as poly line and I want to convert it to polygon.Is >it possible to do that in R?lake ><-readShapeLines("./lake_main_utm.shp")proj4string(lake) <- >CRS("+proj=utm +zone=39 +datum=WGS84") &gt...
2017 Nov 13
2
Convert poly line to polygon in R
I have a shape file as poly line and I want to convert it to polygon.Is it possible to do that in R?lake <-readShapeLines("./lake_main_utm.shp")proj4string(lake) <- CRS("+proj=utm +zone=39 +datum=WGS84") Sincerely. [[alternative HTML version deleted]]