1

I have many netcdf files in one folder. I want to extract variables from each netcdf file and save them as another .nc file.

The process is like this:

  1. Make NetCDF Raster layer (one .nc) Define name, dimension, 2 variables
  2. Make NetCDF from Raster Define name, dimension, 2 variables saved in 2 different .nc files

This is okay with only few files. But I have many files, so how do I do this in model builder?

This is the process that I want. I am using ArcMap 10.2.

1

I've come across this problem with this iterator before. It does not seem to pass on the knowledge of the type of file it is producing (What you have named as File).

This means when you attempt to connect the iterator output to your Make NetCDF Raster Layer tool the tool is unable to pick up on the file schema and will not allow you to choose the fields you need to choose (variable/X/Y/ Band etc..).

The solution is to temporarily point the tool to a source dataset as shown below, so not the iterator output, complete the rest of the tool and OK it. Your tool will now be connected to the source data, simply connect the iterator output to the tool and delete the temporary source input.

Temporarily point it to a source dataset

By connecting it to the source data you have been able to complete all the parameters, break the link to the source data does not clear these parameters so these pre-filled parameters mean the tool will now connect to downstream tools and colour up correctly.

  • Thank you. I will accept your answer as I will try them tomorrow. – user2543 Aug 3 '18 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.