Merra 2

File Type Storage Location


This workflow used ArcGIS Server 10.8 and a CF v1.6 compliant NetCDF


Step 1:

Convert a sample NetCDF to a MRF to get the MRF XML structure.

Example: gdal_translate.exe -of MRF -co NOCOPY=TRUE -co COMPRESS=LERC -co CACHEDSOURCE=NETCDF:"/vsicurl/This would be the url of S3 Location.

Step 2:

Open .MRF and add in "DataFile"", "IndexFile", and "CachedSource" to MRF file. This will make it a Raster Proxy pointing to the real NetCDF file.

  • <DataFile>
    • Location on the ArcGIS Server where the cache file will be created and stored.
  • <Index File>
    • Location on the ArcGIS Server where the cache file will be created and stored.
  • <Cached Source> <Source>
    • Add the variable to be filtered out of the NetCDF into the source location. You can also use vsicurl or vsis3 depending on if you ArcGIS Server's AWS IAM permissions.
    • NETCDF:"/vsicurl/This Would be URL of S3 Location
    <Source>NETCDF:"/vsicurl/":T2M:1</Source> </CachedSource>
    <Size x="576" y="361" c="1" />
    <PageSize x="576" y="361" c="1" />
    <DataValues NoData="999999986991104.00000000" />
    <DataFile>c:/temp/tavg1_2d_slv_Nx.20190101_nc4_T2M_1.mrfcache </DataFile>
    <BoundingBox minx="-180.31250000" miny="-90.25000000" maxx="179.68750000" maxy=" 90.25000000" />

    Step 3:

    Create a Database Table or CSV with the following headings:


    *Note* More table headings can be added. Minimum required are Variable, Dimensions, StdTime, and Raster if using a multidimensional dataset.

    Step 4:

    Add the Raster Proxy to CSV Table under the "Raster" column.

    OBJECTID,Variable,Dimensions,StdTime,StdTime_max,StdZ,Raster,long_name,Name 1,T2M,"StdTime,StdZ",2019-01-01 00:30:00,2019-01-01 1:29:59,2,NETCDF:"/vsis3/sdt-data/gmao/merra2/MERRA2_400.tavg1_2d_slv_Nx.20190101.nc4":T2M:0LERCFloat32c:/temp/tavg1_2d_slv_Nx.20190101_nc4_T2M_1.mrfcachec:/temp/tavg1_2d_slv_Nx.20190101_nc4_T2M_1.mrfcacheEPSG:4326,Temperature at 2 Meters,MERRA2_400.tavg1_2d_slv_Nx.20190101.T2M.0

    Step 5:

    • Create Mosaic Dataset
    • Use the AddRasters to Mosaic tool.Raster Type = Table and point to the CSV

    Step 6:

    • Right click on Mosaic Dataset
    • Modify > Build Multidimensional Info (using because we used raster proxy) Build Multidimensional Information since using a Raster Proxy and Table