Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [python]

The tag has no usage guidance.

2
votes
0answers
16 views

Monte Carlo Simulation for Tropical cyclone passage frequency: Using R/Python

I want to implement a statistical test by the following paper in R: https://journals.ametsoc.org/doi/full/10.1175/JCLI4217.1 Details The above paper calculates the significance of the difference in ...
2
votes
1answer
36 views

Locating shearlines or deformation zones in a map

I am looking for a way to detect shearlines or confluence regions such as that shown in the figure below (red dashed line). I was able to derive the stretching, shear, and total deformations. The ...
0
votes
2answers
37 views

Error trying to download ERA5 data: Exception: Missing/incomplete configuration file: C:\Users\username/.cdsapirc

I am new with Python so please be kind. I want to download data from ERA5 and so far I have installed the CDS API package and followed all the instructions from https://cds.climate.copernicus.eu/api-...
1
vote
1answer
45 views

Hydrology- flow accumulation

I'm not specialist in hydrology, and I would be very grateful if you answer my question: What is flow accumulation in hydrology? Why algorithms used to calculate it over a raster DEM don't take ...
5
votes
2answers
213 views

How to map emission inventory from lat&lon corrdinate to WRF model grid

Here, I have a regional emission inventory, which mainly contains the varibales of lat,lon,...
1
vote
0answers
113 views

Issues with projection and fig using python and mpl_toolkits.basemap

I currently have depth data that I am plotting with the code below. The problem that I am having has to do with the figure python is spitting out. The figure is really tiny. I have tried a few things ...
2
votes
0answers
413 views

Interpolation and extrapolation of unstructured data in python: memory error

I have 3 arrays, for longitude, latitude and temperature (so the observations are scattered in space). I want to apply interpolation on these data, but also extrapolation. I 've written the code beow, ...
9
votes
3answers
18k views

How to interpolate scattered data to a regular grid in Python?

I have three txt files for longitude, latitude and temperature (or let's say three lists lon, lat, temp) from scattered weather station in the UK. I would like firstly to interpolate these data in ...
3
votes
2answers
1k views

Plotting wind barbs in python (no U,V component)

I've got 4 different .txt files for longitude, latitude, wind speed and wind direction (so no U and V components of the wind). Is there any way to plot wind barbs from such a dataset?
4
votes
1answer
119 views

How to handle negative cosine of Solar Zenith Angle while calculating clear-sky UV Index?

I'm using this source to calculate the UVI value for every hour in a day (From 7am to 7pm). And using pysolar module to get the Solar Zenith Angle. The equation is ...
9
votes
2answers
585 views

Terrain correction for gravity data using Nagy, 1973

I am working with an algorithm for terrain correction of gravity data. I am using Nagy, 1973. However, I could not get the results I need. So, this is the problem. I have this function where x,y,z ...
12
votes
1answer
4k views

Plotting wind barbs in python

I'm trying to plot wind barbs in basemap and I have two separate netCDF files. Here is what I am trying to produce, or something like it: How do I read a uwnd variable in a netCDF file in python? <...