[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #RUT-288421]: trying to read a global attribute in netcdf file



Hello John,

I'm afraid I can't provide an example specific to the file/data you are working 
with, but I can provide a link to our example files which show how to read and 
write various types of data using Fortran.

* https://github.com/Unidata/netcdf-fortran/tree/master/examples

This directory contains examples for both F77 and F90 for reading/writing 
netCDF data using the fortran interface.

I hope it helps,

-Ward

> Below is a section of the netcdf file global attributes which I am trying
> to read with fortran. Could you set me example code to read in the two
> radar constant values?
> 
> Thanks much,
> 
> John
> 
> 
> 
> // global attributes:
> 
> :Description = "Radar time series reformatted by
> Ts2NetCDF\n",
> 
> "  This is the IWRF format\n",
> 
> "  Starting Sample =0, Ending Sample =17849,   Start
> Gate= 0, End Gate = 994\n",
> 
> "  Azimuth = 41.05, Elevation = 1.56\n",
> 
> "" ;
> 
> :cal_radar_constant_h = 69.1658f ;
> 
> :cal_radar_constant_v = 69.8758f ;
> 
> --
> John Hubbert Ph.D.
> Project Engineer
> National Center for Atmospheric Research
> Boulder, CO
> 303 497 2041 W
> 303 319 6228 C
> 
> 


Ticket Details
===================
Ticket ID: RUT-288421
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.