search for: bayat194

Displaying 20 results from an estimated 24 matches for "bayat194".

2023 Dec 06
2
Volume of polygon
...t, 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 > too. > I wan...
2023 Dec 06
2
Volume of polygon
...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]]
2023 Dec 06
1
Volume of polygon
...oned, 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 > too. > I...
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
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 at 1240 m. &gt...
2024 Apr 10
1
Question regarding reservoir volume and water level
...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...
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
...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 -- To UNSUBSCR...
2024 Apr 07
2
Question regarding reservoir volume and 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]]
2012 Oct 19
3
saving to docx
hi all, how can i saving R output to docx or Jpeg format? [[alternative HTML version deleted]]
2024 Apr 09
1
Question regarding reservoir volume and water level
...possible 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 calculated by...
2023 Jun 11
2
Problem with filling dataframe's column
...rent 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]]
2018 Jan 30
0
Calculating angle of a polyline
...ny 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...
2024 Apr 07
1
Question regarding reservoir volume and water level
...o 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 original poster. One n...
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? > Sincerely > > > for (i in 1:nrow(data2$Layer)){ >
2023 Dec 09
1
Linear model and approx function
Dear all; I have a dataframe with several columns. The columns are the elevation, volume and the area of the cells (which were placed inside a polygon). I have extracted them from DEM raster to calculate the volume under polygon and the elevation for a specific volume of the reservoir. > head(x6,2) Elevation Vol Area V_sum A_sum 1 2145 13990.38 85.83053 13990.38
2023 Nov 20
1
Calculating volume under polygons
...# Print the results for (i in 1:length(volumes)) { cat(sprintf("Volume under polygon %d: %f\n", i, volumes[i])) } ########################################################################################## -- Best Regards Javad Bayat M.Sc. Environment Engineering Alternative Mail: bayat194 at yahoo.com [[alternative HTML version deleted]]
2024 Mar 16
1
Problem when trying to install packages
Though Navigator may mess up any Rtools stuff because it handles the directory trees where packages and dependencies are located, does it not? If so, maybe just reinstall RStudio directly from its website to proceed. Just a guess obviously. Bert On Sat, Mar 16, 2024, 05:09 javad bayat <j.bayat194 at gmail.com> wrote: > Dear Rui; > Many thanks for your reply. I have installed Rtools (rtools43-5958-5975) on > my PC and I have R version 4.3.3 and 4.3.2 to install. Also I have > installed Rstudio through Anaconda Navigator. > But I do not know how to use Rtools for installin...
2024 Mar 16
1
Problem when trying to install packages
...p any Rtools stuff because it handles the > directory trees where packages and dependencies are located, does it not? > If so, maybe just reinstall RStudio directly from its website to proceed. > Just a guess obviously. > > Bert > > On Sat, Mar 16, 2024, 05:09 javad bayat <j.bayat194 at gmail.com> wrote: > >> Dear Rui; >> Many thanks for your reply. I have installed Rtools (rtools43-5958-5975) >> on >> my PC and I have R version 4.3.3 and 4.3.2 to install. Also I have >> installed Rstudio through Anaconda Navigator. >> But I do not kno...
2023 Jun 11
1
Problem with filling dataframe's column
...quot;) > data2$LU[i] <- "Park" > > # equivalent one-liner > data2$LU[which(data2$Layer == "Level 12")] <- "Park" > > > Hope this helps, > > Rui Barradas > -- Best Regards Javad Bayat M.Sc. Environment Engineering Alternative Mail: bayat194 at yahoo.com [[alternative HTML version deleted]]