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.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Aug 3, 2018 at 1:52

1 Answer 1

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.

answered Aug 3, 2018 at 11:17
1
  • Thank you. I will accept your answer as I will try them tomorrow. Commented Aug 3, 2018 at 11:58

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.