Questions tagged [netcdf]

NetCDF (Network Common Data Form) is a set of software libraries and self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.

Filter by
Sorted by
Tagged with
-1
votes
0answers
19 views

Partial correlation map [closed]

I am interested in creating a partial correlation map using python. That is, showing which variable (x1...xn) has more effect to y. Example: I have a netcdf of temperature downloaded from NCEP-...
1
vote
0answers
17 views

Cannot visualize xarray dataframe after converting to NetCDF

I am trying to convert sample.csv dataframe - link no NetCDF here is what I did import xarray as xr import pandas as pd dfcsv=pd.read_csv('sample.csv') dfcsv=dfcsv.set_index(['latitude','longitude','...
0
votes
2answers
63 views

QGIS problem loading NetCDF files

I recently installed QGIS 3.10 and have been unable to load a NetCDF file created by GMT. GMT *.grd and *.nc files are not listed the "Add Raster Layer" file type dropdown. The error I get when ...
0
votes
0answers
16 views

Is it possible to have one layer with multiple bands instead of multiple layers with single bands in GeoServer?

I need to be able to query dozens of different weather parameters simultaneously by coordinate. Any latitude/longitude is a valid query parameter - the data is not confined to a list of locations. My ...
0
votes
1answer
33 views

How to install NetCDF plugin to GeoServer

From the GeoServer manual: https://docs.geoserver.org/stable/en/user/extensions/netcdf/netcdf.html To add a NetCDF data store the user must go to Stores –> Add New Store –> NetCDF. In my install (...
1
vote
0answers
16 views

Adding NetCDF files to Mosaic - no coordinate system

I have some NetCDF files that are displaying correctly in ArcGIS using the 'Make NetCDF Raster Layer'. The properties show an undefined spatial reference, but reads the eastings and northings to put ...
1
vote
1answer
31 views

NetCDF hourly data to year raster layers (using Python)

Having a NetCDF with a 'time', 'lat' and 'lon' dimension, where time is hourly during a year and the variable to extract is temperature, how do I calculate mean temperature throughout the year using ...
2
votes
0answers
27 views

QGIS-Feature “Generate band name with NetCDF EXTRA_DIM” - Which NetCDF attribute/variable does that refer to?

According to the changelog of QGIS, the feature "Generate band name with NetCDF EXTRA_DIM" was implemented already in version 2.4. The description says: The NetCDF provided extra dimensional ...
0
votes
1answer
25 views

Export dimensions of NetCDF as individual rasters in ArcMap

I have a NetCDF file in ArcMap that I created using the Make NetCDF Raster Layer tool. The band dimension of interest is the variable "time", which has 316 grids. I need each individual grid as its ...
0
votes
1answer
40 views

QGIS gdal_contour not respecting scale_factor/offset for netCDF

I am working with some netCDF files and want to import netCDF parameter's data as a Raster and build a contour layer for it. I am using gdal_contour for this. When I import the netCDF and choose a ...
0
votes
0answers
43 views

Extract value of a latitude/longitude for a NETCDF4 file containing vertex_longitude and vertex_latitude values for OCO-2 product [closed]

I had downloaded a file from https://co2.jpl.nasa.gov/build/?dataset=OCO2L2Stdv8&product=FULL#download The data is freely available and you can download it without registering It is a Netcdf4 ...
4
votes
1answer
51 views

Converting NOAA's World Ocean Database NetCDF files to tabular data using Python

I'm trying to convert variables from NetCDF files to tabular data, but can't understand how to group observations by some index or key variable. For example, when loading data from WOD queries using ...
0
votes
0answers
18 views

Overlap .nc file layer and shapefile layer

Hello all. I have an .nc file with grid data of dimensions 90,111. I want to overlap this dataset layer with a shapefile I have. I've converted the .nc file to a raster dataset and saved it as a tiff ...
1
vote
0answers
28 views

GeoServer WMS using NetCDF plugin and GRIB2 time dimension

I am attempting to use GeoServer with the NetCDF plugin to create a WMS-T (WMS with time dimension) service. My input is a GRIB2 file containing a single parameter (temperature) and multiple forecast ...
0
votes
0answers
24 views

Working with NetCDF rotated pole data in ArcGIS

I would like to work in ArcGIS Desktop (v10.6.1) or Pro with data from the UK Climate Predictions (UKCP18), which are supplied in NetCDF format. In particular, I would like to use the 2.2km resolution ...
1
vote
0answers
30 views

CRS errors whed reading MODIS NetCDF file

I am working with MODIS EVI 250m file in NetCDF format and trying to get the stack of EVI layers. So, I do: # check nc-file for variables names nc = nc_open(flist[1], write=FALSE, readunlim=TRUE, ...
0
votes
1answer
71 views

Writing Python variable to NetCDF gives TypeError

I'm trying to write a Python variable to a new NetCDF file in Linux. Code Excerpt import sys import numpy as np from numpy import arange, dtype import netCDF4 as nc4 from netCDF4 import Dataset ...
3
votes
1answer
69 views

QGIS Mesh Calculator output file (.dat)

I want to understand Mesh Calculator in QGIS 3.8.3 to make calculation between two variables of a NetCDF file. Each of these variables has [lon, lat, time] dimensions. The calculation is done smoothly ...
2
votes
1answer
117 views

Using xarray to resample and merge two datasets

I have one dataset of satellite based solar induced fluorescence (SIF) and one of modeled precipitation. I want to compare precipitation to SIF on a per pixel basis in my study area. My two datasets ...
1
vote
1answer
104 views

Time series of NetCDF data in QGIS?

I am a newbie, trying to import a NetCDF file of satellite chlorophyll imagery into QGIS 3.8 (WIndows Standalone install). I have added the raster layer and view the individual layers under "...
1
vote
1answer
42 views

Meaning of 'bnds' and dimensions in OCO2 v9 L3 data product

I cannot seem to understand what, for example, 'lat_bnds' means? Same go for 'lon_bnds', lat/lon_dimensions. These values come from the structurally flat NCDF4, sourced from the JPL as a custom ...
0
votes
0answers
22 views

NetCDF files in QGIS mean of 60 months, the program isn't recognizing subset files

I am trying to merge the files inside an NetCDF file in QGIS,all with same Longitude and latitude size and resolution, but this error is showing; Versión de QGIS: 3.8.3-Zanzibar Revisión del código ...
1
vote
0answers
21 views

GeoServer and NetCDF - Gap around prime meridian

I'm attempting to use GeoServer to publish NetCDF layers. So far has been working well using EPSG:4326 (the native srs) as reference system in the GetMap request. In this case the image from GeoServer ...
0
votes
1answer
106 views

How can I use GDAL in Python to Convert NetCDF to ASCII - and flip the latitudes?

I have a NetCDF file containing bathymetry. I am using the GDAL and NETCDF4 libraries to export the file to ESRI ASCII using the 'AAIGrid' format. However, a common problem is the latitudes are in the ...
0
votes
0answers
27 views

Using rotated projection in NetCDF file?

Could anyone show me a working example of a NetCDF file header with a rotated Cartesian projection where the datum is WGS84? From Spatial reference for netCDF data I see that coordinates can be ...
0
votes
0answers
35 views

Converting from netCDF to GeoTiff using gdal_translate

gdal_translate netcdf_file.nc output.tif I'm trying to generate a GeoTiff using this command, and it works... kind of. The output tif image is just black and white, and I'd like actual colors on the ...
0
votes
0answers
14 views

Unable to export each time slice from a NetCDF layer as a single raster because NetCDF file does not show up

I am using ArcGIS for the first time and am trying to replicate exactly what has been done here. Step 5 asks to "Select the Input_NetCDF_layer and an Output Folder. Click OK to run the tool." - ...
0
votes
1answer
55 views

GeoServer REST API for NetCDF in Python

I am trying to programmatically edit the dimension variable in GeoServer for 200+ NetCDF's. This is how I am trying it: from geoserver.catalog import Catalog cat = Catalog("http://localhost:8080/...
1
vote
1answer
65 views

Extract raster files from VIIRS VNP02 files provided in NetCDF format?

I work in R with HDF files and sometimes i use HEG tool to deal with HDF files. But now NASA has introduced something else that is NetCDF files with VIIRS VNP02 data. I want to extract I04 and I05 ...
1
vote
2answers
77 views

NetCDF time aggregation using R stars package

I have a monthly temperature netCDF dataset with aprox 20 years and I'd like to calculate a monthly climatology (average of all Jan, Feb, Mar...). I know I can do this with stackapply from package ...
0
votes
0answers
54 views

QGIS: NetCDF file not aligned with OpenStreetMap

I want to show a 2m height temperature layer that covers most of Canada and northern United States. The data itself is initially a .grib2 file obtainable from the Gov of Canada free public weather ...
1
vote
1answer
133 views

Reproject NetCDF file using gdalwarp?

I'm trying to convert this file to EPSG:3857 with this command: gdalwarp -t_srs EPSG:3857 S2A_rhow_l2r.nc test-proc.nc Warning 1: No UNIDATA NC_GLOBAL:Conventions attribute Warning 1: Several ...
0
votes
1answer
39 views

In QGIS: NetCDF image too pixelated

When i import NetCDF file (.nc) to QGIS then I get a picture that consists of quite big pixels. Is it somehow possible to soften those pixels to get something like this:
1
vote
1answer
27 views

Exporting NetCDF layer with defined colors using QGIS?

I have average wind speed NetCDF file (.nc) that I imported to QGIS. Then I defined colors for wind speeds in equal interval (3, 3.5, 4, 4.5 etc). Now I would like to save this colored map for sharing ...
0
votes
0answers
30 views

Converting Level-2 NEXRAD to NetCDF

I need to convert Level-2 NEXRAD files (from https://mesonet-nexrad.agron.iastate.edu/level2/raw/) to NetCDF. I am currently on a Linux system. Has anyone had any success doing this?
1
vote
1answer
41 views

NetCDF: Why store coordinates as matrix

I am reading the documentation of Python library xarray After having opened multiple NetCDFs and explored their contents, I see that some files store their coordinates as a matrix and some store ...
0
votes
0answers
292 views

Read NetCDF4 variable attributes and write them to variables of new file

I have a NetCDF4 file input.nc4 with variables alpha, beta, gamma. I want to create a new NetCDF4 file output.nc4 with variable names alpha_new, beta_new, gamma_new. The attributes of alpha_new, ...
0
votes
0answers
63 views

Using ArcPy 'Make NetCDF Raster Layer' tool for netCDF files composed of various sub-groups?

I have some netCDF data that I have been trying to import into ArcMap with ArcPy using the Make NetCDF Raster Layer tool. This should be straightforward, except I believe the structure of my NC files ...
1
vote
0answers
16 views

Band rerendering netcdf file by variable not time. Using gdal, nco, cdo

I want to average netcdf data (band1: precipitation) in bins (i.e. 0.01,0.10,0.25,0.5,0.75,1.0, etc.). What nco, gdal, or nco tools can I use to regrid the netcdf file this way?
0
votes
0answers
63 views

PostGIS Out-DB Rasters - Segmentation Fault

I am loading data from a NETCDF file with raster2pgsql, which I would like to keep as an out-DB raster. The command I use is (note the -R option): raster2pgsql -s 96482 -I -d -F -R NETCDF:"/home/...
3
votes
1answer
185 views

Value NAN in netcdf4 file for lat&lon using python

I have two file netcdf4 ( latlon and other file without latlon) i open the 2 file in the same code and i choose one variable and the two variable lon and lat when i write lon i have the value nan i ...
1
vote
0answers
71 views

Convert Geo Coordinates System X/Y to lat &lon from netCDF4 file using python 3

I have netcdf4 file with some variables like: Geo Coordinates System X/Y. I need to convert it to lat/lon. How can i do that with python? This information from my netCDF4 file: import numpy as ...
0
votes
0answers
28 views

Shift time in NetCDF files

I have a folder which contains (monthly) nc files from January 1980 to December 2015 with hourly data for different compounds (such as PM2.5, O3, NO2, NO, etc).The time is in UTC as follows: int ...
0
votes
0answers
63 views

Daily averages in local time from UTC

It has been almost 2 weeks since I started getting familiar with netCDF files and operators (NCO) and climate data operators (cdo) and I am not an experienced programmer. I have a folder which ...
3
votes
1answer
319 views

Read numerical value of variable in NetCDF4 using Python

I need to undestand how I can get the numerical value of one channel IR_108 ( variable) in NetCDF4 and some other data: import numpy as np from netCDF4 import Dataset path = '/home/data/...
2
votes
1answer
347 views

Extracting lat , long & numeric value of one pixel for all variables in NetCDF4 file using Python?

I have an application with wxpython in which I can read and show NetCDF4 file and some information like x y coordinates. what I need is the numerical value or pixel value for the variable air dep ...
1
vote
0answers
201 views

Converting coordinates using NCO/CDO

I have a NetCDF file of ice velocities of the Greenland ice sheet but they are in polar stereographic coordinates (y: -655750 to -3355750 and x: -639750 to 855750 meters). I am wondering if there ...
0
votes
1answer
154 views

GDAL Translation gives incorrect GeoTIFF Projection

I am very new to GIS. I am trying to translate a single band of a NetCDF file to a GeoTIFF file, and then load it up into QGIS and have it overlap with a shapefile of the US. However, when I load up ...
0
votes
1answer
168 views

Exporting shapefiles to NetCDF Format using QGIS?

I'm completely new to using GIS but I've got some shapefiles that I really need in NetCDF format for further analysis. Does anyone know if this is possible in QGIS? I know that you can do this ...
0
votes
0answers
51 views

Automating Model Builder (ArcMap) for NetCDF Processing

I have a NetCDF with 30+ years of monthly data from which I want to find the climatological normal. Using the NetCDF tutorial I found through NOAA (https://www.esrl.noaa.gov/psd/data/gridded_help/...