Skip to content

Instantly share code, notes, and snippets.

View nmathewa's full-sized avatar
🎯
Focusing

Nirmal Alex nmathewa

🎯
Focusing
  • Florida Institute of Technology
  • Melbourne, FL , USA
  • 06:20 (UTC -04:00)
View GitHub Profile
@nmathewa
nmathewa / reg_sci.py
Last active June 14, 2021 09:37
scipy spatial regridding
from scipy.interpolate import griddata
import matplotlib.pyplot as plt
import numpy as np
import xarray as xr
file = "your_ncfile.nc"
dset = xr.open_dataset(file)
@nmathewa
nmathewa / create.jl
Created January 5, 2022 07:17
create netcdf using julia
# Importing libraries
using NCDataFrame
using NCDatasets
# create an dnetcdf dataset
dset = NCDataset("test.nc","c")
# Writing attributes
dset.attrib["Author"] = "Julia NCdataset"
@nmathewa
nmathewa / read_net.jl
Created February 11, 2022 01:48
reading netcdf files (Julia)
using NCDataFrame
using NCDatasets
using PlotlyJS
using Pkg
using Statistics
using NaNStatistics
import NaNStatistics ; na=NaNStatistics
ds = NCDataset("ECMWF_ERA-40_subset.nc","r")
@nmathewa
nmathewa / subset.jl
Created March 1, 2022 07:30
julia subset data
using NCDataFrame
using NCDatasets
using Pkg
Pkg.add("IntervalSets")
using IntervalSets
using PlotlyJS
ds = NCDataset("ECMWF_ERA-40_subset.nc","r")