Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

regrid ntdcf file usig xarray

import xarray as xr
import numpy as np

ds = xr.open_dataset(path_file)

new_lon = np.arange(0,360,0.25)   #to regrid all 0.25°
new_lat = np.arange(90,-90.25,-0.25)

dsi = ds.interp(lat = new_lat, lon = new_lon)
Comment

PREVIOUS NEXT
Code Example
Python :: cannot import name Glib 
Python :: list of google colab deep learning tutorial 
Python :: change the size of a button tkinter 
Python :: boolean for duplicate values in a column 
Python :: import cv2 illegal instruction (core dumped) jetson nano 
Python :: python writelignes 
Python :: get a liste from a txt file python 
Python :: add multiple columns to dataframe if not exist pandas 
Python :: gym notebook render env 
Python :: python find duplicated zip files 
Python :: matplotlib csv-datei anpassen und verwenden 
Python :: pyhdb cesu-8 
Python :: geopandas españa map 
Python :: identify color sequence with OpenCV 
Python :: xkcd remove feature matplotlib 
Python :: Start Openvino Python Application at Boot Time using System Service on ubunut 
Python :: salir programa python 
Python :: check cudann 
Python :: Django LogEntry or Change History 
Python :: scikit learn introduction 
Python :: Insurance= contract.x_studio_social_security_basic salary of ins = 1500 result = contract.x_studio_social_security_basic_salary*100 
Python :: change orientatin of dict read pandas 
Python :: Python String to array using list() method 
Python :: append to a ldictionary value list 
Python :: how to upload files and folders with pygithub 
Python :: et.dump export file to xml write method output 
Python :: how to write list into csv file in python 
Python :: create schema dynamo revit 
Python :: create matrix with complex python 
Python :: [Solved] Pandas TypeError: no numeric data to plot 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =