Project

General

Profile

RE: How to turn 360 day calendars into 365 days in CDO? » NETCDFCODING (1).py

ibrahim erkol, 2022-04-09 12:08

 
import netCDF4 as nc
import numpy as np
fn = 'C:/Users/Asus/Documents/ArcGIS/ArcGIS - Copy/evaporation/PREC_GFDLDAILYPRECAYDINMEAN.nc'
ds = nc.Dataset(fn)
prec = ds['pr']
np.savetxt("foo3.csv", prec[5999:6000, 0, 0], delimiter=",")
(1-1/3)