Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

How to export latitude and longitude with read_wrf_nc tool

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.


New member
I am looking for a way to export latitude and longitude using the read_wrf_nc tool. The grid numbers i, j, and k can be exported with the -w option. Is there a way to convert i and j to latitude and longitude and export them?
Each (i,j) corresponds to xlat(i,j) and xlong(i,j). You can follow the same way to output flat and long, then it is easy to find lat/long at any points of (i,j).