Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ED2 met process failing #1742

Closed
serbinsh opened this issue Oct 30, 2017 · 30 comments
Closed

ED2 met process failing #1742

serbinsh opened this issue Oct 30, 2017 · 30 comments
Assignees

Comments

@serbinsh
Copy link
Member

I'm trying to setup runs at NOBS (1850 burn site, Manitoba Canada) and running into issues using the FLUXNET drivers

> # Write pecan.CHECKED.xml
> PEcAn.settings::write.settings(settings, outputfile = "pecan.CHECKED.xml")
[1] "/data/Model_Output/pecan.output/PEcAn_2000000723/pecan.CHECKED.xml"
> 
> # start from scratch if no continue is passed in
> statusFile <- file.path(settings$outdir, "STATUS")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
> if (length(which(commandArgs() == "--continue")) == 0 && file.exists(statusFile)) {
+   file.remove(statusFile)
+ }
>   
> # Do conversions
> settings <- PEcAn.utils::do_conversions(settings)
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
2017-10-30 15:34:00 DEBUG  [PEcAn.utils::do_conversions] : 
   do.conversion outdir /data/Model_Output/pecan.output/dbfiles 
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
2017-10-30 15:34:00 INFO   [PEcAn.utils::do_conversions] : PROCESSING:  met 
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
2017-10-30 15:34:00 INFO   [PEcAn.utils::do_conversions] : 
   calling met.process: 
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
  scale  format.id           format.name format.mimetype format.inputtype
1  site 5000000001 FLUXNET2015_SUBSET_HH        text/csv              csv
$download.raw
[1] TRUE

$met2cf
[1] TRUE

$standardize
[1] TRUE

$met2model
[1] TRUE

Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
2017-10-30 15:34:00 DEBUG  [PEcAn.utils::convert.input] : 
   Convert.Inputs download.Fluxnet2015 NA localhost 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_site_0-506 
   FLUXNET2015_SUBSET_HH text/csv 506 1995/01/01 2007/12/31 
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
2017-10-30 15:34:00 INFO   [PEcAn.utils::convert.input] : 
   start CHECK Convert.Inputs download.Fluxnet2015 NA localhost 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_site_0-506/ 
   FLUXNET2015_SUBSET_HH text/csv 506 1995/01/01 2007/12/31 
2017-10-30 15:34:00 WARN   [PEcAn.DB::dbfile.input.check] : 
   Found possible matching input. Checking if its associate files are on 
   host machine 
          id site_id notes          created_at          updated_at start_date
1 1000013675     506       2017-10-12 12:38:40 2017-10-30 18:58:58 1990-01-01
    end_date                   name parent_id user_id access_level raw
1 2008-12-31 Fluxnet2015_site_0-506        NA      NA            4  NA
  format_id
1     5e+09
2017-10-30 15:34:00 DEBUG  [PEcAn.utils::convert.input] : 
   File id = 2000018835 File name = 
   FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3 File path = 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_site_0-506 Input id 
   = 1000013675 10 
2017-10-30 15:34:00 INFO   [PEcAn.utils::convert.input] : 
   end CHECK for existing input record. 
2017-10-30 15:34:00 INFO   [PEcAn.utils::convert.input] : 
   Skipping this input conversion because files are already available. 
2017-10-30 15:34:00 INFO   [.met2cf.module] : 
   Begin change to CF Standards 
2017-10-30 15:34:01 DEBUG  [PEcAn.utils::convert.input] : 
   Convert.Inputs met2CF.csv 1000013675 localhost 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_site_0-506 CF 
   Meteorology application/x-netcdf 506 1995/01/01 2007/12/31 
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
2017-10-30 15:34:01 INFO   [PEcAn.utils::convert.input] : 
   start CHECK Convert.Inputs met2CF.csv 1000013675 localhost 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_site_0-506/ CF 
   Meteorology application/x-netcdf 506 1995/01/01 2007/12/31 
2017-10-30 15:34:01 WARN   [PEcAn.DB::dbfile.input.check] : 
   Found possible matching input. Checking if its associate files are on 
   host machine 
          id site_id notes          created_at          updated_at start_date
1 1000013676     506       2017-10-12 12:39:17 2017-10-12 12:39:17 1995-01-01
    end_date                      name  parent_id user_id access_level raw
1 2008-12-31 Fluxnet2015_CF_site_0-506 1000013675      NA            4  NA
  format_id
1        33
2017-10-30 15:34:01 DEBUG  [PEcAn.utils::convert.input] : 
   File id = 2000018836 File name = 
   FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3 File path = 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_site_0-506 Input 
   id = 1000013676 10 
2017-10-30 15:34:01 INFO   [PEcAn.utils::convert.input] : 
   end CHECK for existing input record. 
2017-10-30 15:34:01 INFO   [PEcAn.utils::convert.input] : 
   Skipping this input conversion because files are already available. 
2017-10-30 15:34:01 INFO   [.met2cf.module] : 
   Finished change to CF Standards 
2017-10-30 15:34:01 INFO   [.metgapfill.module] : Gapfilling 
No geonamesUsername set. See http://geonames.wordpress.com/2010/03/16/ddos-part-ii/ and set one with options(geonamesUsername="foo") for some services to work
2017-10-30 15:34:01 DEBUG  [PEcAn.utils::convert.input] : 
   Convert.Inputs metgapfill 1000013676 localhost 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_gapfill_site_0-506 
   CF Meteorology application/x-netcdf 506 1995/01/01 2007/12/31 
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
2017-10-30 15:34:01 INFO   [PEcAn.utils::convert.input] : 
   start CHECK Convert.Inputs metgapfill 1000013676 localhost 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_gapfill_site_0-506/ 
   CF Meteorology application/x-netcdf 506 1995/01/01 2007/12/31 
