python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
how to combine many netcdf files into one data file in python
!pip install wget
import wget
import requests
import numpy as np
days = ['01','15']
months = ['01','02','03','04','05','06','07','08','09','10','11','12']
years = np.array([2010, 2015, 2020])
for ye...
begin_s
Votes: 0
Answers: 1
Python: how to convert the first dimension of a netcdf file to a dataframe?
I am quite new with NetCDF files. I am trying to analyze a dataset that contains global information of land use from 1899 to 2019. I would like to select a year and convert the information into a data...
emax
Votes: 0
Answers: 1
Loop over netCDF datetime format and calculate mean based on month
I have a dataset (a netCDF4 input_file) with the dimensions (504, 720, 500) where the first is a datetime value:
0 1979-01-15
1 1979-02-15
2 1979-03-15
3 1979-04-15
4 1979-05-15
...

B.Quaink
Votes: 0
Answers: 2
TypeError: can't convert type 'MaskedArray' to numerator/denominator
>>> i = 0
>>> j = 26
>>> sla = nc['sla']
>>> lon = nc['longitude'][:]
>>> lat = nc['latitude'][:]
>>> cs = ax.contourf(lon, lat, mean(sla[i:i+j])*...
DUM
Votes: 0
Answers: 1