Skip to main content

Create a Cloud Raster Format from netCDF4 by using ArcPy scripting.

Step-by-Step Guide

  1. Remove groups in NetCDF-4
  2. Run ArcPy script like the following:

    import arcpy
    arcpy.env.workspace = "C:/tmp/crf"
    
    arcpy.CopyRaster_management(
        "Z:/home/arcgis/data/misr2019G.nc", #input
        "misr2019G.crf", #output
        "", # {config_keyword}
        "", # {background_value}
        -9999.0, # {nodata_value}
        "NONE", # {NONE | OneBitTo8Bit}
        "NONE", # {NONE | ColormapToRGB}
        "", # {1_BIT | 2_BIT | 4_BIT | ... | 64_BIT}
        "NONE", # {NONE | ScalePixelValue}
        "NONE", # {NONE | RGBToColormap}
        "CRF", # {TIFF | PNG ... | MRF},
        "NONE",# {NONE | Transform}
        "ALL_SLICES", # {CURRENT_SLICE | ALL_SLICES}
        "TRANSPOSE") # {NO_TRANSPOSE | TRANSPOSE}

    Note: Use ncks -G: input.nc output.nc to remove groups.

    Reference

    Esri ArcGIS Pro: Copy Raster (Data Management)

Details

Last Updated

Published