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
0
votes
0answers
10 views

Extracting Values from Multidimensional Raster

I am currently doing my dissertation on hurricanes and their relationship with Sea Surface Temperature. I am using a NetCDF file with dimensions: latitude, longitude, and time I need to extract a ...
0
votes
1answer
19 views

How do I run Panoply (from NASA GISS) on Windows 10?

I am unable to run Panoply (from NASA GISS) to view NetCDF files. When I try to run it, it tells me that I need Java Runtime Environment 9, but the latest version of JAVA from the Oracle website is 8....
5
votes
1answer
80 views

Converting NetCDF files to geo-referenced GeoTIFF

I have a NetCDF .nc file that gives me an initial error Warning 1: No UNIDATA NC_GLOBAL:Conventions attribute from gdalinfo. After searching I found out this relates to NetCDF files having no inherent ...
0
votes
0answers
33 views

Using R NetCDF raster stack is missing its CRS, how can I assign one?

The data I am using was not generated by me, however, I am stuck with using it anyways. My issue is, that in R, the CRS of the raster stack is missing or NA. If I open it with ArcGIS or Unidata (!the ...
0
votes
1answer
29 views

File conversion from .nc to .tiff

I'm downloading .nc file from here: https://www.cpc.ncep.noaa.gov/products/CFSv2/dataInd3/glbPrecMon.nc I want to convert .nc file to .tiff file. I used raster to read file its not working. It's ...
2
votes
0answers
36 views

Configuring NetCDF for GeoServer

I have multidimensional meteodata I want to upload on GeoServer (2.17) using NetCDF format. So far, I don't care about projection other than WGS84. Following a documentation I tried to create in R ...
0
votes
0answers
23 views

Translate to GTiff from NOAA nc file

I have level 2 of NOAA nc file. The data is in https://1drv.ms/u/s!AjXAWS5maHffhyqaxqd61ok-SFsY?e=mcUdnE. I want to open the file in QGIS or GRASS GIS. But, they don't recognize it. So, I use GDAL. I ...
0
votes
1answer
19 views

Creating a Rectangle in GIS using JSON

I am trying to use a USGS product called AppEARS to download data. I want all data across the world, but the interface wants me to specify a region. How can I write a JSON file that will allow me to ...
1
vote
1answer
34 views

Is such way to import the NetCDF file in R correct?

Recently, I asked the same question on the Stack Overflow forum and was directed to this forum: https://stackoverflow.com/questions/65467765/is-such-way-to-import-the-netcdf-file-in-r-correct. To sum ...
3
votes
1answer
208 views

Opening NetCDF file in QGIS with corresponding coordinate system

I have a NetCDF file with 3 variables: a 2D lat grid (degrees) a 2D lon grid (degrees) a 2D data grid I am having troubles opening this file in QGIS with its corresponding latitude and longitude ...
0
votes
2answers
78 views

Downloading CHIRPS data sets using R

I have this code right here # Load package heavyRain and RCurl library(heavyRain) library(RCurl) #Assigning url and destfile url <- "ftp://chg-ftpout.geog.ucsb.edu/pub/org/chg/products/...
1
vote
1answer
59 views

Converting NetCDF WRF weather forecasts from a custom Lambert Conformal Conical projection to WSG84

I'm having some trouble reading a WRF weather forecast prediction file where the coordinates are in a custom Lambert Conformal Conical projection. My final goal is to get the weather forecast a a ...
2
votes
1answer
47 views

R: How to write CRS information correctly to NetCDF?

As the title says, I'm struggling with writing the CRS of a multi layer raster stack to a NetCDF file using a custom package. This package uses the functions of the ncdf4-package. But the written .nc ...
2
votes
0answers
67 views

Create NetCDF file with irregular rotated lat-lon grid for QGIS

I want to write data to a NetCDF file with an irregular rotated lot-lan coordinate grid and open it in QGIS. The data is on an irregular grid which follows a satellite swath. The grid is irregular in ...
3
votes
1answer
65 views

python rioxarray.clip masking netcdf data with a polygon returns all nan

My question is similar to what others have already asked but the posted solutions haven't worked for me. The similar posts are masking a netcdf file using a shapefile of points with rioxarray and how ...
0
votes
0answers
10 views

How to change the resolution of NetCDF data and start at a specific point in GDAL

I have temperature data which is in NetCDF format and lat=1801 lon=3600 and I want to convert it to a NetCDF file with lat=360 and lon=720. In other words, I want to change the resolution of my data ...
3
votes
1answer
41 views

Fitting the plotted pixels to the country border in QGIS

I have created a plot in Python 3.7 over Alaska. Firstly, the pixels covered a lot more than shown in the image (below). Now I have set the lat lon extend to fit the plot 'better'. Is there a way to ...
0
votes
1answer
57 views

How can I add data from points to a raster file?

I have a raster layer and a shape layer consisting of points. I want to add the data from my points to the raster layer as I need this format. Is there a way in QGIS (preferably), Python or R to add ...
1
vote
1answer
70 views

Convert CSV file to NetCDF file

I have a CSV file with climate data, latitude, and longitude coordinates. RH PREC TEMP WS lat lon 65.93 1.51 287.43 4.67 63.31 177.62 70.43 1.89 285.32 1.54 ...
0
votes
0answers
21 views

Imported .nc rasters not editable in ArcGIS Pro

I imported .nc files from the OB.DAAC website and used the make NetCDF a new raster tool in ArcGIS Pro. These show up fine but they are not editable. I right clicked on the geodatabase and added a new ...
1
vote
1answer
29 views

CF compliance - why are certain variables are required if WKT defined?

I'm trying to make a NetCDF CF-compliant, where the crs variable uses a WKT string. I'm using this compliance checker, testing against CF 1.7. I'm getting errors that certain attributes should be ...
0
votes
0answers
13 views

CSV to NetCDF Python HDF error

I'm basically cribbing code from Esri and other online sources to convert a CSV to a NetCDF. I get an HDF error on writing values to the variables. X and Y values are UTM coordinates if that matters. ...
1
vote
1answer
36 views

Cropping NetCDF by NCO

I would like to crop my NetCDF file for a specific location using NCO. However, I am quite lost in the documentation. So far, I've tried this: ncks -v Precipitation_Flux -d lon,-18.751,-7.684314, -d ...
1
vote
0answers
45 views

Decreasing resolution of NetCDF data with GDAL

I have wind speed data which is in NetCDF format and lat=4320 lon=8640 and I want to convert it to a NetCDF file with lat=360 and lon=720. In other words, I want to change the resolution of my data ...
0
votes
2answers
63 views

Extract pixel values of dataset (NetCDF) based on shapefile in R

I want to extract certain pixel values from a raster stack/brick from one layer (there are two Layers stored in the data - RSS_TOP and RSS_SUB --> if possible I would take both, or separately as ...
5
votes
1answer
54 views

Mapping a NetCDF in QGIS in the correct location on Earth

I was wondering if anyone has encountered NetCDFs being mapped in the "wrong" location by QGIS? I'm using QGIS 3.16 and I've tried 2.18 too. I think the problem has to do with the longitude ...
1
vote
2answers
61 views

Masking a NetCDF file using a shapefile of points with rioxarray

I took the proposed solution from this question (How to mask NetCDF time series data from a shapefile in Python?) and tried to implement it. However, whenever I apply this solution it seems to set all ...
1
vote
1answer
29 views

Using gdal.Warp() on netCDF file. Simple case fails

I'm using the python API to GDAL to try to do a simple geographic warp of a netCDF4 satellite file to a small sub region. My python program fails to produce any output but does not throw any ...
1
vote
1answer
40 views

Strange NetCDF file with Lat / Long as 2D dimensions?

I have this NetCDF file from Germany DWD: https://opendata.dwd.de/climate_environment/CDC/grids_germany/daily/Project_TRY/air_temperature_mean/TT_201001_daymean.nc.gz However, I don't know why this ...
1
vote
0answers
24 views

Cut NetCDF files by shapefile [duplicate]

I have a large dataset of global .nc files and I am trying to clip them to a smaller area. I have this area stored as a .shp file. I have tried using GDAL from QGIS but needs to do this by converting ...
0
votes
1answer
59 views

How to extract pixel values of a polygon shape, using R for annual (365 files per year), daily NetCDF raster files?

I am trying to extract a daily value from a study area (given polygon). The files are provided as annual NetCDF files (365 of them per year) for a daily value. However, with GIS programs it would be ...
0
votes
0answers
19 views

Adding timestamp to NetCDF xarray dataset

I am new to working with NetCDF datasets and Xarray in Python. I have an xarray dataset made from 100 TIFF raster files: As you can see there are 100 data variables, that are essentially the ...
1
vote
0answers
33 views

NetCDF projection conversion to EPSG3857 is cropped in QGIS

I am using QGIS and PyQGIS to transform NetCDF files projection to EPSG:3857. My ultimate goal is export it as raster (TIFF or PNG) to display in Mapbox. When first imported, the NetCDF file itself ...
2
votes
1answer
38 views

NetCDF get_dims too many values to unpack

I am working with a NetCDF file (.nc) - 600+MB. import netCDF4 from netCDF4 import num2date import numpy as np import os import pandas as pd # Open netCDF4 file file_location = '2m dewpoint ...
0
votes
0answers
5 views

Missing grib metadata when using CDO tool to invert Lat axis from South-North to North-South?

I have a grib file (it is quite big) and I tried to use cdo to copy it to another grib file. cdo -R copy ws10m_mean24h.grib test.grib However, in this diff: https://www.diffchecker.com/w25sayVz it ...
0
votes
0answers
32 views

Converting multiband .nc files using R to upload to Google Earth Engine

I am new to using .nc files and am struggling to get the output I need in GeoTIFF format to upload to GEE. I have downloaded the 2015 zip file of fire data from the CCI archive here: http://data.ceda....
0
votes
0answers
29 views

Convert a NetCDF layer to GeoTIFF image using gdal_translate, applying mask from another layer

My objective is to convert a layer in a NetCDF file to GeoTIFF image with gdal_translate, applying mask from another layer in the same NetCDF file. Sample NetCDF file: sample file on dropbox (~ 6Mb) ...
1
vote
0answers
43 views

Raster becomes invisible after changing CRS in QGIS

I am having trouble displaying this netcdf file in QGIS. The file holds u and v components of wind data from NCEP Climate Forecast System. When I load the data, it displays over the ocean near Africa ...
1
vote
1answer
33 views

How to visualize a NetCDF Dataset

Suppose I have a rather large NetCDF file that I open as a dataset using xarray. import xarray nc_in = r"....\D_P_WGS84_comp.nc" nc_ds = xarray.open_dataset(nc_in) It is composed of ...
1
vote
1answer
109 views

Adding compression to a NetCDF file using xarray

I have a raster that I am trying to compress and convert to a NetCDF format with compression level = 9 using the xarray package. I assume that the compression is added using the encoding parameter as ...
1
vote
0answers
44 views

NetCDF to raster layer, spacing in their coordinate values

I'm trying to convert a NetCDF file to a raster layer in ArcGIS Pro, in order to make a space-time animation. But I'm getting a error message that I don't know how to solve: ERROR 000276: One or both ...
3
votes
3answers
201 views

QGIS: Error loading NetCDF files

Background: At 3.14.16, using the 64-bit network installer, under Windows 10, I am unable to load any NetCDF files. For example, this instructional blog post: https://opengislab.com/blog/2020/10/10/...
0
votes
0answers
147 views

How to extract multiple values from specific coordinates and dates from a NetCDF time-series in R?

I need to extract information of a series of oceanographical variables in netCDF format for specific coordinates, each coordinate in a specific date as well. I'm using R and this is an example of my ...
0
votes
0answers
37 views

Regrid a NetCDF file to match another without multiplication of pixels (CDO or R)

I have a NetCDF file (file1.nc) displaying rasterized information for a series of point locations. Each pixel with a number is surrounded by no data (see the colored pixels in the image below). I need ...
0
votes
0answers
18 views

Performing calculations using raster and NetCDF formats

I have a raster .bil file (with ground elevation data in m) and a NetCDF .nc file (with groundwater depth data in cm) and I need to use both of these files to calculate groundwater heads (in m): ...
0
votes
2answers
45 views

Regridding a rasterbrick in R using bilinear interpolation

I have a rasterbrick (of monthly precipitation data from 1901 to 2018) and it is currently in a at a resolution of 0.5, 0.5 x,y. here are the details of the data: class : RasterBrick dimensions :...
1
vote
0answers
47 views

Pixel height and width in degrees

I am planning to create a NetCDF file from a script (Github). My shapefile is in GCS_WGS_1984 (this is one of the required files for the script). Now, the script requires to define the cell/pixel ...
0
votes
0answers
26 views

Saving multiple variables in a single NetCDF

I have a text file that contains different columns representing individual data variables. See sample data below: # NRECS: 5844 # DT: 24 # STARTDATE: 2000-01-01 00:00:00 # ALMA_OUTPUT: 0 # NVARS: 10 # ...
0
votes
0answers
15 views

Building NetCDF driver in GDAL within GRASS GIS

I am trying to import a NetCDF into Grass GIS. I am using MacOS and GRASS 7.8.4. The grass documentation states that: Both NetCDF import and export in GRASS GIS are basically driven by the GDAL ...
1
vote
1answer
93 views

CRS Error when clipping NetCDF using a shapefile

When trying to mask a NetCDF (a daily time series of 31 days) with the code below, I get the following error related to the part of writing the CRS to the rio NetCDF data: CRSError: The WKT could not ...

1
2 3 4 5
10