Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

make longitude -180 to 180

# 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 :: python selenium partial class name 
Python :: find duplicate in dataset python 
Python :: python multi line print 
Python :: python: select specific columns in a data frame 
Python :: python3 return a list of indexes of a specific character in a string 
Python :: emoji in python 
Python :: not scientific notation python 
Python :: flask debug 
Python :: pip show all installed packages 
Python :: how can I plot model in pytorch 
Python :: python check if input is between two values 
Python :: Violin Plots, Python 
Python :: python pandas convert comma separated number string to integer list 
Python :: createview 
Python :: list of strings to numbers python 
Python :: dropping columns in pandas 
Python :: cv2 videocapture program for python 
Python :: how to remove numbers from string in python dataframe 
Python :: python move item in list to end 
Python :: python datetime without seconds 
Python :: how to reverse a list in python 
Python :: round list of floats python 
Python :: python write txt utf8 
Python :: numpy how to calculate variance 
Python :: merge multiple csv files 
Python :: Local to ISO 8601 with TimeZone information (Python 3): 
Python :: draw a circle in python turtle 
Python :: how to input comma separated int values in python 
Python :: percentage of null values for every variable in dataframe 
Python :: make calculator in python 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =