[gradsusr] About drawing of NetCDF
Don Hooper
don.k.hooper at noaa.gov
Sun Jun 16 20:38:12 EDT 2024
Add to the Data Descriptor File (DDF) these 3 lines:
VARS 1
sea_surface_temperature=>sst 1 99 SST
ENDVARS
Thereafter, refer to the variable by the name sst.
I think the other name is too long for GRADS.
-Hoop
On 6/16/24 18:05, KMKW NORIO wrote:
>
> Dear Don,
>
> Thank you for your reply and advice.
>
> I couldn't find the reply from the archive.
>
> http://gradsusr.org/pipermail/gradsusr/2024-June/043501.html
>
> I'm sorry for replying to your direct email.
>
> To use xdfopen, I created the xclt file below.
>
> $ cat jx_sst.xctl
>
> dset 20240430000000-JAXA-L2P_GHRSST-SSTskin-H09_AHI_NRT-v2.1-v02.0-fv01.0.nc
>
> options yrev
>
> title SST
>
> dtype netcdf
>
> xdef lon 6000 linear 80.0 0.02
>
> ydef lat 6000 linear -59.99 0.02
>
> ga-> set display color white
>
> ga-> set grads off
>
> ga-> set gxout grfill
>
> ga-> xdfopen jx_sst.xctl
>
> Scanning Descriptor File: jx_sst.xctl
>
> SDF file
> 20240430000000-JAXA-L2P_GHRSST-SSTskin-H09_AHI_NRT-v2.1-v02.0-fv01.0.nc is
> open as file 1
>
> LON set to 80 199.98
>
> LAT set to -60 60
>
> LEV set to 0 0
>
> Time values set: 2024:4:30:0 2024:4:30:0
>
> E set to 1 1
>
> ga-> d sea_surface_temperature
>
> Syntax Error: Invalid Operand
>
> 'sea_surface_tempe' not a variable or function name
>
> Error ocurred at column 1
>
> DISPLAY error: Invalid expression
>
> Expression = sea_surface_temperature
>
> How can I set the variables to resolve this error?
>
> The results of ncdump are as follows:
>
> ncdump -h
> 20240430000000-JAXA-L2P_GHRSST-SSTskin-H09_AHI_NRT-v2.1-v02.0-fv01.0.nc
>
> short sea_surface_temperature(time, lat, lon) ;
>
> When I tried plotting other variables such lat , they plotted fine (lon 80-200).
>
> The file upload may not have been successful.
>
> I uploaded to the following folder again and added two more files.
>
> https://www.dropbox.com/scl/fo/x736912hd51ugrjmsiykm/ANfrJTcgOFsL6Mh_lLnn630?rlkey=xp8xttdysvhihc1iy4prv1nn0&st=cnteg9yp&dl=0
>
> Best Regards,
>
> Norio
>
More information about the gradsusr
mailing list