Home >> Forums >> Error processing output file (R post-processing)

Error processing output file (R post-processing)

Greetings,
I am trying to calculate the connectivity resulting of an output file but I get an error message when I run the compute_connectivity_Ichthyop_v3_TP function in R (image attached).
I don´t know what happens...
Regards.
 
 

Ichthyop version: 
Ichthyop 3.3alpha
Hydrodynamic dataset: 
ROMS
Operating system: 
Windows 10

Hi Victor

Usually you get that error message when the script does not actually find the xml file, e.g. if you copied the files to somewhere else and that file is not there anymore. Please check that.

Cheers

Christophe

Hello Victor
I also had a similar problem moving my output (.nc) files from one directory to another but I solved it by adding the following lines to the code:

filezone <- ncatt_get(nc,0,'release.zone.zone_file')$value # get the original path from nc file

filezone <- gsub(pattern = old_path, replacement = new_path, filezone) # change the original path for a new path

 

Do not forget to declare the objects 'old_path' and 'new_path' previously.

 

Regards