This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import requests | |
import xarray as xr | |
import netCDF4 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from cartopy.mpl.ticker import LongitudeFormatter, LatitudeFormatter | |
from matplotlib.cm import get_cmap | |
import cartopy.crs as ccrs | |
import cartopy.feature as cf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
import xarray as xr | |
import matplotlib.pyplot as plt | |
with xr.open_dataset('hgt.2020.nc') as ds: | |
ds.drop_vars('time_bnds') | |
hgt = ds.hgt | |
am, bm,am_mean,bm_mean,cm, fase =0,0,0,0,0,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
from numpy.linalg import inv | |
from scipy import linalg | |
df = pd.read_table('DataEjercicio7', delimiter='\t',decimal=',') | |
matrix1 = df.loc[:, ['2', '3', '4']] | |
#matrix1.astype(float) | |
#matrix1 = matrix1.values |