Questions tagged [python]
For questions related specifically to the Python dynamic programming language.
72 questions
1
vote
0
answers
56
views
Laplacian based on finite difference vs spectral technique
All,
As Laplacian could be computed using finite difference techniques (e.g., second derivative or first derivative of the first derivative ) or spectral methods, It will be helpful to mention the ...
1
vote
1
answer
69
views
How to Accurately Adjust NetCDF Time Data to Reflect Local Solar Time Using Xarray?
I have a NetCDF dataset with a variable (let's call it s) that depends on local solar time. The current time dimension is in UTC, and the dataset has the following dimensions: lat, lon, and time (...
2
votes
0
answers
113
views
How to calculate horizontal wind shear (esp. via Python)?
I would like to ask about horizontal wind shear. In most cases, we frequently talk about vertical wind shear (VWS), which is the change in wind speed and direction with height or within a given layer/...
0
votes
0
answers
83
views
Wind speed vs attitude model
I am looking to model wind speed with altitude in real time. I am currently using a GFS model:
https://nomads.ncep.noaa.gov/dods/gfs_0p25_1hr/gfs20240616/gfs_0p25_1hr_00z.info
I am curious as to what ...
0
votes
2
answers
79
views
Converting EET to UTC ignoring EEST
I have measurements of pollutants.
data = data.set_index(data.index.tz_localize(timezone('EET'), ambiguous='NaT', nonexistent='NaT').tz_convert('UTC'))
This command converts the EET time to UTC. It ...
2
votes
0
answers
93
views
Providing wind direction with wrf-python package
I understand that wrf.getvar will give both the speed (dim 0) and the direction (dim 1)
V1 = wrf.getvar(ncdin, "uvmet10_wspd_wdir", units="m s-1",timeidx=wrf.ALL_TIMES,meta=False)[...
1
vote
0
answers
77
views
metpy divergence module array indexing error
i am trying to find out moisture divergence using metpy divergence module and i used
qu12=q3b*u3b
qv12=q3b*v3b
HMD12 = mpcalc.divergence(qu12, qv12)
here qu12 ,...
2
votes
2
answers
218
views
Efficient way to parse lat-lon grid at certain depth in tripolar model from nc file?
I am working on the ORAS5 dataset which comes as an archive of netCDF files. Currently, I am using python and netcdf4 to process it.
My goal is to get surface level ocean currents across the globe (...
1
vote
0
answers
58
views
Is this the correct way to extract U and V wind components from NEXRAD weather radar?
I am working with NEXRAD radar data, and I am trying to plot the U and V wind velocity for each point on a grid. There is a channel in the data called "Velocity" described as "A measure ...
1
vote
0
answers
116
views
Error message in metpy function interpolate_to_isosurface for relative humidity variable from wrf
I want to extract relative humidity at a specific pressure level (850 hPa) using metpy. Earlier, I tried with wrf-python function 'wrf.interplevel' and it worked successfully. But, I was getting some ...
0
votes
0
answers
214
views
Mass weighted vertical average of stream function in python
I have a netCDF file of stream function (psi) having dimension (latitude, level), level is pressure level. There are 5 pressure levels (700,600,500,400,300 hPa). I need to compute the mass weighted ...
3
votes
1
answer
180
views
A low-pass butterworth filter to analyze ocean bottom pressure
Hello fellow oceanographers, I just trying to design a fourth-order low-pass butterworth filter with a 15-days cutoff period, in python, with the aim to filter a ocean bottom pressure (OBP) time ...
1
vote
0
answers
85
views
How to calculate seasonal component from weekly data using dataframepython?
Below is my dataframe
I want to calculate the climatological monthly average, the total average for each month.
For example, when I use groupby to estimate the monthly average of the variable AREA as ...
3
votes
1
answer
607
views
Downloading JRA-3Q efficiently using a python script
The JRA-3Q dataset is available from DIAS. There is an online interface to download what you need file-by-file.
Other reanalyses like ERA5 and MERRA2 have access points that let you write a python ...
1
vote
0
answers
42
views
Tech stack for crop related information using satellte data
I want to perform tasks like crop area estimation, crop yield estimation, crop growth stage monitoring using Sentinel 2 or Landsat data for a particular region. What tech stack would I need to do that?...