All Projects → JuliaGeo → NetCDF.jl

JuliaGeo / NetCDF.jl

Licence: other
NetCDF support for the julia programming language

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to NetCDF.jl

GDAL.jl
Thin Julia wrapper for GDAL - Geospatial Data Abstraction Library
Stars: ✭ 78 (-23.53%)
Mutual labels:  geo, geospatial, raster, io
Rioxarray
geospatial xarray extension powered by rasterio
Stars: ✭ 148 (+45.1%)
Mutual labels:  geospatial, raster, netcdf
Shapefile.jl
Parsing .shp files in Julia
Stars: ✭ 40 (-60.78%)
Mutual labels:  geo, geospatial, io
GeoJSON.jl
Utilities for working with GeoJSON data in Julia
Stars: ✭ 46 (-54.9%)
Mutual labels:  geo, geospatial, io
georaster-layer-for-leaflet
Display GeoTIFFs and soon other types of raster on your Leaflet Map
Stars: ✭ 168 (+64.71%)
Mutual labels:  geo, geospatial, raster
GeoArrays.jl
Simple geographical raster interaction built on top of ArchGDAL, GDAL and CoordinateTransformations
Stars: ✭ 42 (-58.82%)
Mutual labels:  geo, raster, io
Proj4.jl
Julia wrapper for the PROJ cartographic projections library
Stars: ✭ 23 (-77.45%)
Mutual labels:  geo, geospatial
Geo On Fire
A library to create high performance geolocation queries for Firebase. Checkout the demos: https://run.plnkr.co/plunks/AYaN8ABEDcMntgbJyLVW/ and https://run.plnkr.co/plunks/xJgstAvXYcp0w7MbOOjm/
Stars: ✭ 54 (-47.06%)
Mutual labels:  geo, geospatial
awesome-geospatial-list
A curated list of geospatial tools, data, tutorials, information, and more
Stars: ✭ 32 (-68.63%)
Mutual labels:  geospatial, raster
Examples
Self-contained examples for the legacy Maps API for JavaScript.
Stars: ✭ 78 (-23.53%)
Mutual labels:  geo, geospatial
Solaris
CosmiQ Works Geospatial Machine Learning Analysis Toolkit
Stars: ✭ 290 (+184.31%)
Mutual labels:  geo, geospatial
Editor
An open source visual editor for the 'Mapbox Style Specification'
Stars: ✭ 1,167 (+1044.12%)
Mutual labels:  geo, geospatial
Geoswift
The Swift Geometry Engine.
Stars: ✭ 1,267 (+1142.16%)
Mutual labels:  geo, geospatial
Go Geom
Package geom implements efficient geometry types for geospatial applications.
Stars: ✭ 456 (+347.06%)
Mutual labels:  geo, geospatial
Mapsui
Mapsui is a .NET Map component for WPF, Xamarin.Forms, Xamarin.Android, Xamarin.iOS and UWP
Stars: ✭ 447 (+338.24%)
Mutual labels:  geo, geospatial
Orb
Types and utilities for working with 2d geometry in Golang
Stars: ✭ 378 (+270.59%)
Mutual labels:  geo, geospatial
Simplification
Very fast LineString simplification using RDP or Visvalingam-Whyatt and a Rust binary
Stars: ✭ 78 (-23.53%)
Mutual labels:  geo, geospatial
Awesome Gis
😎Awesome GIS is a collection of geospatial related sources, including cartographic tools, geoanalysis tools, developer tools, data, conference & communities, news, massive open online course, some amazing map sites, and more.
Stars: ✭ 2,582 (+2431.37%)
Mutual labels:  geo, geospatial
Openrailwaymap
An OpenStreetMap-based project for creating a map of the world's railway infrastructure.
Stars: ✭ 150 (+47.06%)
Mutual labels:  geo, geospatial
Geostats.jl
An extensible framework for high-performance geostatistics in Julia
Stars: ✭ 222 (+117.65%)
Mutual labels:  geo, geospatial

NetCDF.jl

Documentation Build Status

NetCDF support for the Julia programming language, there is a high-level and a medium-level interface for writing and reading netcdf files.

Installation

pkg> add NetCDF

Quickstart

First, load the library:

using NetCDF

The high-level interface is quite similar to the Matlab NetCDF interface, reading files is done by:

x = ncread("myfile.nc", "Radiation")

which will read the variable called "Radiation" from the file "myfile.nc". General information can be gained by using

ncinfo(filename)

which gives an overview of the dimensions, variables and attributes stored in the file.

filename = "myfile.nc"
varname  = "var1"
attribs  = Dict("units"   => "mm/d",
                "data_min" => 0.0,
                "data_max" => 87.0)

Creating variables and files is done by using the nccreate command:

nccreate(filename, varname, "x1", collect(11:20), "t", 20, Dict("units"=>"s"), atts=attribs)

This will create the variable called var1 in the file myfile.nc. The attributes defined in the Dict attribs are written to the file and are associated with the newly created variable. The dimensions "x1" and "t" of the variable are called "x1" and "t" in this example. If the dimensions do not exist yet in the file, they will be created. The dimension "x1" will be of length 10 and have the values 11..20, and the dimension "t" will have length 20 and the attribute "units" with the value "s".

Now we can write data to the file:

d = rand(10, 20)
ncwrite(d, filename, varname)

The full documentation can be found here

An alternative interface for reading NetCDF files can be found here: https://github.com/Alexander-Barth/NCDatasets.jl

DiskArray interface

As of version 0.9 we provide an interface to DiskArrays.jl, which lets you treat NetCDF variables as Julia AbstractArrays. Special methods for accessing, reading slices and reductions and broadcasting are implemented, so that working with the arrays should be efficient.

So the following returns a lazy AbstractArray container referencing the data in the variable.

v = NetCDF.open(filename, varname)

Credits

This package was originally started and is mostly maintained by Fabian Gans ([email protected]). The automatic C wrapper generator was contributed by Martijn Visser (https://github.com/visr). Many thanks to several people who contributed bug fixes and enhancements.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].