Great thank you! I am working on this idea now. It is not only the
attribute name that needs to be changed from "elem" and "lines" to "lat"
and "lon," but the values are different as well. I have added the lat and
lon variables to the same netcdf file that contains the rainfall data. This
gives me a Netcdf file with "elem" and "lines" dimensions with variables
"lat", "lon","elem","lines", and "rain." Now I need to make the dimensions
the lat lon variables instead of the elem and lines. If you have any
additional feedback on this let me know, I am still working through it, but
could use some additional guidance.
Thank you,
Ashley
On Wed, May 16, 2018 at 2:25 AM, Kaduk, Jorg D. (Dr.) <jk61@xxxxxxxxxxxxxxx>
wrote:
> Hello Ashley,
>
> I do not know about the projection, but to manipulate netcdf files, I
> would recommend the netcdf operators nco, THey allow you to change variable
> names.
>
> Else you can change the header with a combination of ncdump and ncgen, see:
>
> https://www.unidata.ucar.edu/software/netcdf/workshops/
> 2009/utilities/index.html
> Best wishes,
>
> Joerg
> ------------------------------
> *From:* netcdfgroup-bounces@xxxxxxxxxxxxxxxx <netcdfgroup-bounces@unidata.
> ucar.edu> on behalf of Ashley Ballard <ashleyta@xxxxxx>
> *Sent:* 15 May 2018 23:56:43
> *To:* netcdfgroup@xxxxxxxxxxxxxxxx
> *Subject:* [netcdfgroup] NetCDF Dimensions As Variables
>
> Good afternoon,
>
> I am working with the 15 minute Hydro Estimator data (netCDF files). The
> 15 minute NC files are available here:
> ftp://satepsanone.nesdis.noaa.gov/HydroEst/GHE The dimensions of these
> files are "elem" and "lines" not the typical "lat" and "lon." Instead the
> "lat and "lon" values are stored in a Navigation file here:
> ftp://satepsanone.nesdis.noaa.gov/HydroEst/NPR.
> GEO.GHE.v1.Navigation.netcdf.gz
> In this Navigation file the dimensions match the 15 minute files ("elem"
> and "lines), but store the "lat" and "lon" values as variables. How can I
> relate these two files and basically replace the "elems" and "lines" in the
> hydro estimator netcdfs with the "lat" and "lon" values from the Navigation
> file and give a Mercator Projection?
>
> Best,
> Ashley Ballard
> --
> *Ashley Ballard*
> Meteorologist / Geospatial Analyst at MetCon <http://mymetcon.com/>
>
> Ph: (434) 228-3242
> Ashleyta@xxxxxx
>
>
>
--
*Ashley Ballard*
Meteorologist / Geospatial Analyst at MetCon <http://mymetcon.com/>
Ph: (434) 228-3242
Ashleyta@xxxxxx