Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

roll longitude about zero

# To adjust coordinate labels or make axis cyclic or periodic,
# you can use the Shift() and/or roll() methods as shown below:

import xarray as xr


array = xr.DataArray([1, 2, 3, 4], dims="x")

# shift the coordinate 'x' (to the right) by 2
array.shift(x=2)

# roll the coordinate 'x' (toward the right) by 2
array.roll(x=2, roll_coords=True)

Comment

PREVIOUS NEXT
Code Example
Python :: find absolut vale in python 
Python :: python image plot 
Python :: on message discord py 
Python :: get request header flask 
Python :: first day of the month python 
Python :: how to install python 2 
Python :: sqlalchemy check if database exists 
Python :: get max value column pandas 
Python :: pandas load dataframe without header 
Python :: torchviz 
Python :: boolean python meaning for idiots 
Python :: run django server 
Python :: how to pick a random english word from a list 
Python :: createview django 
Python :: how to change icon in pygame 
Python :: How do you print multiple things on one statement in Python? 
Python :: create a new file in python 3 
Python :: django timezone india 
Python :: how to get current date in python 
Python :: python read from txt file 
Python :: how to set background color of an image to transparent in pygame 
Python :: python get angle between two points 
Python :: find python path cmd 
Python :: python progress bar console 
Python :: click link selenium python 
Python :: how to save bulk create in django 
Python :: python datetime add one week 
Python :: confusion matrix python code 
Python :: cv2 yellow color range 
Python :: python sum dictionary values by key 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =