Questions tagged [grads]

The Grid Analysis and Display System (GrADS)

The Grid Analysis and Display System (GrADS) is a system for analysis and visualisation of gridded data in Earth sciences.

38 questions
3
votes
3 answers

Converting GrADS (.grd) to NetCDF (.nc)?

I have files which contains atmospheric data in 6 hrs intervals (4 files per day) in .grd format. I also have the concerned descriptor files (yyyymmddhh.ctl) . I can plot the data using using GrADS. But I need to convert these files into NetCDF…
3
votes
1 answer

Matlab fprint function with GrADS scripting

I am using Matlab to print a small text file (temp_script.exec) that will be used to run GrADS commands. The script looks like the following: 'reinit' 'open temp_ctl.ctl' 'set lon -100 -80' 'set lat 20 30' 'define prc = var' 'set sdfwrite…
FoxRyerson
  • 141
  • 1
  • 2
  • 5
2
votes
1 answer

Changing georeference or geolocation data on grib file

I have a grib file that covers a specific area of the globe (i.e. does not cover the whole world). I need to shift the latitude and longitude in it to a different area. It contains historical weather data. I am having difficulty finding where a grib…
2
votes
1 answer

How to position color bar in GrADS?

I am looking for a code which positions the color bar by itself. Here is graph: I used the set_pareas.gs script to fix the graphs in columns and color.gs script to color the plots. The color bar script is xcbar.gs. Here are the command…
Erincon
  • 360
  • 7
  • 20
2
votes
2 answers

Correlation map in GrADS

I am new in GrADS and I am trying to plot a field of correlation between two variables (Precipitation and Temperature) but I could not make it. I have tried with some libraries but it neither works. Can you help me with that?
Erincon
  • 360
  • 7
  • 20
1
vote
2 answers

How to access data NOAA data through GRADS?

I'm trying to get some DAP data from noaa, but can't figure out how to pass variables to it. I've looked and looked and haven't found how to just poke around at it with my browser. The data is located at…
Kyle Hotchkiss
  • 9,348
  • 18
  • 51
  • 81
1
vote
2 answers

How to read and convert GrADS flat binary format using R or python?

I have a GrADS formatted (Raw Binary) file with a control file as follows: dset data.bin undef -999. options template title Example data xdef 720 linear 0.25 0.50 ydef 360 linear -89.75 0.50 tdef 1 linear 00Z01JAN1990 1yr zdef 1 linear…
vempi
  • 11
  • 2
1
vote
2 answers

Opening multiple file in GrADS

Hopefully this question is simple and easy enough to be solved. I am having a trouble in opening the second file in GrADS. Suppose I have two files. The first is "sst06.ctl" and the second is "sst07.ctl", and within each files, there is only one…
GTC
  • 13
  • 1
  • 4
1
vote
2 answers

Create a NetCDF file with data masked to retain land points only

I have masked a NetCDF file using basemap.gs script in grads. Here is what I got using the mask: So, I would like to obtain a NetCDF file which only contains the continental data, can anyone help me with this?
Erincon
  • 360
  • 7
  • 20
1
vote
1 answer

Difference between gridded data and station data

I just started practicing GrADS tutorial. and I'm stuck at the first page which was about 'gridded data' and 'station data' What is the difference between gridded data and station data? Furthermore, when do we use gridded or station data?
Hyeseon Ko
  • 51
  • 3
1
vote
1 answer

How can I export data from GrADs to a .csv file or from NetCDF to .csv?

I'm having real difficulty with exporting data from GrADS to a .csv file although it should be really easy. The file in question is from the APHRODITE project relating to rainfall over Asia. Basically I can read this file into GrADS using: open…
AntonyDW
  • 289
  • 4
  • 16
1
vote
2 answers

Reading and writing binary files (GrADS) in fortran

I am running a model and writing the model output to a binary file (a GrADS *gra file) such that, for example: integer,parameter :: nvar =3 ,& !number of variables to be written to file nx=10,ny=10,& !number of girdboxes in lat…
SnowFrog
  • 1,122
  • 2
  • 17
  • 38
0
votes
0 answers

Error opening stroke character dataset in GrADS (Grid Analysis and Display system)

I am facing an error while executing a code to display one of the graphs inside the file model.ctl in GrADS. Landscape mode? ('n' for portrait): n GX Package Initialization: Size = 8.5 11 ga-> set display color white ga-> clear ga-> open…
0
votes
1 answer

How to fetch the data date wise from netCDF or .grd file in CDO software?

I have data files of min/max temperature in .grd or netCDF format. From these files, I want to fetch the data date wise for India lat/long points only using CDO or grADS software. The data format…
0
votes
1 answer

How do I fix this grads script?

This is my gs file. 'xloc = aminlocx(slp,lon=120,lon=135,lat=20,lat=30)' 'yloc = aminlocy(slp,lon=120,lon=135,lat=20,lat=30)' 'lonn = 39.58386 + 0.22522523*(xloc-1)' 'latt = -8.64826 + 0.22522523*(yloc-1)' 'lonmin = lonn-1' 'lonmax =…
1
2 3