Displaying 20 results from an estimated 43 matches for "bayat".
2024 Jun 24
3
Converting .grib to excel file
...- ReadGrib("C:/Users/admin/Downloads/Met.grib")
# Convert to a data frame
grib_df <- as.data.frame(grib_data)
# Write the data frame to a CSV file
write.csv(grib_df, file = "output.csv")
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
2024 Jun 25
1
Converting .grib to excel file
Dear Bert and Sara;
I have searched on the internet and found some way to do this like python.
But python is so complicated to me as it needs many steps to be done for
reading and converting it.
I will try terra package to convert it.
On Tue, 25 Jun 2024, 15:15 javad bayat, <j.bayat194 at gmail.com> wrote:
> Richard,
> Many thanks for your email.
> I had attached the grib file to the original email to R help team but it
> seems you did not receive it.
> Unfortunately, I do not know how to reduce the volume or extract some of
> the grib file d...
2024 Jun 25
2
Converting .grib to excel file
...le for
> myself. Does the licence for the data even allow you to send some of
> it in a message? Which parameters are you extracting? When you say
> "it didn't work", what actually happened? Which step went wrong and how?
>
>
> On Tue, 25 Jun 2024 at 20:33, javad bayat <j.bayat194 at gmail.com> wrote:
> >
> > Dear all;
> > I have downloaded meteorology data from "
> >
> https://cds.climate.copernicus.eu/cdsapp#!/dataset/reanalysis-era5-single-levels?tab=form
> "
> > as .grib format. It has hourly data of a compl...
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 Jun 26
1
Converting .grib to excel file
...very much part of the R "way".
Or there's gribr https://rdrr.io/github/nawendt/gribr/man/gribr.html
which wraps ecCodes in R.
I still don't understand what "doesn't work" means. Which step goes
wrong and how does it misbehave?
On Wed, 26 Jun 2024 at 06:02, javad bayat <j.bayat194 at gmail.com> wrote:
>
> Richard,
> Many thanks for your email.
> I had attached the grib file to the original email to R help team but it seems you did not receive it.
> Unfortunately, I do not know how to reduce the volume or extract some of the grib file data to...
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
&...
2024 Sep 26
1
Problem with converting grib file to excel
Attachments CAN NOT be sent to group
On Thu, 26 Sep 2024, 21:22 javad bayat, <j.bayat194 at gmail.com> wrote:
> Dear Roy,
> Sorry for my mistake, I thought I have uploaded the grib file.
> I really apologise for that. I will send it on Saturday.
> Thank you very much.
>
> On Thu, 26 Sept 2024, 17:40 Roy Mendelssohn - NOAA Federal, <
> roy.m...
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 Sep 26
1
Problem with converting grib file to excel
...e:
> Hi Javad:
>
> I know a lot about reading GRIB files, I work with them all the time.
> But if you don?t make the file available, or point me to where I can
> download it, there is not much I can do.
>
> Thanks,
>
> -Roy
>
> On Sep 25, 2024, at 9:41?PM, javad bayat <j.bayat194 at gmail.com> wrote:
>
> Dear all;
> Many thanks for your responses. Actually it is not completely a GIS file,
> it is a data file which stores meteorological data of a specific region.
> But the site allows downloading with grib format and as I searched to read
>...
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 Jun 26
1
Converting .grib to excel file
...ot;.
> Or there's gribr https://rdrr.io/github/nawendt/gribr/man/gribr.html
> which wraps ecCodes in R.
>
> I still don't understand what "doesn't work" means. Which step goes
> wrong and how does it misbehave?
>
>
> On Wed, 26 Jun 2024 at 06:02, javad bayat <j.bayat194 at gmail.com> wrote:
> >
> > Richard,
> > Many thanks for your email.
> > I had attached the grib file to the original email to R help team but it seems you did not receive it.
> > Unfortunately, I do not know how to reduce the volume or extract some...
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 Oct 30
2
Extracting wind direction and wind speed from wind rose plot
...ant to add 2 more cols to this dataframe as Wind_Dir and Wind_Speed
that the data extracted from the plot by analyzing it.
Is there any library to do this? or any function to write for this purpose?
I would be more than happy if you please help me to do this.
Sincerely
--
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
...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...
2024 Sep 26
1
Problem with converting grib file to excel
Hi Javad:
I know a lot about reading GRIB files, I work with them all the time. But if you don?t make the file available, or point me to where I can download it, there is not much I can do.
Thanks,
-Roy
> On Sep 25, 2024, at 9:41?PM, javad bayat <j.bayat194 at gmail.com> wrote:
>
> Dear all;
> Many thanks for your responses. Actually it is not completely a GIS file, it is a data file which stores meteorological data of a specific region. But the site allows downloading with grib format and as I searched to read this type of...
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]]