2017-10-30 15:34:01 WARN   [PEcAn.DB::dbfile.input.check] : 
   Found possible matching input. Checking if its associate files are on 
   host machine 
          id site_id notes          created_at          updated_at start_date
1 1000013677     506       2017-10-12 12:40:52 2017-10-12 12:40:52 1995-01-01
    end_date                              name  parent_id user_id access_level
1 2008-12-31 Fluxnet2015_CF_gapfill_site_0-506 1000013676      NA            4
  raw format_id
1  NA        33
2017-10-30 15:34:01 DEBUG  [PEcAn.utils::convert.input] : 
   File id = 2000018837 File name = 
   FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3 File path = 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_gapfill_site_0-506 
   Input id = 1000013677 10 
2017-10-30 15:34:01 INFO   [PEcAn.utils::convert.input] : 
   end CHECK for existing input record. 
2017-10-30 15:34:01 INFO   [PEcAn.utils::convert.input] : 
   Skipping this input conversion because files are already available. 
$input.id
[1] 1000013677

$dbfile.id
[1] 2000018837

2017-10-30 15:34:01 INFO   [.metgapfill.module] : 
   Finished Gapfilling Met 
2017-10-30 15:34:01 INFO   [.met2model.module] : 
   Begin Model Specific Conversion 
[1] "Convert to model format"
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
2017-10-30 15:34:01 DEBUG  [PEcAn.utils::convert.input] : 
   Convert.Inputs met2model.ED2 1000013677 localhost 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506 
   ed.met_driver_header files format text/plain 506 1995/01/01 2007/12/31 
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
2017-10-30 15:34:01 INFO   [PEcAn.utils::convert.input] : 
   start CHECK Convert.Inputs met2model.ED2 1000013677 localhost 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506/ 
   ed.met_driver_header files format text/plain 506 1995/01/01 2007/12/31 
2017-10-30 15:34:02 DEBUG  [PEcAn.utils::convert.input] : 
   File id = File name = File path = Input id = 10 
2017-10-30 15:34:02 INFO   [PEcAn.utils::convert.input] : 
   end CHECK for existing input record. 
2017-10-30 15:34:02 DEBUG  [PEcAn.utils::convert.input] : 
   convert.input executing the following function: 
   PEcAn.ED2::met2model.ED2(lst=-6, lat=55.8796, lon=-98.4808, 
   spin_nyear=NULL, spin_nsample=NULL, spin_resample=NULL, overwrite=FALSE, 
   in.path='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_gapfill_site_0-506', 
   in.prefix='FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3', 
   outfolder='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506/', 
   start_date='1995/01/01', end_date='2007/12/31') 

R version 3.4.1 (2017-06-30) -- "Single Candle"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> remotefunc <- function() {PEcAn.ED2::met2model.ED2(lst=-6, lat=55.8796, lon=-98.4808, spin_nyear=NULL, spin_nsample=NULL, spin_resample=NULL, overwrite=FALSE, in.path='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_gapfill_site_0-506', in.prefix='FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3', outfolder='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506/', start_date='1995/01/01', end_date='2007/12/31')}
> remoteout <- remotefunc()
2017-10-30 15:34:03 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
Error in UseMethod("h5write") : 
  no applicable method for 'h5write' applied to an object of class "c('array', 'double', 'numeric')"
Calls: remotefunc -> <Anonymous> -> <Anonymous>
Execution halted
[1] 1
2017-10-30 15:34:03 INFO   [PEcAn.utils::convert.input] : 
   RESULTS: Convert.Input 
2017-10-30 15:34:03 INFO   [PEcAn.utils::convert.input] : 1 
2017-10-30 15:34:03 INFO   [PEcAn.utils::convert.input] :  
2017-10-30 15:34:03 DEBUG  [PEcAn.utils::convert.input] : 
   Processing data failed, please check validity of args:lst=-6, 
   lat=55.8796, lon=-98.4808, spin_nyear=NULL, spin_nsample=NULL, 
   spin_resample=NULL, overwrite=FALSE, 
   in.path='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_gapfill_site_0-506', 
   in.prefix='FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3', 
   outfolder='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506/', 
   start_date='1995/01/01', end_date='2007/12/31' 
2017-10-30 15:34:03 SEVERE [PEcAn.utils::convert.input] : 
   Unable to process data using this function:met2model.ED2 
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
> proc.time()
   user  system elapsed 
  7.973   0.680   9.580 
The PEcAn project is supported by the National Science Foundation (ABI #1062547, ABI #1458021, DIBBS #1261582, ARC #1023477, EF #1318164, EF #1241894, EF #1241891), NASA Terrestrial Ecosystems, the Energy Biosciences Institute, and an Amazon AWS in Education Grant.
@serbinsh
Copy link
Member Author

The FLUXNET download a previous time and seemed to work but it appears to be crashing on met2model using h5 libs OR something is wrong with the data format?

@serbinsh
Copy link
Member Author

drwxr-sr-x.   2 apache  test  4096 Oct 30 15:02 Fluxnet2015_CF_site_0-506
drwxr-sr-x.   2 apache  test    52 Oct 30 15:34 Fluxnet2015_ED2_site_0-506

Generated nc files

[sserbin@modex Fluxnet2015_CF_site_0-506]$ ll
total 12504
-rw-r--r--. 1 apache test 912516 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.1995.nc
-rw-r--r--. 1 apache test 915012 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.1996.nc
-rw-r--r--. 1 apache test 912516 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.1997.nc
-rw-r--r--. 1 apache test 912516 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.1998.nc
-rw-r--r--. 1 apache test 912516 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.1999.nc
-rw-r--r--. 1 apache test 915012 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.2000.nc
-rw-r--r--. 1 apache test 912516 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.2001.nc
-rw-r--r--. 1 apache test 912516 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.2002.nc
-rw-r--r--. 1 apache test 912516 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.2003.nc
-rw-r--r--. 1 apache test 915012 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.2004.nc
-rw-r--r--. 1 apache test 912516 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.2005.nc
-rw-r--r--. 1 apache test 912516 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.2006.nc
-rw-r--r--. 1 apache test 912516 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.2007.nc
-rw-r--r--. 1 apache test 915012 Oct 30 15:02 FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.2008.nc

Looks accurate

[sserbin@modex Fluxnet2015_CF_site_0-506]$ ncdump -h FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.1995.nc
netcdf FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3.1995 {
dimensions:
	longitude = 1 ;
	latitude = 1 ;
	time = 17520 ;
variables:
	double longitude(longitude) ;
		longitude:units = "degrees_east" ;
		longitude:long_name = "longitude" ;
	double latitude(latitude) ;
		latitude:units = "degrees_north" ;
		latitude:long_name = "latitude" ;
	double time(time) ;
		time:units = "days since 1700-01-01" ;
		time:long_name = "time" ;
	float air_temperature(time, latitude, longitude) ;
		air_temperature:units = "K" ;
	float air_pressure(time, latitude, longitude) ;
		air_pressure:units = "Pa" ;
	float mole_fraction_of_carbon_dioxide_in_air(time, latitude, longitude) ;
		mole_fraction_of_carbon_dioxide_in_air:units = "mol mol-1" ;
	float soil_temperature(time, latitude, longitude) ;
		soil_temperature:units = "K" ;
	float water_vapor_saturation_deficit(time, latitude, longitude) ;
		water_vapor_saturation_deficit:units = "Pa" ;
	float surface_downwelling_longwave_flux_in_air(time, latitude, longitude) ;
		surface_downwelling_longwave_flux_in_air:units = "W m-2" ;
	float surface_downwelling_shortwave_flux_in_air(time, latitude, longitude) ;
		surface_downwelling_shortwave_flux_in_air:units = "W m-2" ;
	float surface_downwelling_photosynthetic_photon_flux_in_air(time, latitude, longitude) ;
		surface_downwelling_photosynthetic_photon_flux_in_air:units = "mol m-2 s-1" ;
	float precipitation_flux(time, latitude, longitude) ;
		precipitation_flux:units = "kg m-2 s-1" ;
	float eastward_wind(time, latitude, longitude) ;
		eastward_wind:units = "m s-1" ;
	float northward_wind(time, latitude, longitude) ;
		northward_wind:units = "m s-1" ;
}

data:

 longitude = -98.4808 ;
}
  250.381,
  250.823,
  251.171,
  251.769,
  251.874,
  252.485,
  252.681,
  253.005,
  253.166,
  253.166,
  253.325,
  252.681,
  252.188,
  251.938,
  251.854,
  252.316,
  252.325,
  252.333,
  252.342,
  252.351,
  252.359,
  252.367,
  252.376,
  252.105,
  252.271,
  252.271,
  252.105 ;
}

@serbinsh
Copy link
Member Author

Just two ED2 files?

[sserbin@modex Fluxnet2015_ED2_site_0-506]$ ll
total 8
-rw-r--r--. 1 apache test 195 Oct 30 15:34 1995FEB.h5
-rw-r--r--. 1 apache test 195 Oct 30 15:04 1995JAN.h5

[sserbin@modex Fluxnet2015_ED2_site_0-506]$ h5dump 1995FEB.h5
HDF5 "1995FEB.h5" {
GROUP "/" {
}
}

@serbinsh
Copy link
Member Author

[sserbin@modex Fluxnet2015_ED2_site_0-506]$ h5dump -H 1995FEB.h5
HDF5 "1995FEB.h5" {
GROUP "/" {
}
}

Seem just to be empty?

@serbinsh
Copy link
Member Author

Also a problem because the previous failed file exists but is empty so it moved to the next month. Which means once this works, it may skip these two months, where are actually invalid. I will need to run this function and force re-build to purge these two bad files. Another option?

@ankurdesai
Copy link
Contributor

I had a similar problem that was fixed by updating the hdf5 R package (which required a bunch of other updates too). Yes, also had to manually delete empty .h5 files during crashes like this.

@serbinsh
Copy link
Member Author

Thanks @ankurdesai I will give that a shot!

@serbinsh
Copy link
Member Author

Following these instructions for update: https://www.bioconductor.org/packages/devel/bioc/vignettes/rhdf5/inst/doc/rhdf5.pdf

My problem is that it ins't using the HDF5 version that is loaded in my modules but instead finding an old HDF system lib....so that may cause me all sorts of problems.

@serbinsh
Copy link
Member Author

Yeah, trying to run again or manually causes me problems

> remoteout <- remotefunc()
Error in UseMethod("h5write") :
  no applicable method for 'h5write' applied to an object of class "c('array', 'double', 'numeric')"

I think I need to try and install rhdf5 using the more up-to-date HDF5 I have installed but as a module. Its not yet clear how to get bioclite to install using a different lib location. I don't see any flags to do this. Perhaps there is a way to build from source?

@ankurdesai
Copy link
Contributor

Here's what I did in rstudio:
source("https://bioconductor.org/biocLite.R")
biocLite("rhdf5",lib="/usr/local/lib/R/site-library")

Then this worked:
met2model.ED2(lst=-6, lat=46.0765, lon=-89.9742, spin_nyear=NULL, spin_nsample=NULL, spin_resample=NULL, overwrite=FALSE, in.path='/home/carya/output/dbfiles/Fluxnet2015_CF_gapfill_site_0-679', in.prefix='FLX_US-Los_FLUXNET2015_SUBSET_HH_2000-2014_2-3', outfolder='/home/carya/output/dbfiles/Fluxnet2015_ED2_site_0-679/', start_date='2000/01/01', end_date='2008/12/31')

@serbinsh
Copy link
Member Author

@ankurdesai I did the same, still fails. Part of my issue (I think)


chmod: cannot access `tools/misc/h5cc': No such file or directory
	    SUMMARY OF THE HDF5 CONFIGURATION
	    =================================

General Information:
-------------------
		   HDF5 Version: 1.8.7
		  Configured on: Mon Oct 30 16:20:42 EDT 2017
		  Configured by: sserbin@modex
		 Configure mode: production
		    Host system: x86_64-unknown-linux-gnu
	      Uname information: Linux modex 2.6.32-696.3.2.el6.x86_64 #1 SMP Mon Jun 19 11:23:31 CDT 2017 x86_64 x86_64 x86_64 GNU/Linux
		       Byte sex: little-endian
		      Libraries:
	     Installation point: /tmp/RtmpvIF1wd/R.INSTALL988e709a866a/rhdf5/src/hdf5/hdf5

Compiling Options:
------------------
               Compilation Mode: production
                     C Compiler: /data/software/gcc/gcc-5.4.0/bin/gcc -m64 -std=gnu99 ( gcc (GCC) 5.4.0)
                         CFLAGS:
                      H5_CFLAGS:   -ansi -pedantic -Wall -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -w -O -fomit-frame-pointer -finline-functions
                      AM_CFLAGS:
                       CPPFLAGS:
                    H5_CPPFLAGS: -D_POSIX_SOURCE   -DNDEBUG -UH5_DEBUG_API
                    AM_CPPFLAGS: -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE

Thats the wrong HDF5 and I am trying to get it to use the correct one....so far failing to use a different HDF5 lib location

I really hate this bioconductor / HDF5 dependency for ED2

@serbinsh
Copy link
Member Author

Or is that somehow the HDF5 that ships with rhdf5?

@serbinsh
Copy link
Member Author

> remotefunc <- function() {PEcAn.ED2::met2model.ED2(lst=-6, lat=55.8796, lon=-98.4808, spin_nyear=NULL, spin_nsample=NULL, spin_resa> le=NULL, overwrite=FALSE, in.path='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_gapfill_site_0-506', in.prefix='FLX_CA-Ma> FLUXNET2015_SUBSET_HH_1994-2008_1-3', outfolder='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506/', start_date='> 95/01/01', end_date='2007/12/31')}

> remoteout <- remotefunc()
Error in UseMethod("h5write") :
  no applicable method for 'h5write' applied to an object of class "c('array', 'double', 'numeric')"

That was my own attempt at running that by "hand" after installing rhdf5 again

@serbinsh
Copy link
Member Author

Hmmm...hang on. If I run not using the remote function and just met2model directly, it seems to work except it tries to run years more than once?

> PEcAn.ED2::met2model.ED2(lst=-6, lat=55.8796, lon=-98.4808, spin_nyear=NULL, spin_nsample=NULL, spin_resample=NULL, overwrite=FALSE2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] : et2015_CF_gapfill_site_0-506', in.prefix='FLX_CA-Man_FLUXNET2015_SUBSET_HH_19   The file already exists! Moving to next month! output/dbfiles/Fluxnet2015_ED2_site_0-506/', start_date='1995/01/01', end_date='2002017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:22 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:29 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!
2017-10-30 16:27:35 WARN   [PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!

@serbinsh
Copy link
Member Author

[sserbin@modex Fluxnet2015_ED2_site_0-506]$ ll
total 27268
-rw-rw-r--. 1 sserbin test  46542 Oct 30 16:27 1994APR.h5
-rw-rw-r--. 1 sserbin test  46554 Oct 30 16:27 1994AUG.h5
-rw-rw-r--. 1 sserbin test  46554 Oct 30 16:27 1994DEC.h5
-rw-rw-r--. 1 sserbin test  46542 Oct 30 16:27 1994FEB.h5
-rw-rw-r--. 1 sserbin test  46554 Oct 30 16:27 1994JAN.h5
-rw-rw-r--. 1 sserbin test  46554 Oct 30 16:27 1994JUL.h5
-rw-rw-r--. 1 sserbin test  46542 Oct 30 16:27 1994JUN.h5
-rw-rw-r--. 1 sserbin test  46554 Oct 30 16:27 1994MAR.h5
-rw-rw-r--. 1 sserbin test  46554 Oct 30 16:27 1994MAY.h5
-rw-rw-r--. 1 sserbin test  46542 Oct 30 16:27 1994NOV.h5
-rw-rw-r--. 1 sserbin test  46554 Oct 30 16:27 1994OCT.h5
-rw-rw-r--. 1 sserbin test  46542 Oct 30 16:27 1994SEP.h5
-rw-rw-r--. 1 sserbin test 101132 Oct 30 16:27 1995APR.h5
-rw-rw-r--. 1 sserbin test 109045 Oct 30 16:27 1995AUG.h5
-rw-rw-r--. 1 sserbin test  90658 Oct 30 16:27 1995DEC.h5
-rw-rw-r--. 1 sserbin test  91579 Oct 30 16:27 1995FEB.h5
-rw-rw-r--. 1 sserbin test  92674 Oct 30 16:27 1995JAN.h5
-rw-rw-r--. 1 sserbin test 112467 Oct 30 16:27 1995JUL.h5
-rw-rw-r--. 1 sserbin test 110088 Oct 30 16:27 1995JUN.h5
-rw-rw-r--. 1 sserbin test 101761 Oct 30 16:27 1995MAR.h5
-rw-rw-r--. 1 sserbin test 109403 Oct 30 16:27 1995MAY.h5
-rw-rw-r--. 1 sserbin test  91708 Oct 30 16:27 1995NOV.h5
-rw-rw-r--. 1 sserbin test  98407 Oct 30 16:27 1995OCT.h5
-rw-rw-r--. 1 sserbin test 102657 Oct 30 16:27 1995SEP.h5
-rw-rw-r--. 1 sserbin test 103547 Oct 30 16:27 1996APR.h5
-rw-rw-r--. 1 sserbin test 108981 Oct 30 16:27 1996AUG.h5
-rw-rw-r--. 1 sserbin test  91398 Oct 30 16:27 1996DEC.h5
-rw-rw-r--. 1 sserbin test  92568 Oct 30 16:27 1996FEB.h5
-rw-rw-r--. 1 sserbin test  91892 Oct 30 16:27 1996JAN.h5
-rw-rw-r--. 1 sserbin test 111873 Oct 30 16:27 1996JUL.h5
-rw-rw-r--. 1 sserbin test 111013 Oct 30 16:27 1996JUN.h5
-rw-rw-r--. 1 sserbin test 100155 Oct 30 16:27 1996MAR.h5
-rw-rw-r--. 1 sserbin test 109725 Oct 30 16:27 1996MAY.h5
-rw-rw-r--. 1 sserbin test  91155 Oct 30 16:27 1996NOV.h5
-rw-rw-r--. 1 sserbin test  98717 Oct 30 16:27 1996OCT.h5
-rw-rw-r--. 1 sserbin test 101969 Oct 30 16:27 1996SEP.h5
-rw-rw-r--. 1 sserbin test 102984 Oct 30 16:27 1997APR.h5
-rw-rw-r--. 1 sserbin test 109320 Oct 30 16:27 1997AUG.h5
-rw-rw-r--. 1 sserbin test  88451 Oct 30 16:27 1997DEC.h5
-rw-rw-r--. 1 sserbin test  89479 Oct 30 16:27 1997FEB.h5
-rw-rw-r--. 1 sserbin test  91174 Oct 30 16:27 1997JAN.h5
-rw-rw-r--. 1 sserbin test 112201 Oct 30 16:27 1997JUL.h5
-rw-rw-r--. 1 sserbin test 110763 Oct 30 16:27 1997JUN.h5
-rw-rw-r--. 1 sserbin test 100391 Oct 30 16:27 1997MAR.h5
-rw-rw-r--. 1 sserbin test 108156 Oct 30 16:27 1997MAY.h5
-rw-rw-r--. 1 sserbin test  88416 Oct 30 16:27 1997NOV.h5
-rw-rw-r--. 1 sserbin test  98433 Oct 30 16:27 1997OCT.h5
-rw-rw-r--. 1 sserbin test 102689 Oct 30 16:27 1997SEP.h5
-rw-rw-r--. 1 sserbin test 104127 Oct 30 16:27 1998APR.h5
-rw-rw-r--. 1 sserbin test 108851 Oct 30 16:27 1998AUG.h5
-rw-rw-r--. 1 sserbin test  88268 Oct 30 16:27 1998DEC.h5
-rw-rw-r--. 1 sserbin test  91450 Oct 30 16:27 1998FEB.h5
-rw-rw-r--. 1 sserbin test  90792 Oct 30 16:27 1998JAN.h5
-rw-rw-r--. 1 sserbin test 112015 Oct 30 16:27 1998JUL.h5
-rw-rw-r--. 1 sserbin test 110641 Oct 30 16:27 1998JUN.h5
-rw-rw-r--. 1 sserbin test 100760 Oct 30 16:27 1998MAR.h5
-rw-rw-r--. 1 sserbin test 110380 Oct 30 16:27 1998MAY.h5
-rw-rw-r--. 1 sserbin test  91827 Oct 30 16:27 1998NOV.h5
-rw-rw-r--. 1 sserbin test  98936 Oct 30 16:27 1998OCT.h5
-rw-rw-r--. 1 sserbin test 101656 Oct 30 16:27 1998SEP.h5
-rw-rw-r--. 1 sserbin test 100744 Oct 30 16:27 1999APR.h5
-rw-rw-r--. 1 sserbin test 108244 Oct 30 16:27 1999AUG.h5
-rw-rw-r--. 1 sserbin test  91632 Oct 30 16:27 1999DEC.h5
-rw-rw-r--. 1 sserbin test  90929 Oct 30 16:27 1999FEB.h5
-rw-rw-r--. 1 sserbin test  92026 Oct 30 16:27 1999JAN.h5
-rw-rw-r--. 1 sserbin test 112076 Oct 30 16:27 1999JUL.h5
-rw-rw-r--. 1 sserbin test 110434 Oct 30 16:27 1999JUN.h5
-rw-rw-r--. 1 sserbin test 100566 Oct 30 16:27 1999MAR.h5
-rw-rw-r--. 1 sserbin test 110018 Oct 30 16:27 1999MAY.h5
-rw-rw-r--. 1 sserbin test  91324 Oct 30 16:27 1999NOV.h5
-rw-rw-r--. 1 sserbin test  98145 Oct 30 16:27 1999OCT.h5
-rw-rw-r--. 1 sserbin test 102106 Oct 30 16:27 1999SEP.h5
-rw-rw-r--. 1 sserbin test 103730 Oct 30 16:27 2000APR.h5
-rw-rw-r--. 1 sserbin test 107279 Oct 30 16:27 2000AUG.h5
-rw-rw-r--. 1 sserbin test  90927 Oct 30 16:27 2000DEC.h5
-rw-rw-r--. 1 sserbin test  92849 Oct 30 16:27 2000FEB.h5
-rw-rw-r--. 1 sserbin test  91342 Oct 30 16:27 2000JAN.h5
-rw-rw-r--. 1 sserbin test 109700 Oct 30 16:27 2000JUL.h5
-rw-rw-r--. 1 sserbin test 110440 Oct 30 16:27 2000JUN.h5
-rw-rw-r--. 1 sserbin test 101360 Oct 30 16:27 2000MAR.h5
-rw-rw-r--. 1 sserbin test 110656 Oct 30 16:27 2000MAY.h5
-rw-rw-r--. 1 sserbin test  92655 Oct 30 16:27 2000NOV.h5
-rw-rw-r--. 1 sserbin test  98670 Oct 30 16:27 2000OCT.h5
-rw-rw-r--. 1 sserbin test 102217 Oct 30 16:27 2000SEP.h5
-rw-rw-r--. 1 sserbin test 104157 Oct 30 16:27 2001APR.h5
-rw-rw-r--. 1 sserbin test 108603 Oct 30 16:27 2001AUG.h5
-rw-rw-r--. 1 sserbin test  91608 Oct 30 16:27 2001DEC.h5
-rw-rw-r--. 1 sserbin test  90983 Oct 30 16:27 2001FEB.h5
-rw-rw-r--. 1 sserbin test  92365 Oct 30 16:27 2001JAN.h5
-rw-rw-r--. 1 sserbin test 112474 Oct 30 16:27 2001JUL.h5
-rw-rw-r--. 1 sserbin test 110720 Oct 30 16:27 2001JUN.h5
-rw-rw-r--. 1 sserbin test 100175 Oct 30 16:27 2001MAR.h5
-rw-rw-r--. 1 sserbin test 110735 Oct 30 16:27 2001MAY.h5
-rw-rw-r--. 1 sserbin test  90500 Oct 30 16:27 2001NOV.h5
-rw-rw-r--. 1 sserbin test  98739 Oct 30 16:27 2001OCT.h5
-rw-rw-r--. 1 sserbin test 102338 Oct 30 16:27 2001SEP.h5
-rw-rw-r--. 1 sserbin test 103303 Oct 30 16:27 2002APR.h5
-rw-rw-r--. 1 sserbin test 108472 Oct 30 16:27 2002AUG.h5
-rw-rw-r--. 1 sserbin test  91912 Oct 30 16:27 2002DEC.h5
-rw-rw-r--. 1 sserbin test  91336 Oct 30 16:27 2002FEB.h5
-rw-rw-r--. 1 sserbin test  92081 Oct 30 16:27 2002JAN.h5
-rw-rw-r--. 1 sserbin test 112196 Oct 30 16:27 2002JUL.h5
-rw-rw-r--. 1 sserbin test 110433 Oct 30 16:27 2002JUN.h5
-rw-rw-r--. 1 sserbin test  99373 Oct 30 16:27 2002MAR.h5
-rw-rw-r--. 1 sserbin test 110095 Oct 30 16:27 2002MAY.h5
-rw-rw-r--. 1 sserbin test  92752 Oct 30 16:27 2002NOV.h5
-rw-rw-r--. 1 sserbin test  98501 Oct 30 16:27 2002OCT.h5
-rw-rw-r--. 1 sserbin test 102290 Oct 30 16:27 2002SEP.h5
-rw-rw-r--. 1 sserbin test 104236 Oct 30 16:28 2003APR.h5
-rw-rw-r--. 1 sserbin test 108942 Oct 30 16:28 2003AUG.h5
-rw-rw-r--. 1 sserbin test  92753 Oct 30 16:28 2003DEC.h5
-rw-rw-r--. 1 sserbin test  89627 Oct 30 16:28 2003FEB.h5
-rw-rw-r--. 1 sserbin test  92675 Oct 30 16:28 2003JAN.h5
-rw-rw-r--. 1 sserbin test 111919 Oct 30 16:28 2003JUL.h5
-rw-rw-r--. 1 sserbin test 110727 Oct 30 16:28 2003JUN.h5
-rw-rw-r--. 1 sserbin test 100436 Oct 30 16:28 2003MAR.h5
-rw-rw-r--. 1 sserbin test 111114 Oct 30 16:28 2003MAY.h5
-rw-rw-r--. 1 sserbin test  93099 Oct 30 16:28 2003NOV.h5
-rw-rw-r--. 1 sserbin test  98956 Oct 30 16:28 2003OCT.h5
-rw-rw-r--. 1 sserbin test 102452 Oct 30 16:28 2003SEP.h5
-rw-rw-r--. 1 sserbin test 100891 Oct 30 16:28 2004APR.h5
-rw-rw-r--. 1 sserbin test 102221 Oct 30 16:28 2004AUG.h5
-rw-rw-r--. 1 sserbin test  90431 Oct 30 16:28 2004DEC.h5
-rw-rw-r--. 1 sserbin test  90743 Oct 30 16:28 2004FEB.h5
-rw-rw-r--. 1 sserbin test  91462 Oct 30 16:28 2004JAN.h5
-rw-rw-r--. 1 sserbin test 106929 Oct 30 16:28 2004JUL.h5
-rw-rw-r--. 1 sserbin test 104925 Oct 30 16:28 2004JUN.h5
-rw-rw-r--. 1 sserbin test  99172 Oct 30 16:28 2004MAR.h5
-rw-rw-r--. 1 sserbin test 105400 Oct 30 16:28 2004MAY.h5
-rw-rw-r--. 1 sserbin test  89797 Oct 30 16:28 2004NOV.h5
-rw-rw-r--. 1 sserbin test  95729 Oct 30 16:28 2004OCT.h5
-rw-rw-r--. 1 sserbin test  96591 Oct 30 16:28 2004SEP.h5
-rw-rw-r--. 1 sserbin test  99418 Oct 30 16:28 2005APR.h5
-rw-rw-r--. 1 sserbin test 102768 Oct 30 16:28 2005AUG.h5
-rw-rw-r--. 1 sserbin test  85226 Oct 30 16:28 2005DEC.h5
-rw-rw-r--. 1 sserbin test  89323 Oct 30 16:28 2005FEB.h5
-rw-rw-r--. 1 sserbin test  90217 Oct 30 16:28 2005JAN.h5
-rw-rw-r--. 1 sserbin test 106406 Oct 30 16:28 2005JUL.h5
-rw-rw-r--. 1 sserbin test 105038 Oct 30 16:28 2005JUN.h5
-rw-rw-r--. 1 sserbin test  97612 Oct 30 16:28 2005MAR.h5
-rw-rw-r--. 1 sserbin test 105192 Oct 30 16:28 2005MAY.h5
-rw-rw-r--. 1 sserbin test  87682 Oct 30 16:28 2005NOV.h5
-rw-rw-r--. 1 sserbin test  94375 Oct 30 16:28 2005OCT.h5
-rw-rw-r--. 1 sserbin test  96861 Oct 30 16:28 2005SEP.h5
-rw-rw-r--. 1 sserbin test  99632 Oct 30 16:28 2006APR.h5
-rw-rw-r--. 1 sserbin test  87402 Oct 30 16:28 2006FEB.h5
-rw-rw-r--. 1 sserbin test  86939 Oct 30 16:28 2006JAN.h5
-rw-rw-r--. 1 sserbin test 101713 Oct 30 16:28 2006JUL.h5
-rw-rw-r--. 1 sserbin test 109568 Oct 30 16:28 2006JUN.h5
-rw-rw-r--. 1 sserbin test  96133 Oct 30 16:28 2006MAR.h5
-rw-rw-r--. 1 sserbin test 109047 Oct 30 16:28 2006MAY.h5
-rw-rw-r--. 1 sserbin test    290 Oct 30 16:28 ED_MET_DRIVER_HEADER

Files are being generated but why the warnings about the files already existing?

@serbinsh
Copy link
Member Author

[1] "Done with met2model.ED2"
There were 13 warnings (use warnings() to see them)
> warnings()
Warning messages:
1: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
2: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
3: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
4: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
5: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
6: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
7: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
8: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
9: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
10: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
11: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
12: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
13: In h5checktypeOrOpenLoc(file) :
  An open HDF5 file handle exists. If the file has changed on disk meanwhile, the function may not work properly. Run 'H5close()' to close all open HDF5 object handles.
>

It looks like we might be trying to interact with a file in a strange way during the process?

@serbinsh
Copy link
Member Author

Also, just to confirm. The way the function is trying to run in the web workflow using remotefunc() doesn't work

> remotefunc <- function() {PEcAn.ED2::met2model.ED2(lst=-6, lat=55.8796, lon=-98.4808, spin_nyear=NULL, spin_nsample=NULL, spin_resa> le=NULL, overwrite=FALSE, in.path='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_gapfill_site_0-506', in.prefix='FLX_CA-Ma> FLUXNET2015_SUBSET_HH_1994-2008_1-3', outfolder='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506/', start_date='> 95/01/01', end_date='2007/12/31')}
>
>
> remoteout <- remotefunc()
Error in UseMethod("h5write") :
  no applicable method for 'h5write' applied to an object of class "c('array', 'double', 'numeric')"
>

But if I run PEcAn.ED2::met2model.ED2 directly it works OK, except with the warnings mentioned above.

Also when running as
remotefunc <- function() {PEcAn.ED2::met2model.ED2 ...
remoteout <- remotefunc()

I get one file created in the output directory but fails when populating.... Does anyone have any idea why the error when running as wrapped in the remotefunc? I can't see why that would matter?

@serbinsh
Copy link
Member Author

OK, weird new info. If I am trying to run PEcAn.ED2::met2model.ED2 by hand without first running library(rhdf5) it fails, but if I first load rhdf5 and then run the command it works fine?! Does anyone know what that would be? We are using the rhdf5::h5write() syntax in the function so shouldn't that be OK?

@serbinsh
Copy link
Member Author

Yeah, that seems to be the case:

> remotefunc <- function() {PEcAn.ED2::met2model.ED2(lst=-6, lat=55.8796, lon=-98.4808, spin_nyear=NULL, spin_nsample=NULL, spin_resa> le=NULL, overwrite=FALSE, in.path='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_gapfill_site_0-506', in.prefix='FLX_CA-Ma> FLUXNET2015_SUBSET_HH_1994-2008_1-3', outfolder='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506/', start_date='> 95/01/01', end_date='2007/12/31')}
>
>
> remoteout <- remotefunc()
Error in UseMethod("h5write") :
  no applicable method for 'h5write' applied to an object of class "c('array', 'double', 'numeric')"
> library(rhdf5)
> remoteout <- remotefunc()
2017-10-30 16:48:35 WARN   [#1: PEcAn.ED2::met2model.ED2] :
   The file already exists! Moving to next month!

So why do I need to run library(rhdf5) first to get this to work if we are using rhdf5::h5write?

@serbinsh
Copy link
Member Author

OK, for whatever reason, I could only get this to work via web or locally by editing met2model.ED2 and adding library(rhdf5) to the top of the function?

Here is output from teh web after doing this:


> remotefunc <- function() {PEcAn.ED2::met2model.ED2(lst=-6, lat=55.8796, lon=-98.4808, spin_nyear=NULL, spin_nsample=NULL, spin_resample=NULL, overwrite=FALSE, in.path='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_CF_gapfill_site_0-506', in.prefix='FLX_CA-Man_FLUXNET2015_SUBSET_HH_1994-2008_1-3', outfolder='/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506/', start_date='1995/01/01', end_date='2007/12/31')}
> remoteout <- remotefunc()
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:35 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:40 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:51 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:53:58 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:05 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:21 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:30 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
2017-10-30 16:54:39 WARN   [PEcAn.ED2::met2model.ED2] : 
   The file already exists! Moving to next month! 
[1] "Done with met2model.ED2"
> print(remoteout)
                                                                                      file
1 /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506//ED_MET_DRIVER_HEADER
           host   mimetype                        formatname
1 modex.bnl.gov text/plain ed.met_driver_header files format
            startdate             enddate          dbfile.name
1 1994-12-31 19:00:00 2007-12-30 19:00:00 ED_MET_DRIVER_HEADER
> fp <- file('/data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506//pecan-be9048ecb7a0bffd6a2ac78a3f0099', 'w')
> ign <- serialize(remoteout, fp)
> close(fp)
> 
[1] 0
2017-10-30 16:54:39 INFO   [PEcAn.utils::convert.input] : 
   RESULTS: Convert.Input 
2017-10-30 16:54:39 INFO   [PEcAn.utils::convert.input] : 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506//ED_MET_DRIVER_HEADER 
   modex.bnl.gov text/plain ed.met_driver_header files format 788918400 
   1199059200 ED_MET_DRIVER_HEADER 
2017-10-30 16:54:39 INFO   [PEcAn.utils::convert.input] : 
   file host mimetype formatname startdate enddate dbfile.name 
2017-10-30 16:54:39 INFO   [.met2model.module] : 
   Finished Model Specific Conversion 2000000158 
2017-10-30 16:54:39 WARN   [db.close] : 
   Connection created outside of PEcAn.DB package 
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
Warning: '$.SafeList' is deprecated.
Use 'PEcAn.settings::$.SafeList' instead.
See help("Deprecated")
2017-10-30 16:54:39 DEBUG  [PEcAn.utils::do_conversions] : 
   updated met path: 
   /data/Model_Output/pecan.output/dbfiles/Fluxnet2015_ED2_site_0-506/ED_MET_DRIVER_HEADER 
Warning: '$.SafeList' is deprecated.

@serbinsh
Copy link
Member Author

Like so

##' @param lst timezone offset to GMT in hours
##' @param overwrite should existing files be overwritten
##' @param verbose should the function be very verbose
##' @importFrom ncdf4 ncvar_get ncdim_def ncatt_get ncvar_add
met2model.ED2 <- function(in.path, in.prefix, outfolder, start_date, end_date, lst = 0, lat = NA,
                          lon = NA, overwrite = FALSE, verbose = FALSE, ...) {
library(rhdf5)
  overwrite <- as.logical(overwrite)

Why?

@mdietze
Copy link
Member

mdietze commented Oct 30, 2017

That suggests there's one or more function calls that are missing the rhdf5 namespace

@serbinsh
Copy link
Member Author

Hmm....looking at the rhdf5 NAMESPACE, I can see the h5write being exported

export(h5read)
export(h5readAttributes)
export(h5save)
export(h5write)
export(h5write.default)
export(h5writeDataset)
export(h5writeDataset.data.frame)
export(h5writeDataset.list)
export(h5writeDataset.matrix)
export(h5writeDataset.integer)
export(h5writeDataset.double)
export(h5writeDataset.logical)
export(h5writeDataset.character)
export(h5writeDataset.array)
export(h5writeAttribute)

@infotroph
Copy link
Member

Possibly relevant: mschubert/r-h5store#5

@serbinsh
Copy link
Member Author

Yes, looks like the same problem but that is from 2015 and it looks like the functions are in the NAMESPACE so not sure why I am still having that issue

@mdietze
Copy link
Member

mdietze commented Oct 31, 2017

@serbinsh I didn't mean that rhdf5 wasn't exporting a function, I meant check to make sure that everywhere we're using the functions within the ed2 module that we're calling the functions by namespace.

@mccabete
Copy link
Contributor

mccabete commented Nov 1, 2017

Hey @serbinsh I am also getting ED2 met processing failures for FLUXNET, but also AmerifluxLBL. I'm trying to see if it's for parallel reasons to you, but if not I can open another issue.

@mccabete
Copy link
Contributor

mccabete commented Nov 1, 2017

@serbinsh Can confirm, I am getting the exact same problem with AmerifluxLBL

serbinsh pushed a commit to serbinsh/pecan that referenced this issue Nov 3, 2017
…roject#1742.  Hard to test work around for more than one site due to other issues with metprocess
@serbinsh serbinsh mentioned this issue Nov 3, 2017
8 tasks
@serbinsh
Copy link
Member Author

serbinsh commented Nov 3, 2017

OK, based on a comment by @ashiklom I found this to work for me:

...

        tmp   <- array(tmpA[selm], dim = dims)
        if (useCO2) {
          co2 <- array(co2A[selm], dim = dims)
        }
        rhdf5::h5write.default(nbdsf, mout, "nbdsf")
        rhdf5::h5write.default(nddsf, mout, "nddsf")
        rhdf5::h5write.default(vbdsf, mout, "vbdsf")
        rhdf5::h5write.default(vddsf, mout, "vddsf")
        rhdf5::h5write.default(prate, mout, "prate")
        rhdf5::h5write.default(dlwrf, mout, "dlwrf")
        rhdf5::h5write.default(pres, mout, "pres")
        rhdf5::h5write.default(hgt, mout, "hgt")
        rhdf5::h5write.default(ugrd, mout, "ugrd")
        rhdf5::h5write.default(vgrd, mout, "vgrd")
        rhdf5::h5write.default(sh, mout, "sh")
        rhdf5::h5write.default(tmp, mout, "tmp")
        if (useCO2) {
          rhdf5::h5write.default(co2, mout, "co2")
        }
      }
    }

This worked even with the library(rhdf5) removed from the function, as well as the importFrom's

serbinsh pushed a commit to serbinsh/pecan that referenced this issue Nov 3, 2017
@serbinsh
Copy link
Member Author

serbinsh commented Nov 6, 2017

Addressed in #1757

@serbinsh serbinsh closed this as completed Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants